(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/list/index-mailbox-list.c) |
| |
| 454 | | | static int index_mailbox_list_open_indexes(struct mailbox_list *list, |
| 455 | | | const char *dir) |
| 456 | | | { |
| 457 | [+] | | struct index_mailbox_list *ilist = INDEX_LIST_CONTEXT(list);
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/module-context.h |
| |
46 | #define MODULE_CONTEXT(obj, id_ctx) \ |
47 | (*((void **)array_idx_modifiable(&(obj)->module_contexts, \ |
48 | (id_ctx).id.module_id) + \ |
49 | OBJ_REGISTER_COMPATIBLE(obj, id_ctx))) |
| |
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/array.h |
| |
179 | #define array_idx_modifiable(array, idx) \ |
180 | ARRAY_TYPE_CAST_MODIFIABLE(array) \ |
181 | array_idx_modifiable_i(&(array)->arr, idx) |
| |
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/array.h |
| |
45 | # define ARRAY_TYPE_CAST_MODIFIABLE(array) \ |
46 | (typeof(*(array)->v_modifiable)) |
| |
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/module-context.h |
| |
43 | #define OBJ_REGISTER_COMPATIBLE(obj, id_ctx) \ |
44 | COMPILE_ERROR_IF_TYPES_NOT_COMPATIBLE(OBJ_REGISTER(obj), (id_ctx).reg) |
| |
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/macros.h |
| |
158 | # define COMPILE_ERROR_IF_TYPES_NOT_COMPATIBLE(_a, _b) \ |
159 | COMPILE_ERROR_IF_TRUE( \ |
160 | !__builtin_types_compatible_p(typeof(_a), typeof(_b))) |
| |
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/macros.h |
| |
156 | # define COMPILE_ERROR_IF_TRUE(condition) \ |
157 | (sizeof(char[1 - 2 * !!(condition)]) - 1) |
| |
|
 |
| 458 | | | const char *path; |
| 459 | | | enum mail_index_open_flags index_flags; |
| 460 | | | enum mail_storage_flags storage_flags; |
| 461 | | | int ret; |
| 462 | | | |
| 463 | | | |
| 464 | | | index_flags = MAIL_INDEX_OPEN_FLAG_CREATE; |
| 465 | | | storage_flags = *list->set.mail_storage_flags; |
| 466 | | | #ifndef MMAP_CONFLICTS_WRITE |
| 467 | | | if ((storage_flags & MAIL_STORAGE_FLAG_MMAP_DISABLE) != 0) |
Event 5:
Taking true branch. (storage_flags & MAIL_STORAGE_FLAG_MMAP_DISABLE) != 0 evaluates to true.
hide
|
|
| 468 | | | #endif |
| 469 | | | index_flags |= MAIL_INDEX_OPEN_FLAG_MMAP_DISABLE; |
| 470 | | | |
| 471 | | | if (mail_index_open(ilist->mail_index, index_flags, |
Event 6:
ilist->mail_index, which evaluates to ((char*)*(buf->w_buffer + pos))[72] at buffer.c:270, is passed to mail_index_open() as the first argument. See related event 4.
hide
|
|
| 472 | [+] | | *list->set.lock_method) < 0) { |
 |
| 473 | [+] | | if (mail_index_move_to_memory(ilist->mail_index) < 0) { |
Event 24:
ilist->mail_index, which evaluates to ((char*)*(buf->w_buffer + pos))[72] at buffer.c:270, is passed to mail_index_move_to_memory(). See related event 4.
hide
|
|
 |
| |