artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a29ddfd
)
chacha20_poly1305_cleanup() should return 1
author
tb
<tb@openbsd.org>
Tue, 30 Aug 2022 19:33:26 +0000
(19:33 +0000)
committer
tb
<tb@openbsd.org>
Tue, 30 Aug 2022 19:33:26 +0000
(19:33 +0000)
Otherwise EVP_CIPHER_CTX_cleanup() leaks, as spotted by the ASAN CI.
ok jsing
lib/libcrypto/evp/e_chacha20poly1305.c
patch
|
blob
|
history
diff --git
a/lib/libcrypto/evp/e_chacha20poly1305.c
b/lib/libcrypto/evp/e_chacha20poly1305.c
index
422eb23
..
674a323
100644
(file)
--- a/
lib/libcrypto/evp/e_chacha20poly1305.c
+++ b/
lib/libcrypto/evp/e_chacha20poly1305.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: e_chacha20poly1305.c,v 1.2
4 2022/08/21 10:47:09
tb Exp $ */
+/* $OpenBSD: e_chacha20poly1305.c,v 1.2
5 2022/08/30 19:33:26
tb Exp $ */
/*
* Copyright (c) 2022 Joel Sing <jsing@openbsd.org>
@@
-537,7
+537,7
@@
chacha20_poly1305_cleanup(EVP_CIPHER_CTX *ctx)
explicit_bzero(cpx, sizeof(*cpx));
- return
0
;
+ return
1
;
}
static int