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

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

Issue 2126463002: Add fuzzer for TURN unwrap. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Disable in Chromium. Created 4 years, 5 months 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/turn_unwrap_fuzzer.cc
diff --git a/webrtc/test/fuzzers/h264_depacketizer_fuzzer.cc b/webrtc/test/fuzzers/turn_unwrap_fuzzer.cc
similarity index 71%
copy from webrtc/test/fuzzers/h264_depacketizer_fuzzer.cc
copy to webrtc/test/fuzzers/turn_unwrap_fuzzer.cc
index ca73d9495f5241c5ed0554d1823b79b8637e0f12..818fbe9080c56f8165432566a5382b36cc6cfb41 100644
--- a/webrtc/test/fuzzers/h264_depacketizer_fuzzer.cc
+++ b/webrtc/test/fuzzers/turn_unwrap_fuzzer.cc
@@ -7,12 +7,16 @@
* 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/rtp_rtcp/source/rtp_format_h264.h"
+
+#include <stddef.h>
+#include <stdint.h>
+
+#include "webrtc/media/base/turnutils.h"
namespace webrtc {
void FuzzOneInput(const uint8_t* data, size_t size) {
- RtpDepacketizerH264 depacketizer;
- RtpDepacketizer::ParsedPayload parsed_payload;
- depacketizer.Parse(&parsed_payload, data, size);
+ size_t content_position;
+ size_t content_size;
+ cricket::UnwrapTurnPacket(data, size, &content_position, &content_size);
}
} // 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