Skip to content
Permalink
Browse files Browse the repository at this point in the history
Ensure UID in fetch_uidl
  • Loading branch information
jeriko-one authored and flatcap committed Jul 7, 2018
1 parent e27b65b commit 93b8ac5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pop.c
Expand Up @@ -202,6 +202,10 @@ static int fetch_uidl(char *line, void *data)
endp++;
memmove(line, endp, strlen(endp) + 1);

/* uid must be at least be 1 byte */
if (strlen(line) == 0)
return -1;

for (i = 0; i < ctx->msgcount; i++)
if (mutt_str_strcmp(line, ctx->hdrs[i]->data) == 0)
break;
Expand Down

0 comments on commit 93b8ac5

Please sign in to comment.