aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorHannes Reinecke <[email protected]>2021-09-06 07:04:03 +0000
committerChristoph Hellwig <[email protected]>2021-09-06 08:03:11 +0000
commitf04064814c2a15c22ed9c803f9b634ef34f91092 (patch)
tree7d92afdf4f4a566da0da52bc99c8ac2603935165 /scripts/clang-tools/gen_compile_commands.py
parentnvmet: return bool from nvmet_passthru_ctrl and nvmet_is_passthru_req (diff)
downloadkernel-f04064814c2a15c22ed9c803f9b634ef34f91092.tar.gz
kernel-f04064814c2a15c22ed9c803f9b634ef34f91092.zip
nvmet: fixup buffer overrun in nvmet_subsys_attr_serial()
The serial number is copied into the buffer via memcpy_and_pad() with the length NVMET_SN_MAX_SIZE. So when printing out we also need to take just that length as anything beyond that will be uninitialized. Signed-off-by: Hannes Reinecke <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions