Add and use and unlikely-to-be-eliminated memwipe()
commit49dd5ef3a3d1775fdc3c0a7d069d3097b3baeeec
authorNick Mathewson <nickm@torproject.org>
Wed, 7 Nov 2012 21:09:58 +0000 (7 16:09 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 8 Nov 2012 21:44:50 +0000 (8 16:44 -0500)
tree7189ed200ae8f47bf7d3399d0b99243dc93bced3
parent758428dd32128874cefacc92ef63c1b5bc9a656e
Add and use and unlikely-to-be-eliminated memwipe()

Apparently some compilers like to eliminate memset() operations on
data that's about to go out-of-scope.  I've gone with the safest
possible replacement, which might be a bit slow.  I don't think this
is critical path in any way that will affect performance, but if it
is, we can work on that in 0.2.4.

Fixes bug 7352.
19 files changed:
changes/bug7352 [new file with mode: 0644]
src/common/aes.c
src/common/compat.c
src/common/crypto.c
src/common/crypto.h
src/common/mempool.c
src/common/tortls.c
src/common/util.c
src/or/buffers.c
src/or/circuitlist.c
src/or/connection.c
src/or/connection_edge.c
src/or/connection_or.c
src/or/networkstatus.c
src/or/onion.c
src/or/rendclient.c
src/or/rendservice.c
src/or/routerparse.c
src/tools/tor-gencert.c