diff options
| author | Elena Salomatkina <[email protected]> | 2024-10-22 21:37:08 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2024-10-23 07:11:13 +0000 |
| commit | 4b60a5655528786bf659e9627fb0b45900f4cc66 (patch) | |
| tree | 3ee7420598fa664b4b1635cdc7f3effab10ab2c4 /rust/helpers/helpers.c | |
| parent | Linux 6.12-rc4 (diff) | |
| download | kernel-4b60a5655528786bf659e9627fb0b45900f4cc66.tar.gz kernel-4b60a5655528786bf659e9627fb0b45900f4cc66.zip | |
sumversion: Fix a memory leak in get_src_version()
strsep() modifies its first argument - buf.
An invalid pointer will be passed to the free() function.
Make the pointer passed to free() match the return value of
read_text_file().
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 9413e7640564 ("kbuild: split the second line of *.mod into *.usyms")
Signed-off-by: Elena Salomatkina <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
