git://git.exim.org
/
users
/
heiko
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5325967
)
DKIM: Fix insufficient buffer space when relaxing one-word headers (One more byte...
author
Tom Kistner
<tom@duncanthrax.net>
Thu, 29 Oct 2009 10:12:28 +0000
(10:12 +0000)
committer
Tom Kistner
<tom@duncanthrax.net>
Thu, 29 Oct 2009 10:12:28 +0000
(10:12 +0000)
src/src/pdkim/pdkim.c
patch
|
blob
|
history
diff --git
a/src/src/pdkim/pdkim.c
b/src/src/pdkim/pdkim.c
index 731a1c39fe417658715123c57950155b70f24d39..306e327e5b56bca94513e90ba462c40a1e252eac 100644
(file)
--- a/
src/src/pdkim/pdkim.c
+++ b/
src/src/pdkim/pdkim.c
@@
-20,7
+20,7
@@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-/* $Cambridge: exim/src/src/pdkim/pdkim.c,v 1.
4 2009/10/29 10:02:40
tom Exp $ */
+/* $Cambridge: exim/src/src/pdkim/pdkim.c,v 1.
5 2009/10/29 10:12:28
tom Exp $ */
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
@@
-366,7
+366,7
@@
char *pdkim_relax_header (char *header, int crlf) {
int seen_wsp = 0;
char *p = header;
char *q;
int seen_wsp = 0;
char *p = header;
char *q;
- char *relaxed = malloc(strlen(header)+
2
);
+ char *relaxed = malloc(strlen(header)+
3
);
if (relaxed == NULL) return NULL;
q = relaxed;
while (*p != '\0') {
if (relaxed == NULL) return NULL;
q = relaxed;
while (*p != '\0') {