[ovs-git] [openvswitch/ovs] 6c793e: oss-fuzz: Use unsigned for left shift in ofctl_par...
GitHub
noreply at github.com
Fri Nov 2 18:31:05 UTC 2018
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: 6c793e8ee671de9d1bbb347a718b232465eecc76
https://github.com/openvswitch/ovs/commit/6c793e8ee671de9d1bbb347a718b232465eecc76
Author: Yifeng Sun <pkusunyifeng at gmail.com>
Date: 2018-11-02 (Fri, 02 Nov 2018)
Changed paths:
M tests/oss-fuzz/ofctl_parse_target.c
Log Message:
-----------
oss-fuzz: Use unsigned for left shift in ofctl_parse_flows__
Left shift int (1 here) can result in a negative value. This is an undefined
behavior according to ISO C99 (6.5.7).
The error message reported by oss-fuzz is:
runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
This patch fixes it by changing signed int to unsigned int.
Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11166
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