tom 2009/10/29 10:12:28 GMT
Modified files:
exim-src/src/pdkim pdkim.c
Log:
DKIM: Fix insufficient buffer space when relaxing one-word headers (One more byte makes the function look safer)
Revision Changes Path
1.5 +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.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- pdkim.c 29 Oct 2009 10:02:40 -0000 1.4
+++ pdkim.c 29 Oct 2009 10:12:28 -0000 1.5
@@ -20,7 +20,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-/* $Cambridge: exim/exim-src/src/pdkim/pdkim.c,v 1.4 2009/10/29 10:02:40 tom Exp $ */
+/* $Cambridge: exim/exim-src/src/pdkim/pdkim.c,v 1.5 2009/10/29 10:12:28 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)+2);
+ char *relaxed = malloc(strlen(header)+3);
if (relaxed == NULL) return NULL;
q = relaxed;
while (*p != '\0') {