SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
13
security/mcrypt/patches/patch-src_extra_c
Normal file
13
security/mcrypt/patches/patch-src_extra_c
Normal file
|
@ -0,0 +1,13 @@
|
|||
CVE-2012-4409, patch from http://seclists.org/oss-sec/2012/q3/396
|
||||
|
||||
--- src/extra.c.orig Thu Sep 6 22:23:29 2012
|
||||
+++ src/extra.c Thu Sep 6 22:24:09 2012
|
||||
@@ -242,6 +242,8 @@ int check_file_head(FILE * fstream, char *algorithm, c
|
||||
if (m_getbit(0, sflag) != 0) { /* if the first bit is set */
|
||||
*salt_size = m_setbit(0, sflag, 0);
|
||||
if (*salt_size > 0) {
|
||||
+ if (*salt_size > sizeof(tmp_buf))
|
||||
+ err_quit(_("Salt is too long\n"));
|
||||
fread(tmp_buf, 1, *salt_size,
|
||||
fstream);
|
||||
memmove(salt, tmp_buf, *salt_size);
|
Loading…
Add table
Add a link
Reference in a new issue