Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(948)

Unified Diff: webrtc/test/fuzzers/vp9_depacketizer_fuzzer.cc

Issue 1463523002: Implement fuzzing of VP9 depacketization. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: added sanitizers.gni for default values Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/test/fuzzers/OWNERS ('k') | webrtc/test/fuzzers/webrtc_fuzzer_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/fuzzers/vp9_depacketizer_fuzzer.cc
diff --git a/webrtc/modules/audio_coding/codecs/isac/fix/source/audio_decoder_isacfix.cc b/webrtc/test/fuzzers/vp9_depacketizer_fuzzer.cc
similarity index 64%
copy from webrtc/modules/audio_coding/codecs/isac/fix/source/audio_decoder_isacfix.cc
copy to webrtc/test/fuzzers/vp9_depacketizer_fuzzer.cc
index 45eefb913b80ad4b87e83f7364e9e00baac450cb..02a7cc0f813be76e831375a1755451a3a9e63664 100644
--- a/webrtc/modules/audio_coding/codecs/isac/fix/source/audio_decoder_isacfix.cc
+++ b/webrtc/test/fuzzers/vp9_depacketizer_fuzzer.cc
@@ -7,14 +7,12 @@
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
-
-#include "webrtc/modules/audio_coding/codecs/isac/fix/include/audio_decoder_isacfix.h"
-
-#include "webrtc/modules/audio_coding/codecs/isac/audio_decoder_isac_t_impl.h"
+#include "webrtc/modules/rtp_rtcp/source/rtp_format_vp9.h"
namespace webrtc {
-
-// Explicit instantiation:
-template class AudioDecoderIsacT<IsacFix>;
-
+void FuzzOneInput(const uint8_t* data, size_t size) {
+ RtpDepacketizerVp9 depacketizer;
+ RtpDepacketizer::ParsedPayload parsed_payload;
+ depacketizer.Parse(&parsed_payload, data, size);
+}
} // namespace webrtc
« no previous file with comments | « webrtc/test/fuzzers/OWNERS ('k') | webrtc/test/fuzzers/webrtc_fuzzer_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698