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:22 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2023-12-14 04:22:20 +0300
commitb13559b76157de9d74f04d3ca0e49d69de3b5675 (patch)
tree03e6d0b9cb98b19a582e37d272e57898fa9f7578 /tools/perf/scripts/python/export-to-postgresql.py
parentad436b9c1270c40554e274f067f1b78fcc06a004 (diff)
downloadlinux-b13559b76157de9d74f04d3ca0e49d69de3b5675.tar.xz
net/mlx5e: Correct snprintf truncation handling for fw_version buffer used by representors
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. Link: https://docs.kernel.org/core-api/kernel-api.html#c.snprintf Fixes: 1b2bd0c0264f ("net/mlx5e: Check return value of snprintf writing to fw_version buffer for representors") 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