[eso-midas] 10/16: Correct size for memset() call
Ole Streicher
olebole at moszumanska.debian.org
Wed Mar 25 14:16:07 UTC 2015
This is an automated email from the git hooks/post-receive script.
olebole pushed a commit to branch debian
in repository eso-midas.
commit 072a70600bd89b1e026462142625cfd89f8cd67e
Author: Ole Streicher <debian at liska.ath.cx>
Date: Wed Mar 25 13:51:19 2015 +0100
Correct size for memset() call
---
debian/patches/fix_md5_c.patch | 13 +++++++++++++
debian/patches/series | 1 +
2 files changed, 14 insertions(+)
diff --git a/debian/patches/fix_md5_c.patch b/debian/patches/fix_md5_c.patch
new file mode 100644
index 0000000..cb34a19
--- /dev/null
+++ b/debian/patches/fix_md5_c.patch
@@ -0,0 +1,13 @@
+Author: Ole Streicher <olebole at debian.org>
+Description: Correct size for memset() call
+--- a/prim/general/libsrc/md5.c
++++ b/prim/general/libsrc/md5.c
+@@ -325,7 +325,7 @@
+ MD5Transform(ctx->buf, (word32 *) ctx->in);
+ byteReverse((unsigned char *) ctx->buf, 4);
+ memmove(digest, ctx->buf, 16);
+- memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */
++ memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */
+ }
+
+ /* The four core functions - F1 is optimized somewhat */
diff --git a/debian/patches/series b/debian/patches/series
index 7aebf40..cf0d7e2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -23,3 +23,4 @@ fix_mutil_h.patch
fix_scc_c.patch
fix_cextrco_c.patch
fix_ftoc.patch
+fix_md5_c.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/eso-midas.git
More information about the debian-science-commits
mailing list