summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/task-analyzer-record
diff options
context:
space:
mode:
authorKyle Zeng <kylebot@openai.com>2026-06-11 14:33:31 -0700
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2026-07-24 12:45:03 +0200
commit4871fedaabbfd574ac0a075b80e75afdd532e11e (patch)
tree11401b14b68c79fb74715961020d77272647e170 /tools/perf/scripts/python/bin/task-analyzer-record
parentdd64afb32c4d8d3c934ae84df59a2e463d6fa43c (diff)
fs/ntfs3: reserve NUL byte when converting UTF-16 names
ntfs_utf16_to_nls() appends a trailing NUL to the converted output, but it passes the caller-supplied size directly to the conversion loop. For the UTF-8 path, utf16s_to_utf8s() can legitimately fill all buf_len bytes and return buf_len, after which ntfs_utf16_to_nls() writes the terminator one byte past the end of the destination buffer. The same contract problem exists for the NLS path when a converted character consumes the last available byte. Reserve one byte for the terminator before doing either conversion. The function continues to return the number of converted bytes, excluding the NUL terminator. Assisted-by: Codex:gpt-5.5 Signed-off-by: Kyle Zeng <kylebot@openai.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/task-analyzer-record')
0 files changed, 0 insertions, 0 deletions