| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 
|  | 2 // Use of this source code is governed by a BSD-style license that can be | 
|  | 3 // found in the LICENSE file. | 
|  | 4 | 
|  | 5 #include <secmod.h> | 
|  | 6 #include <stddef.h> | 
|  | 7 #include <stdint.h> | 
|  | 8 | 
|  | 9 #include "testing/libfuzzer/fuzzers/nss/asn1_fuzzer_template.h" | 
|  | 10 | 
|  | 11 // Entry point for LibFuzzer. | 
|  | 12 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { | 
|  | 13   NSSFuzzOneInput<SECKEYPrivateKeyInfo, SEC_QuickDERDecodeItem>( | 
|  | 14       SEC_ASN1_GET(SECKEY_PrivateKeyInfoTemplate), data, size); | 
|  | 15   NSSFuzzOneInput<SECKEYPrivateKeyInfo, SEC_ASN1DecodeItem>( | 
|  | 16       SEC_ASN1_GET(SECKEY_PrivateKeyInfoTemplate), data, size); | 
|  | 17 | 
|  | 18   return 0; | 
|  | 19 } | 
| OLD | NEW | 
|---|