Skip to content

Commit 1e6e999

Browse files
guhetierSujeet Kumar
andauthored
Fix underflow in ACK frame parsing (#5942)
## Description Fix underflow in ACK frame parsing ## Testing CI ## Documentation NA Co-authored-by: Sujeet Kumar <sujkum@microsoft.com>
1 parent 5e99ea7 commit 1e6e999

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/core/frame.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,11 @@ QuicAckFrameDecode(
334334

335335
Largest -= (Block.Gap + 1);
336336
Count = Block.AckBlock + 1;
337+
338+
if (Count > Largest + 1) {
339+
*InvalidFrame = TRUE;
340+
return FALSE;
341+
}
337342

338343
//
339344
// N.B. The efficiency here isn't great because we are always inserting

0 commit comments

Comments
 (0)