Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at acl-backend-vfile.c:187

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

acl_backend_vfile_has_acl

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/acl/acl-backend-vfile.c)expand/collapse
Show more  
 205  acl_backend_vfile_has_acl(struct acl_backend *_backend,
 206                            struct mail_storage *storage, const char *name)
 207  {
 208          struct acl_backend_vfile *backend =
 209                  (struct acl_backend_vfile *)_backend;
 210          struct acl_backend_vfile_validity *old_validity, new_validity;
 211          const char *path, *local_path, *global_path, *dir;
 212          int ret;
 213   
 214          old_validity = acl_cache_get_validity(_backend->cache, name);
 215          if (old_validity != NULL)
 216                  new_validity = *old_validity;
 217          else 
 218                  memset(&new_validity, 0, sizeof(new_validity));
 219   
 220          /* See if the mailbox exists. If we wanted recursive lookups we could 
 221             skip this, but at least for now we assume that if an existing 
 222             mailbox has no ACL it's equivalent to default ACLs. */
 223          path = mailbox_list_get_path(storage->list, name,
 224                                       MAILBOX_LIST_PATH_TYPE_MAILBOX);
 225          ret = path == NULL ? 0 :
 226                  acl_backend_vfile_exists(backend, path,
 227                                           &new_validity.mailbox_validity);
 228          if (ret == 0) {
 229                  dir = acl_backend_vfile_get_local_dir(storage, name);
 230[+]                 local_path = t_strconcat(dir, "/", name, NULL);
 231                  ret = acl_backend_vfile_exists(backend, local_path,
 232[+]                                                &new_validity.local_validity);
expand/collapse

acl_backend_vfile_exists

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/acl/acl-backend-vfile.c)expand/collapse
Show more  
 176  acl_backend_vfile_exists(struct acl_backend_vfile *backend, const char *path,
 177                           struct acl_vfile_validity *validity)
 178  {
 179          struct stat st;
 180   
 181          if (validity->last_check + (time_t)backend->cache_secs > ioloop_time) {
 182                  /* use the cached value */
 183                  return validity->last_mtime != VALIDITY_MTIME_NOTFOUND;
 184          }
 185   
 186          validity->last_check = ioloop_time;
 187          if (stat(path, &st) < 0) {
Show more  
Show more  




Change Warning 8044.24668 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: