diff options
author | Hannes Reinecke <hare@suse.de> | 2021-09-06 09:04:03 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-09-06 10:03:11 +0200 |
commit | f04064814c2a15c22ed9c803f9b634ef34f91092 (patch) | |
tree | 7d92afdf4f4a566da0da52bc99c8ac2603935165 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | ab7a2737ac5acd7d485ca45d8772497717fbc781 (diff) |
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 <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions