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

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

Issue 1469123004: Add fuzzing of VP8 QP parsing. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: add fuzzer to webrtc/BUILD.gn 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/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/fuzzers/vp8_qp_parser_fuzzer.cc
diff --git a/webrtc/modules/audio_device/android/ensure_initialized.h b/webrtc/test/fuzzers/vp8_qp_parser_fuzzer.cc
similarity index 73%
copy from webrtc/modules/audio_device/android/ensure_initialized.h
copy to webrtc/test/fuzzers/vp8_qp_parser_fuzzer.cc
index c1997b4acdf1484a41bffef16f66809e49fa6e90..5135f1a471ebc088e307441d2f45355d0dee6c9b 100644
--- a/webrtc/modules/audio_device/android/ensure_initialized.h
+++ b/webrtc/test/fuzzers/vp8_qp_parser_fuzzer.cc
@@ -7,11 +7,11 @@
* 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/video_coding/utility/vp8_header_parser.h"
namespace webrtc {
-namespace audiodevicemodule {
-
-void EnsureInitialized();
-
-} // namespace audiodevicemodule
+void FuzzOneInput(const uint8_t* data, size_t size) {
+ int qp;
+ vp8::GetQp(data, size, &qp);
+}
} // namespace webrtc
« no previous file with comments | « webrtc/test/fuzzers/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698