(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/dbox/dbox-sync-rebuild.c) |
| |
| 246 | | | dbox_sync_index_maildir_file(struct dbox_sync_rebuild_context *ctx, |
| 247 | | | const char *fname) |
| 248 | | | { |
| 249 | | | struct dbox_file *file; |
| 250 | | | uoff_t offset = 0; |
| 251 | | | int ret; |
| 252 | | | |
| 253 | | | if (ctx->mbox->maildir_sync_keywords == NULL) { |
Event 1:
Skipping " if". ctx->mbox->maildir_sync_keywords == (void *)0 evaluates to false.
hide
|
|
| 254 | | | ctx->maildir_uidlist = |
| 255 | | | maildir_uidlist_init_readonly(&ctx->mbox->ibox); |
| 256 | | | ctx->mk = maildir_keywords_init_readonly(&ctx->mbox->ibox.box); |
| 257 | | | ctx->mbox->maildir_sync_keywords = |
| 258 | | | maildir_keywords_sync_init(ctx->mk, |
| 259 | | | ctx->mbox->ibox.index); |
| 260 | | | |
| 261 | | | if (maildir_uidlist_refresh(ctx->maildir_uidlist) < 0) |
| 262 | | | return -1; |
| 263 | | | } |
| 264 | | | |
| 265 | [+] | | file = dbox_file_init_new_maildir(ctx->mbox, fname); |
 |
| 266 | [+] | | if ((ret = dbox_sync_index_file_next(ctx, file, &offset)) > 0) { |
Event 19:
file, which evaluates to malloc(size) from imem.c:9, is passed to dbox_sync_index_file_next() as the second argument. See related event 18.
hide
|
|
 |
| |