[ovs-dev] [PATCH 2/2] odp-util: Fix fuzz runtime error of invalid dont_send value

Ben Pfaff blp at ovn.org
Thu Dec 27 19:12:21 UTC 2018


On Wed, Dec 26, 2018 at 04:52:23PM -0800, Yifeng Sun wrote:
> Oss-fuzz complains that (struct user_action_cookie)->controller->dont_send
> has invalid vlue, like below:
> runtime error: load of value 26, which is not a valid value for type 'bool'
> 
> From this piece of code "cookie.controller.dont_send ? 1 : 0", it looks
> like that we want to tolerate values than 0 and 1.
> 
> Thus, this patch changes the types of dont_send and continuation from bool
> to uint8_t in order to make oss-fuzz happy.
> 
> Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11330
> Signed-off-by: Yifeng Sun <pkusunyifeng at gmail.com>

Applied, thanks.


More information about the dev mailing list