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

dev at openvswitch.org dev at openvswitch.org
Thu Feb 28 18:30:53 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, master has been updated
       via  c93f303add6046fa583477e0c0749fded42e6068 (commit)
      from  5ee65211bc5b7c4041fe051ce5136a19467ebf8f (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 c93f303add6046fa583477e0c0749fded42e6068
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=c93f303add6046fa583477e0c0749fded42e6068
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