Skip to content

oliver@linux kernel.at

dcb314 edited this page Aug 28, 2014 · 1 revision

Bug report on scanssh-2.1.1

md5.c:172:24: warning: 'memset' call operates on objects of type 'struct MD5Context' while the size is based on a different type 'struct MD5Context *' [-Wsizeof-pointer-memaccess]

memset(ctx, 0, sizeof(ctx));    /* In case it's sensitive */

Maybe better code

memset(ctx, 0, sizeof(*ctx));    /* In case it's sensitive */

Clone this wiki locally