commit f3948791d499030731726b9f83a2d61e3b6e2643
parent 8706728cf97484295922c745a5af887d406f0f1a
Author: Christoph Lohmann <20h@r-36.net>
Date: Fri, 28 Mar 2014 19:41:13 +0100
Decoding empty extended headers.
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/mime.c b/mime.c
@@ -191,6 +191,12 @@ mime_decodeheaderext(char *value)
ast[0] = '\0';
slen = strlen(str);
+ if (slen == NULL) {
+ free(work);
+ free(ret);
+ return memdupz("", 1);
+ }
+
cret = NULL;
switch(enc[0]) {
case 'B':