Commit a90197d
Merge commit from fork
Add bounds check before computing payLen to prevent uint8_t underflow
when downlinkMsgLen is less than the minimum frame size (12 + fOptsLen).
Returns RADIOLIB_ERR_DOWNLINK_MALFORMED for malformed frames.
Fixes GHSA-xj4h-672x-ggwj
Co-authored-by: lukegranto23 <seabreeze11971220@gmail.com>1 parent 258d546 commit a90197d
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1896 | 1896 | | |
1897 | 1897 | | |
1898 | 1898 | | |
1899 | | - | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
1900 | 1905 | | |
1901 | 1906 | | |
1902 | 1907 | | |
| |||
0 commit comments