diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /third_party/libwebrtc/test/fuzzers/stun_parser_fuzzer.cc | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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(""); } |