(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-transaction-log.c) |
| |
| 103 | | | int mail_transaction_log_create(struct mail_transaction_log *log, bool reset) |
| 104 | | | { |
| 105 | | | struct mail_transaction_log_file *file; |
| 106 | | | const char *path; |
| 107 | | | |
| 108 | | | if (MAIL_INDEX_IS_IN_MEMORY(log->index)) { |
Event 1:
Skipping " if". log->index->dir == (void *)0 evaluates to false.
hide
|
|
| 109 | | | file = mail_transaction_log_file_alloc_in_memory(log); |
| 110 | | | mail_transaction_log_set_head(log, file); |
| 111 | | | return 0; |
| 112 | | | } |
| 113 | | | |
| 114 | | | path = t_strconcat(log->index->filepath, |
Event 7:
path is set to t_strconcat(...), which evaluates to NULL. See related event 6.
hide
|
|
| 115 | [+] | | MAIL_TRANSACTION_LOG_SUFFIX, NULL); |
 |
| 116 | | | |
| 117 | [+] | | file = mail_transaction_log_file_alloc(log, path); |
Event 8:
path, which evaluates to NULL, is passed to mail_transaction_log_file_alloc() as the second argument. See related event 7.
hide
|
|
 |
| |