Module Name: src Committed By: nia Date: Tue Oct 12 12:11:04 UTC 2021
Modified Files: src/lib/libcrypt: crypt-argon2.c Log Message: paranoia: use explicit_memset To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/lib/libcrypt/crypt-argon2.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libcrypt/crypt-argon2.c diff -u src/lib/libcrypt/crypt-argon2.c:1.4 src/lib/libcrypt/crypt-argon2.c:1.5 --- src/lib/libcrypt/crypt-argon2.c:1.4 Tue Oct 12 10:51:33 2021 +++ src/lib/libcrypt/crypt-argon2.c Tue Oct 12 12:11:04 2021 @@ -254,9 +254,9 @@ __crypt_argon2(const char *pw, const cha blkp); /* clear buffers */ - memset(encodebuf, 0, sizeof(encodebuf)); - memset(saltbuf, 0, sizeof(saltbuf)); - memset(pwdbuf, 0, sizeof(pwdbuf)); + explicit_memset(encodebuf, 0, sizeof(encodebuf)); + explicit_memset(saltbuf, 0, sizeof(saltbuf)); + explicit_memset(pwdbuf, 0, sizeof(pwdbuf)); /* return encoded str */ return rbuf;