Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at mailbox-uidvalidity.c:89

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

maildir_get_uidvalidity_next

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/maildir/maildir-storage.c)expand/collapse
Show more  
 1086  uint32_t maildir_get_uidvalidity_next(struct mail_storage *storage)
 1087  {
 1088          const char *path;
 1089   
 1090          path = mailbox_list_get_path(storage->list, NULL,
 1091                                       MAILBOX_LIST_PATH_TYPE_CONTROL);
 1092[+]         path = t_strconcat(path, "/"MAILDIR_UIDVALIDITY_FNAME, NULL);
 1093[+]         return mailbox_uidvalidity_next(path);
expand/collapse

mailbox_uidvalidity_next

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/mailbox-uidvalidity.c)expand/collapse
Show more  
 158  uint32_t mailbox_uidvalidity_next(const char *path)
 159  {
 160          char buf[8+1], *endp;
 161          uint32_t cur_value;
 162          int fd, ret;
 163   
 164          fd = open(path, O_RDWR);
 165          if (fd == -1) {
 166                  if (errno != ENOENT)
 167                          i_error("open(%s) failed: %m", path);
 168[+]                 return mailbox_uidvalidity_next_rescan(path);
expand/collapse

mailbox_uidvalidity_next_rescan

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/mailbox-uidvalidity.c)expand/collapse
Show more  
 79  static uint32_t mailbox_uidvalidity_next_rescan(const char *path)
 80  {
 81          DIR *d;
 82          struct dirent *dp;
 83          const char *fname, *dir, *prefix, *tmp;
 84          char *endp;
 85          unsigned int i, prefix_len;
 86          uint32_t cur_value, min_value, max_value;
 87          int fd;
 88   
 89          fname = strrchr(path, '/');
Show more  
Show more  
Show more  




Change Warning 7315.24884 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: