Searched hist:"57 d9a2ef6d7f85efdb89ba084af620a318b741e2" (Results 1 – 2 of 2) sorted by relevance
/openbmc/libpldm/src/oem/ibm/ |
H A D | platform.c | diff 57d9a2ef6d7f85efdb89ba084af620a318b741e2 Thu Oct 03 00:33:25 CDT 2024 Andrew Jeffery <andrew@codeconstruct.com.au> oem: ibm: platform: Bounds check encode_bios_attribute_update_event_req()
``` ../src/oem/ibm/platform.c: In function ‘encode_bios_attribute_update_event_req’: ../src/oem/ibm/platform.c:49:9: error: use of attacker-controlled value ‘(long unsigned int)num_handles * 2’ as size without upper-bounds checking [CWE-129] [-Werror=analyzer-tainted-size] 49 | memcpy(request->bios_attribute_handles, list_of_handles, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 50 | num_handles * sizeof(uint16_t)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
gitlint-ignore: T1, B1 Fixes: 9c76679224cf ("libpldm: Migrate to subproject") Change-Id: Ie329d651207936b4a4762efa7631c9ecb525cf74 Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
|
/openbmc/libpldm/ |
H A D | CHANGELOG.md | diff 57d9a2ef6d7f85efdb89ba084af620a318b741e2 Thu Oct 03 00:33:25 CDT 2024 Andrew Jeffery <andrew@codeconstruct.com.au> oem: ibm: platform: Bounds check encode_bios_attribute_update_event_req()
``` ../src/oem/ibm/platform.c: In function ‘encode_bios_attribute_update_event_req’: ../src/oem/ibm/platform.c:49:9: error: use of attacker-controlled value ‘(long unsigned int)num_handles * 2’ as size without upper-bounds checking [CWE-129] [-Werror=analyzer-tainted-size] 49 | memcpy(request->bios_attribute_handles, list_of_handles, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 50 | num_handles * sizeof(uint16_t)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
gitlint-ignore: T1, B1 Fixes: 9c76679224cf ("libpldm: Migrate to subproject") Change-Id: Ie329d651207936b4a4762efa7631c9ecb525cf74 Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
|