Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at imem.c:25

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

maildir_uidlist_lock_timeout

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/maildir/maildir-uidlist.c)expand/collapse
Show more  
 128  static int maildir_uidlist_lock_timeout(struct maildir_uidlist *uidlist,
 129                                          bool nonblock, bool refresh,
 130                                          bool refresh_when_locked)
 131  {
 132          struct mailbox *box = &uidlist->ibox->box;
 133          const char *control_dir, *path;
 134          mode_t old_mask;
 135          const enum dotlock_create_flags dotlock_flags =
 136                  nonblock ? DOTLOCK_CREATE_FLAG_NONBLOCK : 0;
 137          int i, ret;
 138   
 139          if (uidlist->lock_count > 0) {
 140                  if (!uidlist->locked_refresh && refresh_when_locked) {
 141                          if (maildir_uidlist_refresh(uidlist) < 0)
 142                                  return -1;
 143                  }
 144                  uidlist->lock_count++;
 145                  return 1;
 146          }
 147   
 148          index_storage_lock_notify_reset(&uidlist->mbox->ibox);
 149   
 150          control_dir = mailbox_list_get_path(box->storage->list, box->name,
 151                                              MAILBOX_LIST_PATH_TYPE_CONTROL);
 152[+]         path = t_strconcat(control_dir, "/" MAILDIR_UIDLIST_NAME, NULL);
 153   
 154          for (i = 0;; i++) {
 155                  old_mask = umask(0777 & ~box->file_create_mode);
 156                  ret = file_dotlock_create(&uidlist->dotlock_settings, path,
 157[+]                                           dotlock_flags, &uidlist->dotlock);
expand/collapse

file_dotlock_create

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/file-dotlock.c)expand/collapse
Show more  
 653  int file_dotlock_create(const struct dotlock_settings *set, const char *path,
 654                          enum dotlock_create_flags flags,
 655                          struct dotlock **dotlock_r)
 656  {
 657          struct dotlock *dotlock;
 658          int ret;
 659   
 660[+]         dotlock = file_dotlock_alloc(set, path);
expand/collapse

file_dotlock_alloc

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/file-dotlock.c)expand/collapse
Show more  
 76  static struct dotlock *
 77  file_dotlock_alloc(const struct dotlock_settings *settings, const char *path)
 78  {
 79          struct dotlock *dotlock;
 80   
 81          dotlock = i_new(struct dotlock, 1);
 82          dotlock->settings = *settings;
 83          if (dotlock->settings.lock_suffix == NULL)
 84                  dotlock->settings.lock_suffix = DEFAULT_LOCK_SUFFIX;
 85[+]         dotlock->path = i_strdup(path);
expand/collapse

i_strdup

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/imem.c)expand/collapse
Show more  
 23  char *i_strdup(const char *str)
 24  {
 25      char *rv = strdup( str );
Show more  
Show more  
Show more  
Show more  




Change Warning 11832.25158 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: