[tor-bugs] #7419 [Tor]: Choose a faster memwipe implementation

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Oct 22 14:07:02 UTC 2014


#7419: Choose a faster memwipe implementation
-----------------------------+------------------------------------
     Reporter:  nickm        |      Owner:
         Type:  enhancement  |     Status:  needs_review
     Priority:  normal       |  Milestone:  Tor: 0.2.6.x-final
    Component:  Tor          |    Version:
   Resolution:               |   Keywords:  tor-relay, nickm-patch
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+------------------------------------

Comment (by nickm):

 Well, for test-memwipe.c, we _want_ the compiler to remove the memwipe if
 it can.  I worry that making 'secret' volatile might keep some compiler
 out there from using its memset optimization, and thereby make our test
 invalid.

 Heap allocations are probably even simpler to test than stack allocations.
 Let me see what I can come up with.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7419#comment:14>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list