[ovs-git] [openvswitch/ovs] 64cde1: odp-util: Use flexible sized buffer to hold Geneve...

GitHub noreply at github.com
Fri Dec 22 19:22:17 UTC 2017


  Branch: refs/heads/branch-2.7
  Home:   https://github.com/openvswitch/ovs
  Commit: 64cde11b7f3249bfae9b818a9370adfa4b3e17c0
      https://github.com/openvswitch/ovs/commit/64cde11b7f3249bfae9b818a9370adfa4b3e17c0
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2017-12-22 (Fri, 22 Dec 2017)

  Changed paths:
    M lib/odp-util.c

  Log Message:
  -----------
  odp-util: Use flexible sized buffer to hold Geneve options.

The 'mask' buffer in parse_odp_action() is supposed to always be big
enough:
  /* 'mask' is big enough to hold any key. */

Geneve options can be really big and the comment was wrong.  In addition,
the user might supply more options than can really fit in any case, so
we might as well just use a stub.

Found by libfuzzer.

Reported-by: Bhargava Shastry <bshastry at sec.t-labs.tu-berlin.de>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list