(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/list/mailbox-list-fs-iter.c) |
| |
| 433 | | | list_file_is_inbox(struct fs_list_iterate_context *ctx, const char *fname) |
| 434 | | | { |
| 435 | | | const char *real_path, *inbox_path; |
| 436 | | | |
| 437 | [+] | | real_path = t_strconcat(ctx->dir->real_path, "/", fname, NULL); |
 |
| 438 | | | inbox_path = mailbox_list_get_path(ctx->ctx.list, "INBOX", |
| 439 | | | MAILBOX_LIST_PATH_TYPE_DIR); |
| 440 | | | return strcmp(real_path, inbox_path) == 0; |
Event 7:
real_path, which evaluates to NULL, is passed to strcmp() as the first argument. See related event 6.
hide
Null Pointer Dereference
The body of strcmp() dereferences real_path, but it is NULL. The issue can occur if the highlighted code executes. See related event 7. Show: All events | Only primary events |
|
| |