[ovs-git] [openvswitch/ovs] 3885c7: odp-util: added NULL check for error pointer argument

TomCodeLV noreply at github.com
Mon Mar 18 21:03:11 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 3885c72ccc1a7ad95deac4a40c20d42cc1d7845b
      https://github.com/openvswitch/ovs/commit/3885c72ccc1a7ad95deac4a40c20d42cc1d7845b
  Author: Toms Atteka <cpp.code.lv at gmail.com>
  Date:   2019-03-18 (Mon, 18 Mar 2019)

  Changed paths:
    M lib/odp-util.c

  Log Message:
  -----------
  odp-util: added NULL check for error pointer argument

If NULL value was provided for odp_flow_from_string errorp argument
segmentation fault error occurred.

This patch fixes it by ignoring error formatting if error pointer
is not provided.

Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12972
Signed-off-by: Toms Atteka <cpp.code.lv at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list