diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-11-26 16:38:30 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-11-26 16:38:30 +0100 |
commit | 8ed5c9d6362555d7c57073970701c743b6d870ad (patch) | |
tree | 9f0d1a689c5a28c75a19feba44c3c5091bcddf3b /test/afl_dictionary/left_paren | |
parent | 838cece40e765929abc5c3f2494608ef7df0db19 (diff) |
Fixed pathological cases with backtick code spans:
- Removed recursion in scan_to_closing_backticks
- Added an array of pointers to potential backtick closers
to subject
- This array is used to avoid traversing the subject again
when we've already seen all the potential backtick closers.
- Added a max bound of 1000 for backtick code span delimiters.
- This helps with pathological cases like:
x
x `
x ``
x ```
x ````
...
Thanks to Martin Mitáš for identifying the problem and for
discussion of solutions.
Diffstat (limited to 'test/afl_dictionary/left_paren')
0 files changed, 0 insertions, 0 deletions