Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at maildir-storage.c:454

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

maildir_open

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/maildir/maildir-storage.c)expand/collapse
Show more  
 421  static struct mailbox *
 422  maildir_open(struct maildir_storage *storage, const char *name,
 423               enum mailbox_open_flags flags)
 424  {
 425          struct maildir_mailbox *mbox;
 426          struct mail_index *index;
 427          const char *path, *shared_path, *control_dir;
 428          struct stat st;
 429          pool_t pool;
 430   
 431          path = mailbox_list_get_path(storage->storage.list, name,
 432                                       MAILBOX_LIST_PATH_TYPE_MAILBOX);
 433          control_dir = mailbox_list_get_path(storage->storage.list, name,
 434                                              MAILBOX_LIST_PATH_TYPE_CONTROL);
 435   
 436          pool = pool_alloconly_create("maildir mailbox", 1024+512);
 437          mbox = p_new(pool, struct maildir_mailbox, 1);
 438          mbox->ibox.box = maildir_mailbox;
 439          mbox->ibox.box.pool = pool;
 440          mbox->ibox.storage = &storage->storage;
 441          mbox->ibox.mail_vfuncs = &maildir_mail_vfuncs;
 442   
 443          mbox->storage = storage;
 444          mbox->path = p_strdup(pool, path);
 445   
 446          index = index_storage_alloc(&storage->storage, name, flags,
 447                                      MAILDIR_INDEX_PREFIX);
 448          mbox->ibox.index = index;
 449          mbox->very_dirty_syncs = getenv("MAILDIR_VERY_DIRTY_SYNCS") != NULL;
 450   
 451          /* for shared mailboxes get the create mode from the 
 452             permissions of dovecot-shared file. */
 453[+]         shared_path = t_strconcat(path, "/dovecot-shared", NULL);
 454          if (stat(shared_path, &st) == 0) {
Show more  




Change Warning 7377.25885 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: