(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/dbox/dbox-sync-file.c) |
| |
| 87 | | | dbox_sync_file_expunge(struct dbox_sync_context *ctx, struct dbox_file *file, |
| 88 | | | const struct dbox_sync_file_entry *entry) |
| 89 | | | { |
| 90 | | | const struct seq_range *expunges; |
| 91 | | | struct dbox_file *out_file = NULL; |
| 92 | | | struct istream *input; |
| 93 | | | struct ostream *output; |
| 94 | | | uint32_t file_id, seq, uid; |
| 95 | | | uoff_t first_offset, offset, physical_size; |
| 96 | | | const char *out_path; |
| 97 | | | unsigned int i, count; |
| 98 | | | bool expunged; |
| 99 | | | int ret; |
| 100 | | | |
| 101 | | | expunges = array_get(&entry->expunges, &count);
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/array.h |
| |
156 | #define array_get(array, count) \ |
157 | ARRAY_TYPE_CAST_CONST(array)array_get_i(&(array)->arr, count) |
| |
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/array.h |
| |
43 | # define ARRAY_TYPE_CAST_CONST(array) \ |
44 | (typeof(*(array)->v)) |
| |
|
| 102 | | | if (!dbox_file_lookup(ctx->mbox, ctx->sync_view, expunges[0].seq1, |
| 103 | [+] | | &file_id, &first_offset)) |
 |
| 104 | | | return 0; |
| 105 | | | i_assert(file_id == file->file_id);
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 5:
Skipping " if". file_id == file->file_id evaluates to true.
hide
Event 6:
Skipping " if". !(file_id == file->file_id) evaluates to false.
hide
Event 7:
Skipping " if". !!(file_id == file->file_id) evaluates to true.
hide
Event 8:
Skipping " if". !!!(file_id == file->file_id) evaluates to false.
hide
Event 9:
Skipping " if". __builtin_expect(...) evaluates to false.
hide
|
|
| 106 | | | mail_index_expunge(ctx->trans, expunges[0].seq1); |
| 107 | | | |
| 108 | | | offset = first_offset; |
| 109 | | | for (i = 0;;) { |
| 110 | | | if ((ret = dbox_file_seek_next(file, &offset, &uid, |
| 111 | [+] | | &physical_size)) <= 0) |
 |
| 112 | | | break; |
| 113 | | | if (uid == 0) { |
Event 19:
Skipping " if". uid == 0 evaluates to false.
hide
|
|
| 114 | | | |
| 115 | | | break; |
| 116 | | | } |
| 117 | | | |
| 118 | | | if (i < count) { |
Event 20:
Skipping " if". i < count evaluates to false.
hide
|
|
| 119 | | | mail_index_lookup_seq(ctx->sync_view, uid, &seq); |
| 120 | | | while (seq > expunges[i].seq2) { |
| 121 | | | if (++i == count) |
| 122 | | | break; |
| 123 | | | } |
| 124 | | | } |
| 125 | | | if (seq == 0 || (i < count && seq >= expunges[i].seq1 && |
| |