[ovs-git] [openvswitch/ovs] b6db40: NSH: Fix NSH-related length macros that cause stac...
GitHub
noreply at github.com
Fri Oct 26 22:06:03 UTC 2018
Branch: refs/heads/branch-2.10
Home: https://github.com/openvswitch/ovs
Commit: b6db400ff5553acf2b9753adb9ff2cbb2cebd790
https://github.com/openvswitch/ovs/commit/b6db400ff5553acf2b9753adb9ff2cbb2cebd790
Author: Yifeng Sun <pkusunyifeng at gmail.com>
Date: 2018-10-26 (Fri, 26 Oct 2018)
Changed paths:
M datapath/linux/compat/include/net/nsh.h
M include/openvswitch/nsh.h
Log Message:
-----------
NSH: Fix NSH-related length macros that cause stack overflow
In the filed of ver_flags_ttl_len of struct nshhdr, there are only 6
bits that are used to indicate header's total length in 4-byte words.
Therefore, the max value for total is 252 (63x4), instead of 256 used
in present code base. This patch fixes it.
Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10855
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