summaryrefslogtreecommitdiff
path: root/contrib/pgcrypto/pgp-cfb.c
diff options
context:
space:
mode:
authorBruce Momjian2014-04-17 16:37:53 +0000
committerBruce Momjian2014-04-17 16:37:53 +0000
commit9fe55259fd61fd9199907623f974caa7af66e780 (patch)
tree2d2d7fc333474267d375ca35db482b8a4e42e253 /contrib/pgcrypto/pgp-cfb.c
parent83defef8c794e7772e4099a7efa2ebac3c62742c (diff)
pgcrypto: fix memset() calls that might be optimized away
Specifically, on-stack memset() might be removed, so: * Replace memset() with px_memset() * Add px_memset to copy_crlf() * Add px_memset to pgp-s2k.c Patch by Marko Kreen Report by PVS-Studio Backpatch through 8.4.
Diffstat (limited to 'contrib/pgcrypto/pgp-cfb.c')
-rw-r--r--contrib/pgcrypto/pgp-cfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pgcrypto/pgp-cfb.c b/contrib/pgcrypto/pgp-cfb.c
index d230bcb49eb..17e6c66ade8 100644
--- a/contrib/pgcrypto/pgp-cfb.c
+++ b/contrib/pgcrypto/pgp-cfb.c
@@ -84,7 +84,7 @@ void
pgp_cfb_free(PGP_CFB *ctx)
{
px_cipher_free(ctx->ciph);
- memset(ctx, 0, sizeof(*ctx));
+ px_memset(ctx, 0, sizeof(*ctx));
px_free(ctx);
}