[ovs-git] Open vSwitch: lib/classifier: Fix use of uninitialized memory. (branch-2.1)

dev at openvswitch.org dev at openvswitch.org
Fri Jun 13 23:04:11 UTC 2014


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-2.1 has been updated
       via  5fbb2d9bd069be7ff6a2b46ae45cabae6a1f389b (commit)
       via  316e886aa8ecdf1ee297ba1ae1c3abc8192c979f (commit)
      from  fb191f1c984b65be28b06c82b23dfd58a4511bed (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 5fbb2d9bd069be7ff6a2b46ae45cabae6a1f389b
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=5fbb2d9bd069be7ff6a2b46ae45cabae6a1f389b
Author: Jarno Rajahalme <jrajahalme at nicira.com>
		
lib/classifier: Fix use of uninitialized memory.
		
When reaching the end of a prefix trie, we checked one bit off the end
to the intended data.  However, since the trie node in that case has
NULLs for both edge links, this did not result in incorrect
functionality.

Found via check-valgrind.

Reported-by: Ben Pfaff <blp at nicira.com>
Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


commit 316e886aa8ecdf1ee297ba1ae1c3abc8192c979f
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=316e886aa8ecdf1ee297ba1ae1c3abc8192c979f
Author: Jarno Rajahalme <jrajahalme at nicira.com>
		
lib/classifier: Clarify trie_lookup_value().
		
trie_lookup_value() is easier to read with the local variable 'plen'
renamed as 'ofs'.

Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


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

Summary of changes:
 lib/classifier.c |   28 +++++++++++++++++-----------
 1 file changed, 17 insertions(+), 11 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list