[ovs-git] [openvswitch/ovs] 87a826: ofpbuf: Fix arithmetic error in ofpbuf_insert().

GitHub noreply at github.com
Fri Jan 18 18:48:26 UTC 2019


  Branch: refs/heads/branch-2.10
  Home:   https://github.com/openvswitch/ovs
  Commit: 87a826a8a1a659e3b1ff4802be59d85018a13724
      https://github.com/openvswitch/ovs/commit/87a826a8a1a659e3b1ff4802be59d85018a13724
  Author: Toms Atteka <cpp.code.lv at gmail.com>
  Date:   2019-01-18 (Fri, 18 Jan 2019)

  Changed paths:
    M lib/ofpbuf.c

  Log Message:
  -----------
  ofpbuf: Fix arithmetic error in ofpbuf_insert().

memmove byte count was calculated incorrectly as ofpbuf_put_uninit
is increasing b->size by n.

This patch fixes it by reducing byte count by n.

Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12296
Signed-off-by: Toms Atteka <cpp.code.lv 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