Commit 53cc2f8
committed
std: fix xous dns ipv6 parsing off-by-one
the ipv6 arm read the 16-byte address from offset+1 instead of offset,
unlike the ipv4 arm. this mis-parsed every ipv6 result and let the slice
reach offset+17 while the bounds check only guards offset+16, so a
malformed dns response could index past the 4096-byte buffer and panic.1 parent eb6346c commit 53cc2f8
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
| 46 | + | |
| 47 | + | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
0 commit comments