aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorZhang Rui <[email protected]>2024-02-02 17:21:34 +0800
committerGuenter Roeck <[email protected]>2024-02-04 06:43:44 -0800
commit4e440abc894585a34c2904a32cd54af1742311b3 (patch)
tree33f78e5a9c6e0e538b790a2b954afe6d16e66275 /lib/test_fortify/write_overflow-strncpy-src.c
parent1168491e7f53581ba7b6014a39a49cfbbb722feb (diff)
hwmon: (coretemp) Fix out-of-bounds memory access
Fix a bug that pdata->cpu_map[] is set before out-of-bounds check. The problem might be triggered on systems with more than 128 cores per package. Fixes: 7108b80a542b ("hwmon/coretemp: Handle large core ID value") Signed-off-by: Zhang Rui <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions