aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorAlexandro Calo <alexandro.calo@nozominetworks.com>2026-07-07 16:23:48 +0200
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2026-09-24 17:32:16 +0200
commiteff11b5a1eacea8d17fa50ad0b1c2ef405341f2c (patch)
treefc932d4159cc0adb8c7d80f07499eb6aeab0c685 /scripts/Makefile.thinlto
parentfs/ntfs3: validate $SDH entry size in ntfs_insert_security (diff)
fs/ntfs3: Fix OOB write if ret == buf_len in ntfs_utf16_to_nls()
'utf16s_to_utf8s()' is documented to return at most 'buf_len', the caller does not check whether 'ret == buf_len' before writing the terminator. The 'buf[ret] = '\0'' could write a NULL terminator one byte past the buffer. Fix this up by limiting ret to the last valid buffer index before writing NULL. As long as 'utf16s_to_utf8s()' never return a negative value and 'buf_len' is guaranteed to be nonzero the patch is fine. Anyway, as defensive fixes, if(ret<0) and if(buf_len==0) could be added. Signed-off-by: Alexandro Calo <alexandro.calo@nozominetworks.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions