[ovs-git] [openvswitch/ovs] abaf6d: odp-util: Fix fuzz runtime error of invalid dont_s...

GitHub noreply at github.com
Thu Dec 27 19:12:21 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: abaf6dcf685cbb5dd828fd73611e2aa647945857
      https://github.com/openvswitch/ovs/commit/abaf6dcf685cbb5dd828fd73611e2aa647945857
  Author: Yifeng Sun <pkusunyifeng at gmail.com>
  Date:   2018-12-27 (Thu, 27 Dec 2018)

  Changed paths:
    M lib/odp-util.c
    M lib/odp-util.h

  Log Message:
  -----------
  odp-util: Fix fuzz runtime error of invalid dont_send value

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>
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