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

Unified Diff: third_party/WebKit/Source/platform/json/JSONParserFuzzer.cpp

Issue 2520403002: Add a configurable parse-depth limit when parsing JFV headers, and use it for Feature-Policy Header (Closed)
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/json/JSONParserFuzzer.cpp
diff --git a/third_party/WebKit/Source/platform/json/JSONParserFuzzer.cpp b/third_party/WebKit/Source/platform/json/JSONParserFuzzer.cpp
index 467c0ece0afe1cf3e4cfbdb4c96b3c3c4470c25b..0ce5ba6d4b8064cbb26bb193b3ca5edc162a58bf 100644
--- a/third_party/WebKit/Source/platform/json/JSONParserFuzzer.cpp
+++ b/third_party/WebKit/Source/platform/json/JSONParserFuzzer.cpp
@@ -11,7 +11,7 @@
#include <stdint.h>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
- blink::parseJSON(WTF::String(data, size));
+ blink::parseJSON(WTF::String(data, size), 500);
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698