Changeset 14736 in webkit for trunk/JavaScriptCore/pcre/pcre_compile.c
- Timestamp:
- Jun 5, 2006, 3:12:48 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/pcre/pcre_compile.c
r14457 r14736 719 719 720 720 while ((DIGITAB(*p) & ctype_digit) != 0) min = min * 10 + *p++ - '0'; 721 if (min < 0 || min > 65535) 722 { 723 *errorcodeptr = ERR5; 724 return p; 725 } 721 726 722 727 if (*p == '}') max = min; else … … 726 731 max = 0; 727 732 while((DIGITAB(*p) & ctype_digit) != 0) max = max * 10 + *p++ - '0'; 733 if (max < 0 || max > 65535) 734 { 735 *errorcodeptr = ERR5; 736 return p; 737 } 728 738 if (max < min) 729 739 { … … 734 744 } 735 745 736 /* Do paranoid checks, then fill in the required variables, and pass back the 737 pointer to the terminating '}'. */ 738 739 if (min > 65535 || max > 65535) 740 *errorcodeptr = ERR5; 741 else 742 { 743 *minp = min; 744 *maxp = max; 745 } 746 /* Fill in the required variables, and pass back the pointer to the terminating '}'. */ 747 *minp = min; 748 *maxp = max; 749 746 750 return p; 747 751 }
Note:
See TracChangeset
for help on using the changeset viewer.