diff options
author | 2024-10-23 00:37:08 +0300 | |
---|---|---|
committer | 2024-10-23 16:11:13 +0900 | |
commit | 4b60a5655528786bf659e9627fb0b45900f4cc66 (patch) | |
tree | 3ee7420598fa664b4b1635cdc7f3effab10ab2c4 /scripts/generate_rust_analyzer.py | |
parent | Linux 6.12-rc4 (diff) | |
download | linux-rng-4b60a5655528786bf659e9627fb0b45900f4cc66.tar.xz linux-rng-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 <esalomatkina@ispras.ru>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions