Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at cydir-storage.c:367

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

cydir_list_iter_is_mailbox

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/cydir/cydir-storage.c)expand/collapse
Show more  
 345  static int cydir_list_iter_is_mailbox(struct mailbox_list_iterate_context *ctx
 346                                                          ATTR_UNUSED,
 347                                        const char *dir, const char *fname,
 348                                        const char *mailbox_name ATTR_UNUSED,
 349                                        enum mailbox_list_file_type type,
 350                                        enum mailbox_info_flags *flags)
 351  {
 352          const char *mail_path;
 353          struct stat st;
 354          int ret = 1;
 355   
 356          /* try to avoid stat() with these checks */
 357          if (type != MAILBOX_LIST_FILE_TYPE_DIR &&
 358              type != MAILBOX_LIST_FILE_TYPE_SYMLINK &&
 359              type != MAILBOX_LIST_FILE_TYPE_UNKNOWN) {
 360                  /* it's a file */
 361                  *flags |= MAILBOX_NOSELECT | MAILBOX_NOINFERIORS;
 362                  return 0;
 363          }
 364   
 365          /* need to stat() then */
 366[+]         mail_path = t_strconcat(dir, "/", fname, NULL);
 367          if (stat(mail_path, &st) == 0) {
Show more  




Change Warning 7500.24673 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: