зеркало из https://github.com/mozilla/pjs.git
146089 r=ducarroz sr=bienvenu fixing a crasher when downloading pop3 mail with malformed "From" address.
This commit is contained in:
Родитель
2101fb1a3c
Коммит
21cc8feeed
|
@ -482,13 +482,13 @@ static int msg_parse_Header_addresses (const char *line, char **names, char **ad
|
|||
char *name_buf = 0, *name_out, *name_start;
|
||||
char *addr_buf = 0, *addr_out, *addr_start;
|
||||
|
||||
NS_ASSERTION(line, "");
|
||||
if (!line)
|
||||
return -1;
|
||||
if (names)
|
||||
*names = 0;
|
||||
if (addresses)
|
||||
*addresses = 0;
|
||||
NS_ASSERTION(line, "");
|
||||
if (!line)
|
||||
return -1;
|
||||
line_length = strlen(line);
|
||||
if (line_length == 0)
|
||||
return 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче