[ovs-git] [openvswitch/ovs] d74f86: odp-util: Stop parse odp actions if nlattr is over...

yifsun noreply at github.com
Mon Feb 4 20:45:05 UTC 2019


  Branch: refs/heads/branch-2.4
  Home:   https://github.com/openvswitch/ovs
  Commit: d74f866498ad01222c982142e56cf36394787401
      https://github.com/openvswitch/ovs/commit/d74f866498ad01222c982142e56cf36394787401
  Author: Yifeng Sun <pkusunyifeng at gmail.com>
  Date:   2019-02-04 (Mon, 04 Feb 2019)

  Changed paths:
    M lib/odp-util.c

  Log Message:
  -----------
  odp-util: Stop parse odp actions if nlattr is overflow

`encap = nl_msg_start_nested(key, OVS_KEY_ATTR_ENCAP)` ensures that
key->size >= (encap + NLA_HDRLEN), so the `if` statement is safe.

Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11306
Signed-off-by: Yifeng Sun <pkusunyifeng at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list