summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorRahul Rameshbabu <rrameshbabu@nvidia.com>2023-11-22 02:00:21 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2023-12-14 04:22:19 +0300
commitad436b9c1270c40554e274f067f1b78fcc06a004 (patch)
treebc96af6cc0727710d4641d860335c9afb7e802f8 /tools/perf/scripts/python/export-to-postgresql.py
parentd792e5f7f19b95f5ce41ac49df5ead4d280238f4 (diff)
downloadlinux-ad436b9c1270c40554e274f067f1b78fcc06a004.tar.xz
net/mlx5e: Correct snprintf truncation handling for fw_version buffer
snprintf returns the length of the formatted string, excluding the trailing null, without accounting for truncation. This means that is the return value is greater than or equal to the size parameter, the fw_version string was truncated. Reported-by: David Laight <David.Laight@ACULAB.COM> Closes: https://lore.kernel.org/netdev/81cae734ee1b4cde9b380a9a31006c1a@AcuMS.aculab.com/ Link: https://docs.kernel.org/core-api/kernel-api.html#c.snprintf Fixes: 41e63c2baa11 ("net/mlx5e: Check return value of snprintf writing to fw_version buffer") Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions