(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/maildir/maildir-storage.c) |
| |
| 279 | | | static bool maildir_autodetect(const char *data, enum mail_storage_flags flags) |
| 280 | | | { |
| 281 | | | bool debug = (flags & MAIL_STORAGE_FLAG_DEBUG) != 0; |
Event 1:
(flags & MAIL_STORAGE_FLAG_DEBUG) != 0 evaluates to true.
hide
|
|
| 282 | | | struct stat st; |
| 283 | | | const char *path; |
| 284 | | | |
| 285 | | | data = t_strcut(data, ':'); |
| 286 | | | |
| 287 | [+] | | path = t_strconcat(data, "/cur", NULL); |
 |
| 288 | | | if (stat(path, &st) < 0) { |
Event 8:
path, which evaluates to NULL, is passed to stat64() as the first argument. See related event 7.
hide
Null Pointer Dereference
The body of stat64() dereferences path, but it is NULL. The issue can occur if the highlighted code executes. See related event 8. Show: All events | Only primary events |
|
| |