Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at maildir-sync-index.c:644

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

maildir_list_index_has_changed

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/maildir/maildir-sync-index.c)expand/collapse
Show more  
 616  int maildir_list_index_has_changed(struct mailbox *box,
 617                                     struct mail_index_view *list_view,
 618                                     uint32_t seq)
 619  {
 620          struct maildir_mailbox *mbox = (struct maildir_mailbox *)box;
 621          const struct maildir_list_index_record *rec;
 622          const void *data;
 623          const char *root_dir, *new_dir, *cur_dir;
 624          struct stat st;
 625          uint32_t ext_id;
 626          bool expunged;
 627   
 628          ext_id = maildir_list_get_ext_id(mbox->storage, list_view);
 629[+]         mail_index_lookup_ext(list_view, seq, ext_id, &data, &expunged);
 630          rec = data;
 631   
 632          if (rec == NULL || expunged ||
 633              rec->new_mtime == 0 || rec->cur_mtime == 0) {
 634                  /* doesn't exist, not synced or dirty-synced */
 635                  return 1;
 636          }
 637   
 638          root_dir = mailbox_list_get_path(mail_storage_get_list(box->storage),
 639                                           box->name,
 640                                           MAILBOX_LIST_PATH_TYPE_MAILBOX);
 641   
 642          /* check if new/ changed */
 643[+]         new_dir = t_strconcat(root_dir, "/new", NULL);
 644          if (stat(new_dir, &st) < 0) {
Show more  




Change Warning 7394.24866 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: