[ovs-git] Open vSwitch: nx-match: Correct writing of value and length in set_field_to_ofast() (branch-1.9)

dev at openvswitch.org dev at openvswitch.org
Thu Feb 28 18:32:40 UTC 2013


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.9 has been updated
       via  cadf201365b9e1e35001579a0020b26d3b605116 (commit)
      from  a83d19d7581c083b84a611a1bf4286989656f52c (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 cadf201365b9e1e35001579a0020b26d3b605116
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=cadf201365b9e1e35001579a0020b26d3b605116
Author: Simon Horman <horms at verge.net.au>
		
nx-match: Correct writing of value and length in set_field_to_ofast()
		
ofpbuf_put_* may reallocate the underlying buffer of the ofpbuf and
thus writing data after a ofpbuf_put_* call must write to memory
relative to the pointer returned by the call.

Prior to this change the length and trailing value would not be written to
the set_field action if ofpbuf_put_* may reallocated the underlying buffer.

Also make use of ofpbuf_put_zero() to avoid calling memset() directly.

Tested-by: Simon Horman <horms at verge.net.au>
Signed-off-by: Simon Horman <horms at verge.net.au>
Signed-off-by: Ben Pfaff <blp at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 lib/nx-match.c |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list