aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tracing_struct.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-10-07 08:59:39 +0000
committerRafael J. Wysocki <[email protected]>2023-10-11 14:15:09 +0000
commitc99626092efca3061b387043d4a7399bf75fbdd5 (patch)
tree32e0d660a1ec3dd3baa69c04829c3cb97186fc5e /tools/testing/selftests/bpf/prog_tests/tracing_struct.c
parentthermal: Add myself as thermal reviewer in MAINTAINERS (diff)
downloadkernel-c99626092efca3061b387043d4a7399bf75fbdd5.tar.gz
kernel-c99626092efca3061b387043d4a7399bf75fbdd5.zip
thermal: core: prevent potential string overflow
The dev->id value comes from ida_alloc() so it's a number between zero and INT_MAX. If it's too high then these sprintf()s will overflow. Fixes: 203d3d4aa482 ("the generic thermal sysfs driver") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tracing_struct.c')
0 files changed, 0 insertions, 0 deletions