Commit 9070493
Return early from parsing DHCP response if End is encoutered
Up until now DHCP response was parsed by reading the option
and the length first. The length field obviously does not
apply to the End option, so if muvm got a response that ended exactly
at the End byte, muvm would crash because of an out-of-bound read.
Signed-off-by: Nikodem Rabuliński <[email protected]>1 parent 58a3e08 commit 9070493
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
174 | 180 | | |
175 | 181 | | |
176 | 182 | | |
| |||
195 | 201 | | |
196 | 202 | | |
197 | 203 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | 204 | | |
202 | 205 | | |
203 | 206 | | |
| |||
0 commit comments