[tor-commits] [tor/master] Try silencing Coverity false positive CID 1441482

nickm at torproject.org nickm at torproject.org
Mon Dec 3 00:50:09 UTC 2018


commit e92f90019145c09fd8b1292b0198db1c2ba3a9b5
Author: rl1987 <rl1987 at sdf.lonestar.org>
Date:   Mon Nov 26 17:32:29 2018 +0200

    Try silencing Coverity false positive CID 1441482
    
    Bugfix on 469f47ef8dc8b18104108f0437c860ec88fca6ad; bug not in any released
    Tor version.
---
 src/core/or/versions.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/core/or/versions.c b/src/core/or/versions.c
index 5d4effcaf..a1336c7a7 100644
--- a/src/core/or/versions.c
+++ b/src/core/or/versions.c
@@ -399,6 +399,7 @@ memoize_protover_summary(protover_summary_flags_t *out,
 
   if (strmap_size(protover_summary_map) >= MAX_PROTOVER_SUMMARY_MAP_LEN) {
     protover_summary_cache_free_all();
+    tor_assert(protover_summary_map == NULL);
     protover_summary_map = strmap_new();
   }
 





More information about the tor-commits mailing list