[tor-bugs] #17986 [Tor]: Use SecureZeroMemory in memwipe on Windows

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Jan 9 00:13:25 UTC 2016

#17986: Use SecureZeroMemory in memwipe on Windows
 Reporter:  teor         |          Owner:
     Type:  enhancement  |         Status:  reopened
 Priority:  Medium       |      Milestone:  Tor: 0.2.8.x-final
Component:  Tor          |        Version:
 Severity:  Minor        |     Resolution:
 Keywords:  windows      |  Actual Points:
Parent ID:               |         Points:
  Sponsor:               |

Comment (by teor):

 Replying to [comment:6 nickm]:
 > Strange!  Aren't we already including windows.h ?

 MinGW's WinBase.h doesn't contain SecureZeroMemory.
 (Their other memory setting functions #define down to memset, so this is
 probably just as well.)

 We'll need to AC_CHECK_FUNC for SecureZeroMemory in configure, like in
 #7419. (Do we have to include windows.h explicitly, or will configure pick
 it up automatically?)

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

More information about the tor-bugs mailing list