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/forward_error_correction_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/forward_error_correction_fuzzer.cc')
-rw-r--r-- | third_party/libwebrtc/test/fuzzers/forward_error_correction_fuzzer.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/libwebrtc/test/fuzzers/forward_error_correction_fuzzer.cc b/third_party/libwebrtc/test/fuzzers/forward_error_correction_fuzzer.cc index 04a459bc71..87b76858bb 100644 --- a/third_party/libwebrtc/test/fuzzers/forward_error_correction_fuzzer.cc +++ b/third_party/libwebrtc/test/fuzzers/forward_error_correction_fuzzer.cc @@ -34,7 +34,7 @@ void FuzzOneInput(const uint8_t* data, size_t size) { ForwardErrorCorrection::CreateFlexfec(kFecSsrc, kMediaSsrc); // Entropy from fuzzer. - rtc::ByteBufferReader fuzz_buffer(reinterpret_cast<const char*>(data), size); + rtc::ByteBufferReader fuzz_buffer(rtc::MakeArrayView(data, size)); // Initial stream state. uint16_t media_seqnum; @@ -75,8 +75,8 @@ void FuzzOneInput(const uint8_t* data, size_t size) { uint8_t packet_type; uint8_t packet_loss; while (true) { - if (!fuzz_buffer.ReadBytes(reinterpret_cast<char*>(packet_buffer), - kPacketSize)) { + if (!fuzz_buffer.ReadBytes( + rtc::ArrayView<uint8_t>(packet_buffer, kPacketSize))) { return; } if (!fuzz_buffer.ReadUInt8(&reordering)) |