Commit f1ba0c0
committed
AP_ADSB: avoid buffer overwrite in AP_ADSB_Sagetech_MXS
we were not bounds-checking the off-wire length, and then reading many bytes into a target buffer based on it.
Do the bounds check.
Also remove the writing of the checksum into the payload buffer - this was the notional 1-byte overwrite1 parent 124ebed commit f1ba0c0
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
282 | 288 | | |
283 | 289 | | |
284 | 290 | | |
| |||
0 commit comments