tom 2009/10/29 10:02:41 GMT
Modified files:
exim-src/src/pdkim pdkim.c
Log:
DKIM: Fix insufficient buffer space when relaxing one-word headers.
Revision Changes Path
1.4 +1 -1 exim/exim-src/src/pdkim/pdkim.c
Index: pdkim.c
===================================================================
RCS file: /home/cvs/exim/exim-src/src/pdkim/pdkim.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- pdkim.c 9 Sep 2009 08:13:58 -0000 1.3
+++ pdkim.c 29 Oct 2009 10:02:40 -0000 1.4
@@ -20,7 +20,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-/* $Cambridge: exim/exim-src/src/pdkim/pdkim.c,v 1.3 2009/09/09 08:13:58 tom Exp $ */
+/* $Cambridge: exim/exim-src/src/pdkim/pdkim.c,v 1.4 2009/10/29 10:02:40 tom Exp $ */
#include <stdlib.h>
#include <stdio.h>
@@ -366,7 +366,7 @@
int seen_wsp = 0;
char *p = header;
char *q;
- char *relaxed = malloc(strlen(header));
+ char *relaxed = malloc(strlen(header)+2);
if (relaxed == NULL) return NULL;
q = relaxed;
while (*p != '\0') {