summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-crypt/md4sum/files/md4sum-fix-out-of-bounds-write.diff')
-rw-r--r--app-crypt/md4sum/files/md4sum-fix-out-of-bounds-write.diff11
1 files changed, 11 insertions, 0 deletions
diff --git a/app-crypt/md4sum/files/md4sum-fix-out-of-bounds-write.diff b/app-crypt/md4sum/files/md4sum-fix-out-of-bounds-write.diff
new file mode 100644
index 00000000000..1275996080e
--- /dev/null
+++ b/app-crypt/md4sum/files/md4sum-fix-out-of-bounds-write.diff
@@ -0,0 +1,11 @@
+--- a/md4sum.c 2007-04-11 23:22:38.000000000 +0200
++++ b/md4sum.c 2015-02-15 21:57:59.699682995 +0100
+@@ -126,7 +126,7 @@
+ int i;
+ static char s[33];
+ for( i=0; i<16; i++ ) sprintf( &s[2*i], "%02x", digest[i] );
+- s[33]= '\0';
++ s[32]= '\0';
+ return( s );
+ }
+