(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/mbox/mbox-sync-parse.c) |
| |
| 113 | | | parse_imap_keywords_list(struct mbox_sync_mail_context *ctx, |
| 114 | | | struct *hdr, size_t pos) |
| 115 | | | { |
| 116 | | | const char *keyword, *error; |
| 117 | | | size_t keyword_start; |
| 118 | | | unsigned int idx, count; |
| 119 | | | |
| 120 | | | count = 0; |
| 121 | | | while (pos < hdr->full_value_len) { |
Event 1:
Performing all but the last two loop iterations.
hide
Event 2:
Continuing from loop body. Entering loop body. pos < hdr->full_value_len evaluates to true.
hide
|
|
| 122 | | | if (IS_LWSP_LF(hdr->full_value[pos])) { |
Event 3:
Skipping " if". - hdr->full_value[pos] == 32 evaluates to false.
- hdr->full_value[pos] == 9 evaluates to false.
- hdr->full_value[pos] == 10 evaluates to false.
hide
|
|
| 123 | | | pos++; |
| 124 | | | continue; |
| 125 | | | } |
| 126 | | | |
| 127 | | | |
| 128 | | | keyword_start = pos; |
| 129 | | | for (; pos < hdr->full_value_len; pos++) { |
Event 4:
Entering loop body. pos < hdr->full_value_len evaluates to true.
hide
|
|
| 130 | | | if (IS_LWSP_LF(hdr->full_value[pos])) |
Event 5:
Taking true branch. hdr->full_value[pos] == 32 evaluates to true.
hide
|
|
| 131 | | | break; |
| 132 | | | } |
| 133 | | | |
| 134 | | | |
| 135 | | | keyword = t_strndup(hdr->full_value + keyword_start, |
Event 14:
keyword is set to t_strndup(...), which evaluates to NULL. See related event 13.
hide
|
|
| 136 | [+] | | pos - keyword_start); |
 |
| 137 | | | if (mailbox_keyword_is_valid(&ctx->sync_ctx->mbox->ibox.box, |
| 138 | [+] | | keyword, &error)) { |
 |
| 139 | | | mail_index_keyword_lookup_or_create( |
| 140 | [+] | | ctx->sync_ctx->mbox->ibox.index, keyword, &idx); |
Event 16:
keyword, which evaluates to NULL, is passed to mail_index_keyword_lookup_or_create() as the second argument. See related event 14.
hide
|
|
 |
| 141 | | | } |
| 142 | | | count++; |
| |