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

Diff of /code/trunk/pcre_compile.c

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

revision 1562 by ph10, Wed Jun 3 16:51:59 2015 UTC revision 1563 by ph10, Mon Jun 8 17:55:54 2015 UTC
# Line 7353  for (;; ptr++) Line 7353  for (;; ptr++)
7353    
7354            recno = 0;            recno = 0;
7355            while(IS_DIGIT(*ptr))            while(IS_DIGIT(*ptr))
7356                {
7357                if (recno > INT_MAX / 10 - 1) /* Integer overflow */
7358                  {
7359                  while (IS_DIGIT(*ptr)) ptr++;
7360                  *errorcodeptr = ERR61;
7361                  goto FAILED;
7362                  }
7363              recno = recno * 10 + *ptr++ - CHAR_0;              recno = recno * 10 + *ptr++ - CHAR_0;
7364                }
7365    
7366            if (*ptr != (pcre_uchar)terminator)            if (*ptr != (pcre_uchar)terminator)
7367              {              {

Legend:
Removed from v.1562  
changed lines
  Added in v.1563

  ViewVC Help
Powered by ViewVC 1.1.5