File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Version 10.44 xx-xxx-2024
8
8
-------------------------
9
9
10
10
1. If a pattern contained a variable-length lookbehind in which the first
11
- branch was not the one with the shortest minimym length, and the lookbehind
11
+ branch was not the one with the shortest minimum length, and the lookbehind
12
12
contained a capturing group, and elsewhere in the pattern there was another
13
13
lookbehind that referenced that group, the pattern was incorrectly compiled,
14
14
leading to unpredictable results, including crashes in JIT compiling. An
Original file line number Diff line number Diff line change @@ -295,10 +295,10 @@ Start the scan at the second character so there can be a lookbehind for a
295
295
backslash, and end it before the end so that the next character can be checked
296
296
for an opening brace. */
297
297
298
- for (size_t i = 1 ; i < size - 2 ; i ++ )
298
+ if ( size > 3 ) for (size_t i = 1 ; i < size - 2 ; i ++ )
299
299
{
300
300
size_t j ;
301
-
301
+
302
302
if (wdata [i ] != ')' || wdata [i - 1 ] == '\\' || wdata [i + 1 ] != '{' ) continue ;
303
303
i ++ ; /* Points to '{' */
304
304
You can’t perform that action at this time.
0 commit comments