md5: fix wrong sizeof argument (SIZEOF_MISMATCH)
Summary: fixes CID: 222382 Reviewers: raster, zmike, cedric, devilhorns Reviewed By: devilhorns Subscribers: cedric, seoz, sachin.dev Differential Revision: https://phab.enlightenment.org/D3125
This commit is contained in:
parent
982d4390f8
commit
c27ecb89fb
|
@ -156,7 +156,7 @@ MD5Final(unsigned char digest[16], MD5_CTX *ctx)
|
|||
MD5Transform(ctx->buf, (uint32_t *)ctx->in);
|
||||
byteReverse((unsigned char *)ctx->buf, 4);
|
||||
memcpy(digest, ctx->buf, 16);
|
||||
memset((char *)ctx, 0, sizeof(ctx)); /* In case it's sensitive */
|
||||
memset((char *)ctx, 0, sizeof(*ctx)); /* In case it's sensitive */
|
||||
}
|
||||
|
||||
/* The four core functions - F1 is optimized somewhat */
|
||||
|
|
Loading…
Reference in New Issue