Searched hist:"225530 ab4827d0b10ecb51d027a51a3eb909960e" (Results 1 – 2 of 2) sorted by relevance
/openbmc/libpldm/src/dsp/ |
H A D | platform.c | diff 225530ab4827d0b10ecb51d027a51a3eb909960e Tue Sep 24 22:41:43 CDT 2024 Andrew Jeffery <andrew@codeconstruct.com.au> dsp: platform: Prevent overflow of arithmetic on event_data_length
Resolves the following warning from GCC's static analyzer:
``` ../src/dsp/platform.c: In function ‘encode_platform_event_message_req’: ../src/dsp/platform.c:1246:9: error: use of attacker-controlled value ‘event_data_length’ as size without upper-bounds checking [CWE-129] [-Werror=analyzer-tainted-size] 1246 | memcpy(request->event_data, event_data, event_data_length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
Fixes: 9c76679224cf ("libpldm: Migrate to subproject") Change-Id: Id889a5b56d8403dea41f6acd43f21b44bf8d503d Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
|
/openbmc/libpldm/ |
H A D | CHANGELOG.md | diff 225530ab4827d0b10ecb51d027a51a3eb909960e Tue Sep 24 22:41:43 CDT 2024 Andrew Jeffery <andrew@codeconstruct.com.au> dsp: platform: Prevent overflow of arithmetic on event_data_length
Resolves the following warning from GCC's static analyzer:
``` ../src/dsp/platform.c: In function ‘encode_platform_event_message_req’: ../src/dsp/platform.c:1246:9: error: use of attacker-controlled value ‘event_data_length’ as size without upper-bounds checking [CWE-129] [-Werror=analyzer-tainted-size] 1246 | memcpy(request->event_data, event_data, event_data_length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
Fixes: 9c76679224cf ("libpldm: Migrate to subproject") Change-Id: Id889a5b56d8403dea41f6acd43f21b44bf8d503d Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
|