Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at nfs-workarounds.c:360

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);
expand/collapse

nfs_safe_open

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/nfs-workarounds.c)expand/collapse
Show more  
 79  int nfs_safe_open(const char *path, int flags)
 80  {
 81          struct nfs_safe_open_context ctx;
 82   
 83          i_assert((flags & O_CREAT) == 0);
 84   
 85          ctx.flags = flags;
 86[+]         if (nfs_safe_do(path, nfs_safe_open_callback, &ctx) < 0)
expand/collapse

nfs_safe_do

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/nfs-workarounds.c)expand/collapse
Show more  
 47  nfs_safe_do(const char *path, int (*callback)(const char *path, void *context),
 48              void *context)
 49  {
 50          unsigned int i;
 51          int ret;
 52   
 53          for (i = 1;; i++) {
 54                  ret = callback(path, context);
 55                  if (ret == 0 || errno != ESTALE || i == NFS_ESTALE_RETRY_COUNT)
 56                          break;
 57   
 58                  /* ESTALE: Some operating systems may fail with this if they 
 59                     can't internally revalidate the NFS file handle. Flush the
 60                     file handle and try again */
 61[+]                 nfs_flush_file_handle_cache(path);
expand/collapse

nfs_flush_file_handle_cache

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/nfs-workarounds.c)expand/collapse
Show more  
 368  void nfs_flush_file_handle_cache(const char *path)
 369  {
 370[+]         nfs_flush_file_handle_cache_parent_dir(path);
expand/collapse

nfs_flush_file_handle_cache_parent_dir

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/nfs-workarounds.c)expand/collapse
Show more  
 356  static void nfs_flush_file_handle_cache_parent_dir(const char *path)
 357  {
 358          const char *p;
 359   
 360          p = strrchr(path, '/');
Show more  
Show more  
Show more  
Show more  
Show more  
Show more  




Change Warning 7271.25004 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: