Skip to content

Commit

Permalink
Implement Frame decode failure tests (microsoft#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
anrossi authored Apr 15, 2020
1 parent 804aaa1 commit 8cb7e34
Show file tree
Hide file tree
Showing 2 changed files with 839 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/core/frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ QuicAckHeaderDecode(
if (!QuicVarIntDecode(BufferLength, Buffer, Offset, &Frame->LargestAcknowledged) ||
!QuicVarIntDecode(BufferLength, Buffer, Offset, &Frame->AckDelay) ||
!QuicVarIntDecode(BufferLength, Buffer, Offset, &Frame->AdditionalAckBlockCount) ||
!QuicVarIntDecode(BufferLength, Buffer, Offset, &Frame->FirstAckBlock)) {
!QuicVarIntDecode(BufferLength, Buffer, Offset, &Frame->FirstAckBlock) ||
Frame->FirstAckBlock > Frame->LargestAcknowledged) {
return FALSE;
}
return TRUE;
Expand Down
Loading

0 comments on commit 8cb7e34

Please sign in to comment.