diff options
| author | seteiro <[email protected]> | 2026-11-10 12:39:17 +0900 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2026-11-12 15:47:10 +0800 |
| commit | a1c9aa1a74a43999abef1c9052dd0f388de0146f (patch) | |
| tree | 80597472714141dfba7a1a435004e804e1e7b478 /components/rust/docs/4.modules | |
| parent | df2e0bffec9ed8e7abb3f0839e06aaf6012f3502 (diff) | |
[drivers][wlan] reject negative length in send_to_thread
Fix #8285 (CVE-2024-25388).
- Reject len < 0 with -RT_EINVAL before allocating or copying, so a
negative length can no longer cause a huge allocation, memset or
heap overflow in rt_wlan_send_to_thread().
- Convert len to size_t only after the non-negative check when sizing
the allocation and the memset/memcpy.
No other wlan mgnt behavior changes.
Diffstat (limited to 'components/rust/docs/4.modules')
0 files changed, 0 insertions, 0 deletions
