diff options
| author | Ally Heev <[email protected]> | 2025-11-11 07:56:42 +0000 |
|---|---|---|
| committer | Jens Wiklander <[email protected]> | 2025-11-14 07:42:07 +0000 |
| commit | ac5ae0a5ce22640f73677d40730a37f43df442d1 (patch) | |
| tree | 7828b9094b81b3f06c77ee1c8506ad4fbac935a8 /lib/test_fortify/write_overflow-strlcpy-src.c | |
| parent | Linux 6.18-rc1 (diff) | |
| download | kernel-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
