[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] fix uninitialized memory reads from test_geoip_with_pt. Found with valgrind
commit 3fa296ce28ea875877ac2725dfd213e176881964
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Sat Apr 26 00:12:16 2014 -0400
fix uninitialized memory reads from test_geoip_with_pt. Found with valgrind
---
src/test/test.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/test/test.c b/src/test/test.c
index f7e26a6..c96b396 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -1018,6 +1018,8 @@ test_geoip_with_pt(void)
get_options_mutable()->BridgeRelay = 1;
get_options_mutable()->BridgeRecordUsageByCountry = 1;
+ memset(&in6, 0, sizeof(in6));
+
/* No clients seen yet. */
s = geoip_get_transport_history();
tor_assert(!s);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits