Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at virtual-storage.c:514

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

virtual_list_iter_is_mailbox

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/virtual/virtual-storage.c)expand/collapse
Show more  
 492  virtual_list_iter_is_mailbox(struct mailbox_list_iterate_context *ctx
 493                                  ATTR_UNUSED,
 494                               const char *dir, const char *fname,
 495                               const char *mailbox_name ATTR_UNUSED,
 496                               enum mailbox_list_file_type type,
 497                               enum mailbox_info_flags *flags)
 498  {
 499          const char *path, *maildir_path;
 500          struct stat st;
 501          int ret = 1;
 502   
 503          /* try to avoid stat() with these checks */
 504          if (type != MAILBOX_LIST_FILE_TYPE_DIR &&
 505              type != MAILBOX_LIST_FILE_TYPE_SYMLINK &&
 506              type != MAILBOX_LIST_FILE_TYPE_UNKNOWN) {
 507                  /* it's a file */
 508                  *flags |= MAILBOX_NOSELECT | MAILBOX_NOINFERIORS;
 509                  return 0;
 510          }
 511   
 512          /* need to stat() then */
 513[+]         path = t_strconcat(dir, "/", fname, NULL);
 514          if (stat(path, &st) == 0) {
Show more  




Change Warning 8150.24701 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: