Commit 2974bd4
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
- source
- test/unit-test/FreeRTOS_DNS_Parser
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments