Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at convert-storage.c:169

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

mailbox_convert_maildir_to_dbox

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/convert/convert-storage.c)expand/collapse
Show more  
 134  static int mailbox_convert_maildir_to_dbox(struct mail_storage *src_storage,
 135                                             struct mail_storage *dest_storage,
 136                                             const char *src_name,
 137                                             const char *dest_name)
 138  {
 139          static const char *maildir_files[] = {
 140                  "dovecot-uidlist",
 141                  "dovecot-keywords",
 142                  "dovecot.index",
 143                  "dovecot.index.log",
 144                  "dovecot.index.cache"
 145          };
 146          string_t *src, *dest;
 147          DIR *dir;
 148          struct dirent *dp;
 149          const char *src_path, *dest_path, *new_path, *cur_path;
 150          unsigned int i, src_dir_len, dest_dir_len;
 151          bool t;
 152          int ret;
 153   
 154          /* create as non-selectable mailbox so the dbox-Mails directory 
 155             isn't created yet */
 156[+]         if (mail_storage_mailbox_create(dest_storage, dest_name, TRUE) < 0) {
 157                  i_error("Mailbox conversion: "
 158                          "Couldn't create mailbox %s: %s",
 159                          dest_name, storage_error(dest_storage));
 160                  return -1;
 161          }
 162   
 163          src_path = mail_storage_get_mailbox_path(src_storage, src_name, &t);
 164          dest_path = mail_storage_get_mailbox_path(dest_storage, dest_name, &t);
 165   
 166          /* rename cur/ directory as the destination directory */
 167[+]         cur_path = t_strconcat(src_path, "/cur", NULL);
 168   
 169          if (rename(cur_path, dest_path) < 0) {
Show more  




Change Warning 8066.24890 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: