Skip to content

Commit 2974bd4

Browse files
AniruddhaKanherearchigup
authored andcommitted
Fix DNS reply parsing loop and stall
When the record type was unknown and uxSourceBytesRemaining was less than sizeof(DNSAnswerRecord_t), the else branch consumed no bytes, causing the parser to loop indefinitely. Add a break for that case. Also add an ANCOUNT sanity check that rejects packets claiming more answer records than the remaining buffer can physically contain, and guard AAAA record handling with ipconfigUSE_IPv6.
1 parent 70065d8 commit 2974bd4

3 files changed

Lines changed: 229 additions & 209 deletions

File tree

.github/.cSpellWords.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ALLNS
1717
Allo
1818
ALMUL
1919
AMBA
20+
ANCOUNT
2021
amsdu
2122
ANAR
2223
ANARBMCR

0 commit comments

Comments
 (0)