Allow for up to 32-bit numbers in the ordin() function in pcre2grep.
This commit is contained in:
parent
e0764cd5fd
commit
1b38451847
|
@ -347,6 +347,8 @@ was found by the LLVM fuzzer.
|
||||||
103. The POSIX wrapper function regexec() crashed if the option REG_STARTEND
|
103. The POSIX wrapper function regexec() crashed if the option REG_STARTEND
|
||||||
was set when the pmatch argument was NULL. It now returns REG_INVARG.
|
was set when the pmatch argument was NULL. It now returns REG_INVARG.
|
||||||
|
|
||||||
|
104. Allow for up to 32-bit numbers in the ordin() function in pcre2grep.
|
||||||
|
|
||||||
|
|
||||||
Version 10.20 30-June-2015
|
Version 10.20 30-June-2015
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
|
@ -2421,7 +2421,7 @@ return options;
|
||||||
static char *
|
static char *
|
||||||
ordin(int n)
|
ordin(int n)
|
||||||
{
|
{
|
||||||
static char buffer[8];
|
static char buffer[14];
|
||||||
char *p = buffer;
|
char *p = buffer;
|
||||||
sprintf(p, "%d", n);
|
sprintf(p, "%d", n);
|
||||||
while (*p != 0) p++;
|
while (*p != 0) p++;
|
||||||
|
|
Loading…
Reference in New Issue