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

file_dotlock_delete

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/file-dotlock.c)expand/collapse
Show more  
 691  int file_dotlock_delete(struct dotlock **dotlock_p)
 692  {
 693          struct dotlock *dotlock;
 694          const char *lock_path;
 695          struct stat st;
 696   
 697          dotlock = *dotlock_p;
 698          *dotlock_p = NULL;
 699   
 700[+]         lock_path = file_dotlock_get_lock_path(dotlock);
 701[+]         if (nfs_safe_lstat(lock_path, &st) < 0) {
expand/collapse

nfs_safe_lstat

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/nfs-workarounds.c)expand/collapse
Show more  
 111  int nfs_safe_lstat(const char *path, struct stat *buf)
 112  {
 113[+]         return nfs_safe_do(path, nfs_safe_lstat_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 7086.24735 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: