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_lock

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/util/maildirlock.c)expand/collapse
Show more  
 32  static int maildir_lock(const char *path, unsigned int timeout,
 33                          struct dotlock **dotlock_r)
 34  {
 35          dotlock_settings.timeout = timeout;
 36          dotlock_settings.use_excl_lock = getenv("DOTLOCK_USE_EXCL") != NULL;
 37          dotlock_settings.nfs_flush = getenv("MAIL_NFS_STORAGE") != NULL;
 38   
 39[+]         path = t_strconcat(path, "/" MAILDIR_UIDLIST_NAME, NULL);
 40[+]         return file_dotlock_create(&dotlock_settings, path, 0, dotlock_r);
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 11936.25376 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: