[ovs-dev] [PATCH] odp-util: Initialize nsh_hdr in odp_nsh_hdr_from_attr

Ben Pfaff blp at ovn.org
Tue Oct 23 16:34:13 UTC 2018

On Thu, Oct 18, 2018 at 02:10:49PM -0700, Yifeng Sun wrote:
> For function odp_nsh_hdr_from_attr, paramemter `attr` may not contain
> all necessary OVS_NSH_KEY_ATTR_ to fully initialize data of nsh_hdr.
> On return, nsh_hdr can contain uninitialized values in its fields.
> This patch zeroes out nsh_hdr in the beginning in order to prevent it.
> Reported-by: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10863
> Signed-off-by: Yifeng Sun <pkusunyifeng at gmail.com>

Thanks, applied and backported.

More information about the dev mailing list