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

dev at openvswitch.org dev at openvswitch.org
Fri Jun 13 22:04:14 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, master has been updated
       via  f0e5aa1107407bbcabb3a816ee40a98b8ba2050c (commit)
       via  197573ac0229b694461d0d98e7e5172c068ab20c (commit)
      from  31125ebd8f9b946dc69baadb0f4b2043760e5f6e (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 f0e5aa1107407bbcabb3a816ee40a98b8ba2050c
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=f0e5aa1107407bbcabb3a816ee40a98b8ba2050c
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 197573ac0229b694461d0d98e7e5172c068ab20c
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=197573ac0229b694461d0d98e7e5172c068ab20c
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 |   30 ++++++++++++++++++------------
 1 file changed, 18 insertions(+), 12 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list