Mercurial > libpst
diff src/libpst.c @ 110:7133b39975f7 stable-0-6-22
patch from David Cuadrado to process emails with type PST_TYPE_OTHER
base64_encode_multiple() may insert newline, needs larger malloc
subject lines shorter than 2 bytes could segfault
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 28 Nov 2008 11:36:53 -0800 |
parents | 4703d622e95b |
children | e213bfcf9aa7 |
line wrap: on
line diff
--- a/src/libpst.c Tue Oct 21 14:45:39 2008 -0700 +++ b/src/libpst.c Fri Nov 28 11:36:53 2008 -0800 @@ -1875,7 +1875,7 @@ memset(item->email->subject, 0, sizeof(pst_item_email_subject)); DEBUG_EMAIL((" [size = %i] ", list->items[x]->size)); if (list->items[x]->size > 0) { - if (isprint(list->items[x]->data[0])) { + if (isprint(list->items[x]->data[0]) || (list->items[x]->size < 2)) { // then there are no control bytes at the front item->email->subject->off1 = 0; item->email->subject->off2 = 0;