Commit 9a1ce84
authored
Pcapng option bounds check (#4699)
* Fix PCAPNG options bounds check
Bounds check in PcapNG options is off-by-one, meaning that tightly packed options accidentally truncate the last option. Use right comparison to get that last option.
* Add regression test for PCAPNG options bounds1 parent 9e4dc1d commit 9a1ce84
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1800 | 1800 | | |
1801 | 1801 | | |
1802 | 1802 | | |
1803 | | - | |
| 1803 | + | |
1804 | 1804 | | |
1805 | 1805 | | |
1806 | 1806 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2348 | 2348 | | |
2349 | 2349 | | |
2350 | 2350 | | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
2351 | 2356 | | |
2352 | 2357 | | |
2353 | 2358 | | |
| |||
0 commit comments