(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-transaction-log.c) |
| |
| 282 | | | mail_transaction_log_refresh(struct mail_transaction_log *log, bool nfs_flush) |
| 283 | | | { |
| 284 | | | struct mail_transaction_log_file *file; |
| 285 | | | struct stat st; |
| 286 | | | const char *path; |
| 287 | | | |
| 288 | | | i_assert(log->head != NULL);
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/macros.h |
| |
189 | #define i_assert(expr) STMT_START{ \ |
190 | if (unlikely(!(expr))) \ |
191 | i_panic("file %s: line %d (%s): assertion failed: (%s)", \ |
192 | __FILE__, \ |
193 | __LINE__, \ |
194 | __PRETTY_FUNCTION__, \ |
195 | #expr); }STMT_END |
| |
|
Event 1:
Skipping " if". log->head != (void *)0 evaluates to true.
hide
Event 2:
Skipping " if". !(log->head != (void *)0) evaluates to false.
hide
Event 3:
Skipping " if". !!(log->head != (void *)0) evaluates to true.
hide
Event 4:
Skipping " if". !!!(log->head != (void *)0) evaluates to false.
hide
Event 5:
Skipping " if". __builtin_expect(...) evaluates to false.
hide
|
|
| 289 | | | |
| 290 | | | if (MAIL_TRANSACTION_LOG_FILE_IN_MEMORY(log->head)) |
Event 6:
Skipping " if". log->head->fd == -1 evaluates to false.
hide
|
|
| 291 | | | return 0; |
| 292 | | | |
| 293 | | | path = t_strconcat(log->index->filepath, |
Event 12:
path is set to t_strconcat(...), which evaluates to NULL. See related event 11.
hide
|
|
| 294 | [+] | | MAIL_TRANSACTION_LOG_SUFFIX, NULL); |
 |
| 295 | | | if (log->index->nfs_flush && nfs_flush) |
Event 13:
Skipping " if". log->index->nfs_flush evaluates to false.
hide
|
|
| 296 | | | nfs_flush_file_handle_cache(path); |
| 297 | [+] | | if (nfs_safe_stat(path, &st) < 0) { |
Event 14:
path, which evaluates to NULL, is passed to nfs_safe_stat() as the first argument. See related event 12.
hide
|
|
 |
| |