(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/index-mail-headers.c) |
| |
| 852 | | | static struct * |
| 853 | | | (struct mailbox *box, const char *const []) |
| 854 | | | { |
| 855 | | | struct index_mailbox *ibox = (struct index_mailbox *)box; |
| 856 | | | struct mail_cache_field *fields, = { |
| 857 | | | NULL, 0, , 0, |
| 858 | | | MAIL_CACHE_DECISION_TEMP |
| 859 | | | }; |
| 860 | | | struct *ctx; |
| 861 | | | const char *const *name; |
| 862 | | | const char **; |
| 863 | | | pool_t pool; |
| 864 | | | unsigned int i, count; |
| 865 | | | |
| 866 | | | i_assert(* != 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". * != (void *)0 evaluates to true.
hide
Event 2:
Skipping " if". !(* != (void *)0) evaluates to false.
hide
Event 3:
Skipping " if". !!(* != (void *)0) evaluates to true.
hide
Event 4:
Skipping " if". !!!(* != (void *)0) evaluates to false.
hide
Event 5:
Skipping " if". __builtin_expect(...) evaluates to false.
hide
|
|
| 867 | | | |
| 868 | | | for (count = 0, name = ; *name != NULL; name++) |
| 869 | | | count++; |
| 870 | | | |
| 871 | | | |
| 872 | | | = t_new(const char *, count);
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/data-stack.h |
| |
75 | #define t_new(type, count) \ |
76 | ((type *) t_malloc0(sizeof(type) * (count))) |
| |
|
| 873 | | | memcpy(, , count * sizeof(*)); |
| 874 | | | qsort(, count, sizeof(*), i_strcasecmp_p); |
| 875 | | | = ; |
| 876 | | | |
| 877 | | | |
| 878 | [+] | | fields = t_new(struct mail_cache_field, count);
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/data-stack.h |
| |
75 | #define t_new(type, count) \ |
76 | ((type *) t_malloc0(sizeof(type) * (count))) |
| |
|
 |
| 879 | | | for (i = 0; i < count; i++) { |
| 880 | | | .name = t_strconcat("hdr.", [i], NULL); |
| 881 | | | fields[i] = ; |
| 882 | | | } |
| 883 | [+] | | mail_cache_register_fields(ibox->cache, fields, count); |
Event 29:
fields, which evaluates to the value assigned to ret at data-stack.c:335, is passed to mail_cache_register_fields() as the second argument. See related event 27.
hide
|
|
 |
| |