/[pcre]/code/trunk/pcretest.c
ViewVC logotype

Diff of /code/trunk/pcretest.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1685 by ph10, Wed Feb 22 17:37:47 2017 UTC revision 1686 by ph10, Thu Feb 23 16:24:08 2017 UTC
# Line 4834  while (!done) Line 4834  while (!done)
4834          continue;          continue;
4835    
4836          case 'O':          case 'O':
4837          while(isdigit(*p)) n = n * 10 + *p++ - '0';          while(isdigit(*p))
4838              {
4839              if (n > (INT_MAX-10)/10)   /* Hack to stop fuzzers */
4840                {
4841                printf("** \\O argument is too big\n");
4842                yield = 1;
4843                goto EXIT;
4844                }
4845              n = n * 10 + *p++ - '0';
4846              }
4847          if (n > size_offsets_max)          if (n > size_offsets_max)
4848            {            {
4849            size_offsets_max = n;            size_offsets_max = n;

Legend:
Removed from v.1685  
changed lines
  Added in v.1686

  ViewVC Help
Powered by ViewVC 1.1.5