Text   |  XML   |  ReML   |   Visible Warnings:

Free Null Pointer  at mail-index.c:594

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

index_mailbox_list_open_indexes

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/list/index-mailbox-list.c)expand/collapse
Show more  
 454  static int index_mailbox_list_open_indexes(struct mailbox_list *list,
 455                                             const char *dir)
 456  {
 457[+]         struct index_mailbox_list *ilist = INDEX_LIST_CONTEXT(list);
 458          const char *path;
 459          enum mail_index_open_flags index_flags;
 460          enum mail_storage_flags storage_flags;
 461          int ret;
 462   
 463          /* FIXME: a bit ugly way to get the flags, but this will do for now.. */
 464          index_flags = MAIL_INDEX_OPEN_FLAG_CREATE;
 465          storage_flags = *list->set.mail_storage_flags;
 466  #ifndef MMAP_CONFLICTS_WRITE 
 467          if ((storage_flags & MAIL_STORAGE_FLAG_MMAP_DISABLE) != 0)
 468  #endif
 469                  index_flags |= MAIL_INDEX_OPEN_FLAG_MMAP_DISABLE;
 470   
 471          if (mail_index_open(ilist->mail_index, index_flags,
 472[+]                             *list->set.lock_method) < 0) {
 473[+]                 if (mail_index_move_to_memory(ilist->mail_index) < 0) {
expand/collapse

mail_index_move_to_memory

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-index.c)expand/collapse
Show more  
 584  int mail_index_move_to_memory(struct mail_index *index)
 585  {
 586          struct mail_index_map *map;
 587   
 588          if (MAIL_INDEX_IS_IN_MEMORY(index))
 589                  return index->map == NULL ? -1 : 0;
 590   
 591          /* set the index as being into memory */
 592          i_free_and_null(index->dir);
 593   
 594          i_free(index->filepath);
Show more  
Show more  




Change Warning 11638.25826 : Free Null Pointer

Priority:
State:
Finding:
Owner:
Note: