summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorKarsten Graul <kgraul@linux.ibm.com>2022-04-08 18:10:33 +0300
committerJakub Kicinski <kuba@kernel.org>2022-04-12 04:28:02 +0300
commitb1871fd48efc567650dbdc974e5a2342a03fe0d2 (patch)
tree666273ed9f19268849848299b5d730a50c3b12a2 /tools/perf/scripts/python/exported-sql-viewer.py
parent5ad7f18cd82cee8e773d40cc7a1465a526f2615c (diff)
downloadlinux-b1871fd48efc567650dbdc974e5a2342a03fe0d2.tar.xz
net/smc: use memcpy instead of snprintf to avoid out of bounds read
Using snprintf() to convert not null-terminated strings to null terminated strings may cause out of bounds read in the source string. Therefore use memcpy() and terminate the target string with a null afterwards. Fixes: fa0866625543 ("net/smc: add support for user defined EIDs") Fixes: 3c572145c24e ("net/smc: add generic netlink support for system EID") Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions