Commit b0ee47d
Fix DHCPv6 sub-option default case skip
In prvDHCPv6_subOption(), the default case for unknown sub-option types
skipped uxLength2 - uxUsed bytes. Since uxUsed is cumulative bytes from
the parent option start and uxLength2 is the current sub-option payload
length, this subtraction wraps when uxUsed > uxLength2, corrupting the
parser index. Fix by skipping uxLength2 bytes. Also add xHasError check
to the loop exit condition.1 parent 328e062 commit b0ee47d
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1196 | 1196 | | |
1197 | 1197 | | |
1198 | 1198 | | |
1199 | | - | |
| 1199 | + | |
1200 | 1200 | | |
1201 | 1201 | | |
1202 | 1202 | | |
1203 | 1203 | | |
1204 | | - | |
| 1204 | + | |
1205 | 1205 | | |
| 1206 | + | |
1206 | 1207 | | |
1207 | 1208 | | |
1208 | 1209 | | |
| |||
0 commit comments