search for: jpake_buf_clear_free

Displaying 3 results from an estimated 3 matches for "jpake_buf_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
...tkeys->entries + i, 0, sizeof(*hostkeys->entries)); } if (hostkeys->entries != NULL) xfree(hostkeys->entries); -------------- next part -------------- --- jpake.c.orig 2012-12-19 17:20:06.946529817 -0800 +++ 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(pct...
2012 Dec 20
4
Deprecated calls to bzero() and index() found in OpenSSH 6.1p1
...gt;entries); In file 'jpake.c', I've replaced the bzero() calls with the equivalent memset() calls. The patch file is below in (diff -u) format: --- jpake.c.orig 2012-12-19 17:20:06.946529817 -0800 +++ 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)...