Displaying 3 results from an estimated 3 matches for "jpake_bn_clear_free".
2012 Jun 15
4
[PATCH] Fix sizeof in jpake_free()
Hello,
running Coccinelle (http://coccinelle.lip6.fr/) on the DragonFly source
tree with a patch to find issues of this kind turned up this one. Please
see the attached diff (against OpenBSD).
Regards,
Sascha
2012 Dec 21
0
File Attachments for previous bug report
...0
+++ jpake.c 2012-12-19 17:21:32.343510968 -0800
@@ -105,7 +105,7 @@
#define JPAKE_BUF_CLEAR_FREE(v, l) \
do { \
if ((v) != NULL) { \
- bzero((v), (l)); \
+ memset((v), 0, (l)); \
xfree(v); \
(v) = NULL; \
(l) = 0; \
@@ -133,7 +133,7 @@
#undef JPAKE_BN_CLEAR_FREE
#undef JPAKE_BUF_CLEAR_FREE
- bzero(pctx, sizeof(*pctx));
+ memset(pctx, 0, sizeof(*pctx));
xfree(pctx);
}
@@ -444,7 +444,7 @@
else if (timingsafe_bcmp(peer_confirm_hash, expected_confirm_hash,
expected_confirm_hash_len) == 0)
success = 1;
- bzero(expected_confirm_hash, exp...
2012 Dec 20
4
Deprecated calls to bzero() and index() found in OpenSSH 6.1p1
...LL) { \
- bzero((v), (l)); \
+ memset((v), 0, (l)); \
xfree(v); \
(v) = NULL; \
(l) = 0; \
@@ -133,7 +133,7 @@
#undef JPAKE_BN_CLEAR_FREE
#undef JPAKE_BUF_CLEAR_FREE
- bzero(pctx, sizeof(*pctx));
+ memset(pctx, 0, sizeof(*pctx));
xfree(pctx);
}
@@ -444,7 +444,7 @@
else if (timingsafe_bcmp(peer_confirm_hash, expected_confirm_hash,
expected_confirm_hash_len) == 0)
success = 1...