(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-mail/message-search.c) |
| |
| 140 | | | bool message_search_more(struct message_search_context *ctx, |
| 141 | | | struct message_block *raw_block) |
| 142 | | | { |
| 143 | | | struct *hdr = raw_block->hdr; |
| 144 | | | struct message_block block; |
| 145 | | | |
| 146 | | | if (raw_block->part != ctx->prev_part) { |
Event 1:
Taking true branch. raw_block->part != ctx->prev_part evaluates to true.
hide
|
|
| 147 | | | |
| 148 | | | |
| 149 | [+] | | message_search_reset(ctx); |
Event 2:
ctx is passed to message_search_reset().
hide
|
|
 |
| 150 | | | ctx->prev_part = raw_block->part; |
| 151 | | | } |
| 152 | | | |
| 153 | | | if (hdr != NULL) { |
Event 9:
Taking false branch. hdr != (void *)0 evaluates to false.
hide
|
|
| 154 | | | handle_header(ctx, hdr); |
| 155 | | | if ((ctx->flags & ) != 0) { |
| 156 | | | |
| 157 | | | |
| 158 | | | |
| 159 | | | if (hdr->name_len != 12 && hdr->name_len != 25) |
| 160 | | | return FALSE; |
| 161 | | | if (strcasecmp(hdr->name, "Content-Type") != 0 && |
| 162 | | | strcasecmp(hdr->name, |
| 163 | | | "Content-Transfer-Encoding") != 0) |
| 164 | | | return FALSE; |
| 165 | | | } |
| 166 | | | } else { |
| 167 | | | |
| 168 | | | if (!ctx->content_type_text) |
Event 10:
Skipping " if". ctx->content_type_text evaluates to true.
hide
|
|
| 169 | | | return FALSE; |
| 170 | | | } |
| 171 | [+] | | if (!message_decoder_decode_next_block(ctx->decoder, raw_block, &block)) |
Event 11:
ctx->decoder is passed to message_decoder_decode_next_block() as the first argument.
hide
|
|
 |
| |