Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Issue 2459573003: Added skslc parse recursion limit (Closed)

Created:
4 years, 1 month ago by ethannicholas
Modified:
4 years, 1 month ago
Reviewers:
dogben
CC:
reviews_skia.org, kjlubick
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Added skslc parse recursion limit The fuzzer discovered that a long chain of left-parentheses would cause a stack overflow due to excessive recursion. While it is not in general possible to guarantee that we do not exceed stack limits (because the system can be configured with an arbitrarily small stack), setting a reasonable recursion limit will at least keep the fuzzer from continually finding more "bugs" like this. BUG=skia:5899 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2459573003 Committed: https://skia.googlesource.com/skia/+/cad6416ccbf103648874b0f5fb615ec5ac798f14

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -1 line) Patch
M src/sksl/SkSLParser.h View 1 chunk +5 lines, -1 line 0 comments Download
M src/sksl/SkSLParser.cpp View 3 chunks +33 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (12 generated)
ethannicholas
4 years, 1 month ago (2016-10-27 15:02:06 UTC) #11
dogben
lgtm Unfortunate that we're making code changes only to satisfy fuzzer, but at least it's ...
4 years, 1 month ago (2016-10-27 15:09:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2459573003/1
4 years, 1 month ago (2016-10-27 17:53:07 UTC) #14
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 17:54:05 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/cad6416ccbf103648874b0f5fb615ec5ac798f14

Powered by Google App Engine
This is Rietveld 408576698