Description[GCM] Fix crash when size packet splits two socket reads
ByteCount(), rather than UnreadByteCount(), was being incorrectly used to
determine how to handle a size packet than needed a second byte.
ByteCount() includes read bytes, while UnreadByteCount() is the one that does
not. UnreadByteCount is the only one that should be used here. Fixed, and
added new tests.
BUG=424532
Committed: https://crrev.com/7592d13c4d3b73bcfae418bf451981f72fa9bd77
Cr-Commit-Position: refs/heads/master@{#300525}
Patch Set 1 #Patch Set 2 : Tests/corner cases #
Total comments: 8
Patch Set 3 : Address comments #
Messages
Total messages: 13 (5 generated)
|