Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at imem.c:25

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

mailbox_list_subscriptions_fill_real

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/list/mailbox-list-subscriptions.c)expand/collapse
Show more  
 10  mailbox_list_subscriptions_fill_real(struct mailbox_list_iterate_context *ctx,
 11                                       struct mailbox_tree_context *tree_ctx,
 12                                       struct imap_match_glob *glob,
 13                                       bool update_only)
 14  {
 15          struct mail_namespace *default_ns = ctx->list->ns;
 16          struct mail_namespace *namespaces = default_ns->user->namespaces;
 17          struct mailbox_list_iter_update_context update_ctx;
 18          struct subsfile_list_context *subsfile_ctx;
 19          struct mail_namespace *ns;
 20          const char *path, *name, *name2, *full_name;
 21          string_t *vname;
 22   
 23          vname = t_str_new(256);
 24          path = t_strconcat(ctx->list->set.control_dir != NULL ?
 25                             ctx->list->set.control_dir :
 26                             ctx->list->set.root_dir,
 27[+]                            "/", ctx->list->set.subscription_fname, NULL);
 28[+]         subsfile_ctx = subsfile_list_init(ctx->list, path);
expand/collapse

subsfile_list_init

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/list/subscription-file.c)expand/collapse
Show more  
 206  struct subsfile_list_context *
 207  subsfile_list_init(struct mailbox_list *list, const char *path)
 208  {
 209          struct subsfile_list_context *ctx;
 210          int fd;
 211   
 212          ctx = i_new(struct subsfile_list_context, 1);
 213          ctx->list = list;
 214   
 215          fd = nfs_safe_open(path, O_RDONLY);
 216          if (fd == -1) {
 217                  if (errno != ENOENT) {
 218                          subsread_set_syscall_error(list, "open()", path);
 219                          ctx->failed = TRUE;
 220                  }
 221          } else {
 222                  ctx->input = i_stream_create_fd(fd,
 223                                          list->mailbox_name_max_length+1, TRUE);
 224                  i_stream_set_return_partial_line(ctx->input, TRUE);
 225          }
 226[+]         ctx->path = i_strdup(path);
expand/collapse

i_strdup

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/imem.c)expand/collapse
Show more  
 23  char *i_strdup(const char *str)
 24  {
 25      char *rv = strdup( str );
Show more  
Show more  
Show more  




Change Warning 11829.25005 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: