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

dbox_sync_index_maildir_file

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/dbox/dbox-sync-rebuild.c)expand/collapse
Show more  
 246  dbox_sync_index_maildir_file(struct dbox_sync_rebuild_context *ctx,
 247                               const char *fname)
 248  {
 249          struct dbox_file *file;
 250          uoff_t offset = 0;
 251          int ret;
 252   
 253          if (ctx->mbox->maildir_sync_keywords == NULL) {
 254                  ctx->maildir_uidlist =
 255[+]                         maildir_uidlist_init_readonly(&ctx->mbox->ibox);
 256[+]                 ctx->mk = maildir_keywords_init_readonly(&ctx->mbox->ibox.box);
 257                  ctx->mbox->maildir_sync_keywords =
 258                          maildir_keywords_sync_init(ctx->mk,
 259                                                     ctx->mbox->ibox.index);
 260   
 261[+]                 if (maildir_uidlist_refresh(ctx->maildir_uidlist) < 0)
expand/collapse

maildir_uidlist_refresh

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/maildir/maildir-uidlist.c)expand/collapse
Show more  
 858  int maildir_uidlist_refresh(struct maildir_uidlist *uidlist)
 859  {
 860          unsigned int i;
 861          bool retry, recreated;
 862          int ret;
 863   
 864          if (uidlist->fd != -1) {
 865                  ret = maildir_uidlist_has_changed(uidlist, &recreated);
 866                  if (ret <= 0) {
 867                          if (UIDLIST_IS_LOCKED(uidlist))
 868                                  uidlist->locked_refresh = TRUE;
 869                          return ret;
 870                  }
 871   
 872                  if (recreated)
 873                          maildir_uidlist_close(uidlist);
 874          }
 875   
 876          for (i = 0; ; i++) {
 877                  ret = maildir_uidlist_update_read(uidlist, &retry,
 878[+]                                                 i < UIDLIST_ESTALE_RETRY_COUNT);
expand/collapse

maildir_uidlist_update_read

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/index/maildir/maildir-uidlist.c)expand/collapse
Show more  
 655  maildir_uidlist_update_read(struct maildir_uidlist *uidlist,
 656                              bool *retry_r, bool try_retry)
 657  {
 658          struct mail_storage *storage = uidlist->ibox->box.storage;
 659          const char *line;
 660          unsigned int orig_next_uid;
 661          struct istream *input;
 662          struct stat st;
 663          uoff_t last_read_offset;
 664          int fd, ret;
 665   
 666          *retry_r = FALSE;
 667   
 668          if (uidlist->fd == -1) {
 669[+]                 fd = nfs_safe_open(uidlist->path, O_RDWR);
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  
Show more  




Change Warning 11693.25718 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: