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

dbox_get_uidvalidity_next

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/dbox/dbox-index.c)expand/collapse
Show more  
 161  static uint32_t dbox_get_uidvalidity_next(struct mail_storage *storage)
 162  {
 163          const char *fname;
 164          const char *path;
 165   
 166          fname = *storage->list->set.mailbox_dir_name == '\0' ?
 167                  DBOX_OLD_UIDVALIDITY_FILE_NAME : DBOX_UIDVALIDITY_FILE_NAME;
 168          path = mailbox_list_get_path(storage->list, NULL,
 169                                       MAILBOX_LIST_PATH_TYPE_CONTROL);
 170[+]         path = t_strconcat(path, "/", fname, NULL);
 171[+]         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 7441.24879 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: