mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
improve a comment in memwipe
This commit is contained in:
parent
7186e2a943
commit
ce3b7ddb54
1 changed files with 5 additions and 1 deletions
|
@ -2817,7 +2817,11 @@ memwipe(void *mem, uint8_t byte, size_t sz)
|
|||
* variable. It's an elaborate ruse to trick the compiler into not
|
||||
* optimizing out the "wipe this memory" code. Read it if you like zany
|
||||
* programming tricks! In later versions of Tor, we should look for better
|
||||
* not-optimized-out memory wiping stuff. */
|
||||
* not-optimized-out memory wiping stuff...
|
||||
*
|
||||
* ...or maybe not. In practice, there are pure-asm implementations of
|
||||
* OPENSSL_cleanse() on most platforms, which ought to do the job.
|
||||
**/
|
||||
OPENSSL_cleanse(mem, sz);
|
||||
/* Just in case some caller of memwipe() is relying on getting a buffer
|
||||
* filled with a particular value, fill the buffer.
|
||||
|
|
Loading…
Add table
Reference in a new issue