tDecoding empty extended headers. - rohrpost - A commandline mail client to change the world as we see it.
 (HTM) git clone git://r-36.net/rohrpost
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit f3948791d499030731726b9f83a2d61e3b6e2643
 (DIR) parent 8706728cf97484295922c745a5af887d406f0f1a
 (HTM) Author: Christoph Lohmann <20h@r-36.net>
       Date:   Fri, 28 Mar 2014 19:41:13 +0100
       
       Decoding empty extended headers.
       
       Diffstat:
         mime.c                              |       6 ++++++
       
       1 file changed, 6 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/mime.c b/mime.c
       t@@ -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':