diff options
author | Tim Taubert <ttaubert@mozilla.com> | 2017-01-20 17:17:31 +0100 |
---|---|---|
committer | Tim Taubert <ttaubert@mozilla.com> | 2017-01-20 17:17:31 +0100 |
commit | 9f6911e8dcd7d93d15cf1cd0920bf958b386f005 (patch) | |
tree | 14648af076b3170110e8cd0a57e3b0f1a4b98eb6 /fuzz/shared.h | |
parent | b6fc9de8bb595ffbbca32433f524d507322d31df (diff) | |
download | nss-hg-9f6911e8dcd7d93d15cf1cd0920bf958b386f005.tar.gz |
Bug 1332652 - Replace SPKI and Cert tests with a single QuickDER fuzzing target r=franziskus
Differential Revision: https://nss-review.dev.mozaws.net/D166
Diffstat (limited to 'fuzz/shared.h')
-rw-r--r-- | fuzz/shared.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/fuzz/shared.h b/fuzz/shared.h index 69e429824..142058069 100644 --- a/fuzz/shared.h +++ b/fuzz/shared.h @@ -17,17 +17,6 @@ class NSSDatabase { ~NSSDatabase() { NSS_Shutdown(); } }; -void QuickDERDecode(void *dst, const SEC_ASN1Template *tpl, const uint8_t *buf, - size_t len) { - PORTCheapArenaPool pool; - SECItem data = {siBuffer, const_cast<unsigned char *>(buf), - static_cast<unsigned int>(len)}; - - PORT_InitCheapArena(&pool, DER_DEFAULT_CHUNKSIZE); - (void)SEC_QuickDERDecodeItem(&pool.arena, dst, tpl, &data); - PORT_DestroyCheapArena(&pool); -} - size_t CustomMutate(std::vector<decltype(LLVMFuzzerCustomMutator) *> mutators, uint8_t *Data, size_t Size, size_t MaxSize, unsigned int Seed) { |