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

mail_transaction_log_refresh

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-index/mail-transaction-log.c)expand/collapse
Show more  
 282  mail_transaction_log_refresh(struct mail_transaction_log *log, bool nfs_flush)
 283  {
 284          struct mail_transaction_log_file *file;
 285          struct stat st;
 286          const char *path;
 287   
 288          i_assert(log->head != NULL);
 289   
 290          if (MAIL_TRANSACTION_LOG_FILE_IN_MEMORY(log->head))
 291                  return 0;
 292   
 293          path = t_strconcat(log->index->filepath,
 294[+]                            MAIL_TRANSACTION_LOG_SUFFIX, NULL);
 295          if (log->index->nfs_flush && nfs_flush)
 296                  nfs_flush_file_handle_cache(path);
 297[+]         if (nfs_safe_stat(path, &st) < 0) {
expand/collapse

nfs_safe_stat

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/nfs-workarounds.c)expand/collapse
Show more  
 99  int nfs_safe_stat(const char *path, struct stat *buf)
 100  {
 101[+]         return nfs_safe_do(path, nfs_safe_stat_callback, buf);
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  




Change Warning 7200.25646 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: