[ovs-git] [openvswitch/ovs] 7587e1: odp-util: Initialize nsh_hdr in odp_nsh_hdr_from_a...
GitHub
noreply at github.com
Tue Oct 23 16:33:09 UTC 2018
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: 7587e1daa673149575149716605ef78f260d9989
https://github.com/openvswitch/ovs/commit/7587e1daa673149575149716605ef78f260d9989
Author: Yifeng Sun <pkusunyifeng at gmail.com>
Date: 2018-10-23 (Tue, 23 Oct 2018)
Changed paths:
M lib/odp-util.c
Log Message:
-----------
odp-util: Initialize nsh_hdr in odp_nsh_hdr_from_attr
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>
Signed-off-by: Ben Pfaff <blp at ovn.org>
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the git
mailing list