commit | cecfd1832dc375225da3f5f18ecac63006ed06bf | [log] [tgz] |
---|---|---|
author | wu@webrtc.org <wu@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | Wed Oct 30 05:18:12 2013 +0000 |
committer | wu@webrtc.org <wu@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | Wed Oct 30 05:18:12 2013 +0000 |
tree | 8de86d61c010780d52a20bdf6ba804f6a1621b40 | |
parent | ec4cccc6b67a6d11735a4f2140cd27a74d5bfbe1 [diff] [blame] |
Update talk to 55821645. TEST=try bots R=mallinath@webrtc.org Review URL: https://webrtc-codereview.appspot.com/3139004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5053 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/talk/app/webrtc/webrtcsdp.cc b/talk/app/webrtc/webrtcsdp.cc index 610250e..ce23459 100644 --- a/talk/app/webrtc/webrtcsdp.cc +++ b/talk/app/webrtc/webrtcsdp.cc
@@ -2188,6 +2188,12 @@ return ParseFailed("", description.str(), error); } } + + size_t end_of_message = message.size(); + if (mline_index == -1 && *pos != end_of_message) { + ParseFailed(message, *pos, "Expects m line.", error); + return false; + } return true; }