Browse Source

Merged patch to fix CVE-2017-8825

merge-experiment
Krista Grothoff 5 years ago
parent
commit
3274c7b373
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      src/low-level/imf/mailimf.c

+ 13
- 1
src/low-level/imf/mailimf.c View File

@ -3029,7 +3029,8 @@ static int mailimf_group_parse(const char * message, size_t length,
struct mailimf_group * group;
int r;
int res;
clist * list;
cur_token = * indx;
mailbox_list = NULL;
@ -3056,6 +3057,17 @@ static int mailimf_group_parse(const char * message, size_t length,
res = r;
goto free_display_name;
}
list = clist_new();
if (list == NULL) {
res = MAILIMF_ERROR_MEMORY;
goto free_display_name;
}
mailbox_list = mailimf_mailbox_list_new(list);
if (mailbox_list == NULL) {
res = MAILIMF_ERROR_MEMORY;
clist_free(list);
goto free_display_name;
}
break;
default:
res = r;


Loading…
Cancel
Save