[ovs-git] [openvswitch/ovs] 75907f: ofp-group: Use big-enough buffer in ofputil_format...
Ben Pfaff
noreply at github.com
Fri May 7 19:26:18 UTC 2021
Branch: refs/heads/branch-2.11
Home: https://github.com/openvswitch/ovs
Commit: 75907f8a11c986c6f58700c0a1e9957e0a26bca1
https://github.com/openvswitch/ovs/commit/75907f8a11c986c6f58700c0a1e9957e0a26bca1
Author: Ben Pfaff <blp at ovn.org>
Date: 2021-05-07 (Fri, 07 May 2021)
Changed paths:
M lib/ofp-group.c
Log Message:
-----------
ofp-group: Use big-enough buffer in ofputil_format_group().
GCC 11 pointed out that ofputil_group_to_string()'s prototype asks for
a buffer with one byte more than supplied. This fixes the problem.
This wasn't a buffer overflow because ofputil_group_to_string() honors
the buffer size passed in, which was correct. The worst that could
happen was truncating the last byte of a group name.
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Paolo Valerio <pvalerio at redhat.com>
More information about the git
mailing list