Algorithmic complexity / performance issue on fuzzed input #3173
Labels
internal-issue-created
An internal Google issue has been created to track this GitHub issue
triage-done
Has been reviewed by someone on triage rotation.
Running with
SIMPLE_OPTIMIZATIONS
enabled on v20181210 (reproducible with much older versions too).The following input takes 1.5 seconds to report syntax error on my Macbook:
The following takes 3 seconds:
The following takes 6 seconds:
The following takes 12 seconds:
The following takes 1+ minute:
... and so on. I haven't measured the exact complexity but it is highly non-linear (possibly exponential). It is fairly easy to create a long enough string that practically leads to a complete hang.
Is this a performance bug?
Found using JQF: https://github.com/rohanpadhye/jqf
The text was updated successfully, but these errors were encountered: