Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at mailbox-list-fs.c:153

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

fs_list_get_path

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/list/mailbox-list-fs.c)expand/collapse
Show more  
 138  static const char *
 139  fs_list_get_path(struct mailbox_list *_list, const char *name,
 140                   enum mailbox_list_path_type type)
 141  {
 142          const struct mailbox_list_settings *set = &_list->set;
 143          const char *path;
 144   
 145          if (name == NULL) {
 146                  /* return root directories */
 147                  switch (type) {
 148                  case MAILBOX_LIST_PATH_TYPE_DIR:
 149                          return set->root_dir;
 150                  case MAILBOX_LIST_PATH_TYPE_MAILBOX:
 151                          path = t_strconcat(set->root_dir, "/",
 152[+]                                            set->mailbox_dir_name, NULL);
 153                          return t_strndup(path, strlen(path)-1);
Show more  




Change Warning 7278.25014 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: