diff options
author | Ping-Ke Shih <pkshih@realtek.com> | 2025-02-17 14:43:08 +0800 |
---|---|---|
committer | Ping-Ke Shih <pkshih@realtek.com> | 2025-02-21 09:51:43 +0800 |
commit | e0722103306fd5fd3cdde8d100a7588bfe7abdf0 (patch) | |
tree | 6c5520f0bdd20ab7b5695064debaf8315c89e8d2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dc2fc1a3419e9218fde6e7897c8c238ebe75a69e (diff) |
wifi: rtw89: fw: safely cast mfw_hdr pointer from firmware->data
Check size of struct mfw_hdr within firmware->size before type casting
to ensure to validly dereference fields from mfm_hdr pointer. Then,
check if signature field is equal to RTW89_MFW_SIG to assert current
is multi-firmware.
Addresses-Coverity-ID: 1494046 ("Untrusted loop bound")
Addresses-Coverity-ID: 1544385 ("Untrusted array index read")
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250217064308.43559-6-pkshih@realtek.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions