Source release 17.1.1
This commit is contained in:
22
oemcrypto/odk/test/fuzzing/odk_license_request_fuzz.cpp
Normal file
22
oemcrypto/odk/test/fuzzing/odk_license_request_fuzz.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
/* Copyright 2020 Google LLC. All rights reserved. This file and proprietary
|
||||
* source code may only be used and distributed under the Widevine
|
||||
* License Agreement.
|
||||
*/
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "core_message_deserialize.h"
|
||||
#include "fuzzing/odk_fuzz_helper.h"
|
||||
|
||||
namespace oemcrypto_core_message {
|
||||
using oemcrypto_core_message::deserialize::CoreLicenseRequestFromMessage;
|
||||
|
||||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
||||
std::vector<uint8_t> out(size);
|
||||
const size_t kClockValueSize = 0;
|
||||
kdo_odk<ODK_LicenseRequest>(CoreLicenseRequestFromMessage,
|
||||
odk_serialize_LicenseRequest, data, size,
|
||||
kClockValueSize, out.data());
|
||||
return 0;
|
||||
}
|
||||
} // namespace oemcrypto_core_message
|
||||
Reference in New Issue
Block a user