diff options
author | David Shaw <[email protected]> | 2002-10-31 15:40:42 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-10-31 15:40:42 +0000 |
commit | 20c99d180a3f9c5d0134ff8c5fc62c434ae50c02 (patch) | |
tree | a954f28f4fdbdbb399d14e67e19fe5230a606322 /g10/sign.c | |
parent | * util.h: Add wipememory() macro. (diff) | |
download | gnupg-20c99d180a3f9c5d0134ff8c5fc62c434ae50c02.tar.gz gnupg-20c99d180a3f9c5d0134ff8c5fc62c434ae50c02.zip |
* build-packet.c (do_plaintext), encode.c (encode_sesskey, encode_simple,
encode_crypt), sign.c (write_plaintext_packet): Use wipememory() instead
of memset() to wipe sensitive memory as the memset() might be optimized
away.
Diffstat (limited to '')
-rw-r--r-- | g10/sign.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/sign.c b/g10/sign.c index b5314cccf..2c85f232a 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -506,7 +506,7 @@ write_plaintext_packet (IOBUF out, IOBUF inp, const char *fname, int ptmode) g10_errstr(rc)); break; } - memset(copy_buffer, 0, 4096); /* burn buffer */ + wipememory(copy_buffer,4096); /* burn buffer */ } /* fixme: it seems that we never freed pt/pkt */ |