aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-10-18 17:20:11 +0300
committerJakub Kicinski <[email protected]>2023-10-19 15:51:52 -0700
commit75a384ceda93df0ec2436f0188e58f166a609c49 (patch)
tree5898b6b90f76fcca58af712a03c3fbdc58b5cba1 /tools/perf/scripts/python/exported-sql-viewer.py
parent041c3466f39d7073bbc7fb91c4e5d14170d5eb08 (diff)
ptp: prevent string overflow
The ida_alloc_max() function can return up to INT_MAX so this buffer is not large enough. Also use snprintf() for extra safety. Fixes: 403376ddb422 ("ptp: add debugfs interface to see applied channel masks") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Przemek Kitszel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions