Mailing List Archive

[openssh] 05/09: upstream commit
This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch V_7_1
in repository openssh.

commit 8f5b93026797b9f7fba90d0c717570421ccebbd3
Author: guenther@openbsd.org <guenther@openbsd.org>
Date: Fri Sep 11 08:50:04 2015 +0000

upstream commit

Use explicit_bzero() when zeroing before free()

from Michael McConville (mmcconv1 (at) sccs.swarthmore.edu)
ok millert@ djm@

Upstream-ID: 2e3337db046c3fe70c7369ee31515ac73ec00f50
---
bitmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bitmap.c b/bitmap.c
index 19cd2e8..f950322 100644
--- a/bitmap.c
+++ b/bitmap.c
@@ -53,7 +53,7 @@ void
bitmap_free(struct bitmap *b)
{
if (b != NULL && b->d != NULL) {
- memset(b->d, 0, b->len);
+ explicit_bzero(b->d, b->len);
free(b->d);
}
free(b);

--
To stop receiving notification emails like this one, please contact
djm@mindrot.org.
_______________________________________________
openssh-commits mailing list
openssh-commits@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-commits