Fix header size check in PseudoTcp::parse().

BUG=chromium:620694
TBR=pbos@webrtc.org

Review-Url: https://codereview.webrtc.org/2073963002
Cr-Commit-Position: refs/heads/master@{#13177}
This commit is contained in:
sergeyu 2016-06-16 18:08:12 -07:00 committed by Commit bot
parent 8e8222d0d2
commit d1523ca38f

View File

@ -573,7 +573,7 @@ IPseudoTcpNotify::WriteResult PseudoTcp::packet(uint32_t seq,
}
bool PseudoTcp::parse(const uint8_t* buffer, uint32_t size) {
if (size < 12)
if (size < HEADER_SIZE)
return false;
Segment seg;