Changeset 10059 in webkit for trunk/JavaScriptCore
- Timestamp:
- Aug 5, 2005, 1:44:40 PM (20 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r10047 r10059 1 2005-08-05 Geoffrey Garen <[email protected]> 2 3 Fix by darin, reviewed by me. 4 5 - rolled in fix for: <rdar://problem/4161606> JavaScript regular 6 expressions with certain ranges of Unicode characters cause a crash 7 8 Test cases added: 9 10 * layout-tests/fast/js/regexp-big-unicode-ranges-expected.txt: Added. 11 * layout-tests/fast/js/regexp-big-unicode-ranges.html: Added. 12 13 * pcre/pcre.c: 14 (compile_branch): added checks for characters > 255 15 1 16 2005-08-04 Maciej Stachowiak <[email protected]> 2 17 -
trunk/JavaScriptCore/pcre/pcre.c
r9452 r10059 1185 1185 goto FAILED; 1186 1186 } 1187 1187 #if PCRE_UTF16 1188 if (c > 255) 1189 { 1190 *errorptr = ERR33; 1191 goto FAILED; 1192 } 1193 #endif 1194 1188 1195 /* Handle POSIX class names. Perl allows a negation extension of the 1189 1196 form [:^name]. A square bracket that doesn't match the syntax is … … 1321 1328 goto FAILED; 1322 1329 } 1323 1330 #if PCRE_UTF16 1331 if (d > 255) 1332 { 1333 *errorptr = ERR33; 1334 goto FAILED; 1335 } 1336 #endif 1337 1324 1338 /* The second part of a range can be a single-character escape, but 1325 1339 not any of the other escapes. Perl 5.6 treats a hyphen as a literal
Note:
See TracChangeset
for help on using the changeset viewer.