artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9ce070
)
Use freezero(3) in the CBB clean up path, since this could hold sensitive
author
jsing
<jsing@openbsd.org>
Fri, 14 Apr 2017 15:20:55 +0000
(15:20 +0000)
committer
jsing
<jsing@openbsd.org>
Fri, 14 Apr 2017 15:20:55 +0000
(15:20 +0000)
information (such as master keys).
lib/libssl/bs_cbb.c
patch
|
blob
|
history
diff --git
a/lib/libssl/bs_cbb.c
b/lib/libssl/bs_cbb.c
index
a84299f
..
154a796
100644
(file)
--- a/
lib/libssl/bs_cbb.c
+++ b/
lib/libssl/bs_cbb.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: bs_cbb.c,v 1.1
4 2017/03/10 15:16:20
jsing Exp $ */
+/* $OpenBSD: bs_cbb.c,v 1.1
5 2017/04/14 15:20:55
jsing Exp $ */
/*
* Copyright (c) 2014, Google Inc.
*
@@
-80,8
+80,7
@@
CBB_cleanup(CBB *cbb)
{
if (cbb->base) {
if (cbb->base->can_resize)
- free(cbb->base->buf);
-
+ freezero(cbb->base->buf, cbb->base->cap);
free(cbb->base);
}
cbb->base = NULL;