[ovs-git] Open vSwitch: ofproto-dpif: Avoid dereferencing possibly null or wild pointer. (branch-1.8)

dev at openvswitch.org dev at openvswitch.org
Thu Aug 16 23:23:55 UTC 2012

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, branch-1.8 has been updated
       via  c7b0c00d29951d169096e0a244977d29a70db2f6 (commit)
      from  98fbb1f0d83b2244d544aa99de260b7dff563c40 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c7b0c00d29951d169096e0a244977d29a70db2f6
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=c7b0c00d29951d169096e0a244977d29a70db2f6
Author: Ben Pfaff <blp at nicira.com>
ofproto-dpif: Avoid dereferencing possibly null or wild pointer.
If ofpacts_len is 0 then ofpacts->type is a bad reference.

(An early draft of ofpacts used an OFPACT_END sentinel so that there was
always data there in this function, but in review the sentinel got deleted
and I did not notice that this function needed an update.)

Found by valgrind.

Bug #12847.
Signed-off-by: Ben Pfaff <blp at nicira.com>


Summary of changes:
 ofproto/ofproto-dpif.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Open vSwitch

More information about the git mailing list