Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: testing/libfuzzer/fuzzers/nss/

Issue 1677803002: Add a bunch of NSS ASN.1 fuzzers (Closed) Base URL:
Patch Set: Fix leak Created 4 years, 10 months 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: testing/libfuzzer/fuzzers/nss/
diff --git a/components/webcrypto/ b/testing/libfuzzer/fuzzers/nss/
similarity index 54%
copy from components/webcrypto/
copy to testing/libfuzzer/fuzzers/nss/
index 154004cb22e4a093525a2dc74d497ad33499ce6b..c61e8045548853ee6a9d21bc581fe49b54cb4a66 100644
--- a/components/webcrypto/
+++ b/testing/libfuzzer/fuzzers/nss/
@@ -5,11 +5,14 @@
#include <stddef.h>
#include <stdint.h>
-#include "components/webcrypto/fuzzer_support.h"
+#include "testing/libfuzzer/fuzzers/nss/asn1_fuzzer_template.h"
// Entry point for LibFuzzer.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
- webcrypto::ImportEcKeyFromDerFuzzData(data, size,
- blink::WebCryptoKeyFormatPkcs8);
+ NSSFuzzOneInput<SECItem, SEC_QuickDERDecodeItem>(
+ SEC_ASN1_GET(SEC_ObjectIDTemplate), data, size);
+ NSSFuzzOneInput<SECItem, SEC_ASN1DecodeItem>(
+ SEC_ASN1_GET(SEC_ObjectIDTemplate), data, size);
return 0;

Powered by Google App Engine
This is Rietveld 408576698