query_parser_fuzzer: Abort early on large inputs
In the attached bug, the query_parser::ParseQueryImpl function is timing out after 25 seconds while parsing a large input (109K). The problem appears to be that the ICU function |ubrk_next| is a little slow. There isn't anything obvious we can do to improve performance, so we will now reject inputs that are larger than ~1/2 of the "bad" input's size. Bug: 1015888 Change-Id: Icd3b1bcf30714fd39ef6700e0f44fbf09efa3c82 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1869771Reviewed-by:Scott Violet <sky@chromium.org> Commit-Queue: Dan McArdle <dmcardle@chromium.org> Cr-Commit-Position: refs/heads/master@{#707678}
Showing
Please register or sign in to comment