Allow for up to 32-bit numbers in the ordin() function in pcre2grep.

This commit is contained in:
Philip.Hazel 2015-11-29 17:45:27 +00:00
parent e0764cd5fd
commit 1b38451847
2 changed files with 3 additions and 1 deletions

View File

@ -347,6 +347,8 @@ was found by the LLVM fuzzer.
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.
104. Allow for up to 32-bit numbers in the ordin() function in pcre2grep.
Version 10.20 30-June-2015
--------------------------

View File

@ -2421,7 +2421,7 @@ return options;
static char *
ordin(int n)
{
static char buffer[8];
static char buffer[14];
char *p = buffer;
sprintf(p, "%d", n);
while (*p != 0) p++;