[ovs-git] [openvswitch/ovs] ca7882: odp-util: Fix a bug in parse_odp_push_nsh_action

GitHub noreply at github.com
Fri Jan 18 00:35:46 UTC 2019


  Branch: refs/heads/branch-2.10
  Home:   https://github.com/openvswitch/ovs
  Commit: ca7882fb4d73fec2aaf024f3c4746fe7a6976079
      https://github.com/openvswitch/ovs/commit/ca7882fb4d73fec2aaf024f3c4746fe7a6976079
  Author: Yifeng Sun <pkusunyifeng at gmail.com>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M lib/odp-util.c

  Log Message:
  -----------
  odp-util: Fix a bug in parse_odp_push_nsh_action

In this piece of code, 'struct ofpbuf b' should always point to
metadata so that metadata can be filled with values through ofpbuf
operations, like ofpbuf_put_hex and ofpbuf_push_zeros. However,
ofpbuf_push_zeros may change the data pointer of 'struct ofpbuf b'
and therefore, metadata will not contain the expected values.

This patch fixes it by changing ofpbuf_push_zeros to
ofpbuf_put_zeros.

Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10863
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