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:
parent
8e8222d0d2
commit
d1523ca38f
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user