Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at dbox-storage.c:632

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

dbox_list_iter_is_mailbox

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/dbox/dbox-storage.c)expand/collapse
Show more  
 610  static int dbox_list_iter_is_mailbox(struct mailbox_list_iterate_context *ctx
 611                                                          ATTR_UNUSED,
 612                                       const char *dir, const char *fname,
 613                                       const char *mailbox_name ATTR_UNUSED,
 614                                       enum mailbox_list_file_type type,
 615                                       enum mailbox_info_flags *flags)
 616  {
 617          const char *path, *maildir_path;
 618          struct stat st, st2;
 619          int ret = 1;
 620   
 621          /* try to avoid stat() with these checks */
 622          if (type != MAILBOX_LIST_FILE_TYPE_DIR &&
 623              type != MAILBOX_LIST_FILE_TYPE_SYMLINK &&
 624              type != MAILBOX_LIST_FILE_TYPE_UNKNOWN) {
 625                  /* it's a file */
 626                  *flags |= MAILBOX_NOSELECT | MAILBOX_NOINFERIORS;
 627                  return 0;
 628          }
 629   
 630          /* need to stat() then */
 631[+]         path = t_strconcat(dir, "/", fname, NULL);
 632          if (stat(path, &st) == 0) {
Show more  




Change Warning 7485.24671 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: