| Index: components/webcrypto/ec_import_key_pkcs8_fuzzer.cc
|
| diff --git a/media/cdm/cenc_utils_fuzzertest.cc b/components/webcrypto/ec_import_key_pkcs8_fuzzer.cc
|
| similarity index 65%
|
| copy from media/cdm/cenc_utils_fuzzertest.cc
|
| copy to components/webcrypto/ec_import_key_pkcs8_fuzzer.cc
|
| index 8f656198d6d769c8a86585a9cd7025f9f5076714..154004cb22e4a093525a2dc74d497ad33499ce6b 100644
|
| --- a/media/cdm/cenc_utils_fuzzertest.cc
|
| +++ b/components/webcrypto/ec_import_key_pkcs8_fuzzer.cc
|
| @@ -4,13 +4,12 @@
|
|
|
| #include <stddef.h>
|
| #include <stdint.h>
|
| -#include <vector>
|
|
|
| -#include "media/cdm/cenc_utils.h"
|
| +#include "components/webcrypto/fuzzer_support.h"
|
|
|
| // Entry point for LibFuzzer.
|
| extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
| - std::vector<uint8_t> input(data, data + size);
|
| - media::ValidatePsshInput(input);
|
| + webcrypto::ImportEcKeyFromDerFuzzData(data, size,
|
| + blink::WebCryptoKeyFormatPkcs8);
|
| return 0;
|
| }
|
|
|