aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorAlly Heev <[email protected]>2025-11-11 07:56:42 +0000
committerJens Wiklander <[email protected]>2025-11-14 07:42:07 +0000
commitac5ae0a5ce22640f73677d40730a37f43df442d1 (patch)
tree7828b9094b81b3f06c77ee1c8506ad4fbac935a8 /lib/test_fortify/write_overflow-strlcpy-src.c
parentLinux 6.18-rc1 (diff)
downloadkernel-ac5ae0a5ce22640f73677d40730a37f43df442d1.tar.gz
kernel-ac5ae0a5ce22640f73677d40730a37f43df442d1.zip
tee: qcomtee: fix uninitialized pointers with free attribute
Uninitialized pointers with `__free` attribute can cause undefined behavior as the memory assigned randomly to the pointer is freed automatically when the pointer goes out of scope. qcomtee doesn't have any bugs related to this as of now, but it is better to initialize and assign pointers with `__free` attribute in one statement to ensure proper scope-based cleanup Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Ally Heev <[email protected]> Reviewed-by: Sumit Garg <[email protected]> Signed-off-by: Jens Wiklander <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions