(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-index-strmap.c) |
| |
| 547 | | | strmap_read_block_next(struct mail_index_strmap_read_context *ctx, |
| 548 | | | uint32_t *crc32_r) |
| 549 | | | { |
| 550 | | | uint32_t uid_diff; |
| 551 | | | int ret; |
| 552 | | | |
| 553 | [+] | | if (mail_index_strmap_read_rec_next(ctx, crc32_r)) |
 |
| 554 | | | return 1; |
| 555 | | | |
| 556 | | | |
| 557 | | | do { |
| 558 | | | if (ctx->input->v_offset == ctx->end_offset) { |
Event 3:
Skipping " if". ctx->input->v_offset == ctx->end_offset evaluates to false.
hide
|
|
| 559 | | | |
| 560 | | | return 0; |
| 561 | | | } |
| 562 | [+] | | if (mail_index_strmap_read_packed(ctx, &uid_diff) < 0) |
Event 4:
mail_index_strmap_read_packed() does not initialize uid_diff. - This may be because of a failure case or other special case for mail_index_strmap_read_packed().
hide
|
|
 |
| 563 | | | return -1; |
| 564 | | | |
| 565 | | | ctx->rec.uid += uid_diff; |
Uninitialized Variable
uid_diff was not initialized. The issue can occur if the highlighted code executes. See related event 4. Show: All events | Only primary events |
|
| |