discomfitor pushed a commit to branch enlightenment-0.19.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=f1c3a0a54042ddbfb2c482e97091aee3a8efc8d8

commit f1c3a0a54042ddbfb2c482e97091aee3a8efc8d8
Author: Amitesh Singh <amitesh...@samsung.com>
Date:   Thu Oct 1 16:20:23 2015 -0400

    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
---
 src/modules/everything/md5.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/everything/md5.c b/src/modules/everything/md5.c
index 3e5185c..fdc44cd 100644
--- a/src/modules/everything/md5.c
+++ b/src/modules/everything/md5.c
@@ -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 */

-- 


Reply via email to