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

Unified Diff: webrtc/api/peerconnection_unittest.cc

Issue 2556783002: Fix out of bound reads in ParseIceServerUrl() for various input. (Closed)
Patch Set: Created 4 years 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
« webrtc/api/peerconnection.cc ('K') | « webrtc/api/peerconnection.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/peerconnection_unittest.cc
diff --git a/webrtc/api/peerconnection_unittest.cc b/webrtc/api/peerconnection_unittest.cc
index 301fed55dbce0659d4fcd45eae8c5ad48d2308ff..48accb5bd922904c7eac5e6a4cf4947bf31f12e7 100644
--- a/webrtc/api/peerconnection_unittest.cc
+++ b/webrtc/api/peerconnection_unittest.cc
@@ -2749,6 +2749,9 @@ TEST_F(IceServerParsingTest, ParseTransport) {
turn_servers_.clear();
EXPECT_FALSE(ParseUrl("turn:hostname?transport=invalid"));
+ EXPECT_FALSE(ParseUrl("turn:hostname?transport="));
+ EXPECT_FALSE(ParseUrl("turn:hostname?="));
+ EXPECT_FALSE(ParseUrl("?"));
}
// Test parsing ICE username contained in URL.
« webrtc/api/peerconnection.cc ('K') | « webrtc/api/peerconnection.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698