diff options
Diffstat (limited to 'third_party/libwebrtc/test/fuzzers/stun_parser_fuzzer.cc')
-rw-r--r-- | third_party/libwebrtc/test/fuzzers/stun_parser_fuzzer.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/third_party/libwebrtc/test/fuzzers/stun_parser_fuzzer.cc b/third_party/libwebrtc/test/fuzzers/stun_parser_fuzzer.cc index 6ca9eac8b2..c8aad8c232 100644 --- a/third_party/libwebrtc/test/fuzzers/stun_parser_fuzzer.cc +++ b/third_party/libwebrtc/test/fuzzers/stun_parser_fuzzer.cc @@ -15,14 +15,13 @@ namespace webrtc { void FuzzOneInput(const uint8_t* data, size_t size) { - const char* message = reinterpret_cast<const char*>(data); // Normally we'd check the integrity first, but those checks are // fuzzed separately in stun_validator_fuzzer.cc. We still want to // fuzz this target since the integrity checks could be forged by a // malicious adversary who receives a call. std::unique_ptr<cricket::IceMessage> stun_msg(new cricket::IceMessage()); - rtc::ByteBufferReader buf(message, size); + rtc::ByteBufferReader buf(rtc::MakeArrayView(data, size)); stun_msg->Read(&buf); stun_msg->ValidateMessageIntegrity(""); } |