diff options
author | Andreas Gruenbacher <[email protected]> | 2022-08-26 15:12:17 +0200 |
---|---|---|
committer | Andreas Gruenbacher <[email protected]> | 2022-08-26 15:27:06 +0200 |
commit | 204c0300c4e99707e9fb6e57840aa1127060e63f (patch) | |
tree | 0586579e9613a61fb2a1aa3976ce4f0a90f44cd8 /tools/perf/scripts/python | |
parent | 86934198eefa10a71f35162b06c44c36d85b98ba (diff) |
gfs2: Switch from strlcpy to strscpy
Switch from strlcpy to strscpy and make sure that @count is the size of
the smaller of the source and destination buffers. This prevents
reading beyond the end of the source buffer when the source string isn't
null terminated.
Found by a modified version of syzkaller.
Suggested-by: Wolfram Sang <[email protected]>
Signed-off-by: Andreas Gruenbacher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions