Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at file-dotlock.c:633

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

file_dotlock_create_real

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/file-dotlock.c)expand/collapse
Show more  
 611  static int file_dotlock_create_real(struct dotlock *dotlock,
 612                                      enum dotlock_create_flags flags)
 613  {
 614          const char *lock_path;
 615          struct stat st;
 616          int fd, ret;
 617   
 618[+]         ret = dotlock_create(dotlock, flags, TRUE, &lock_path);
 619          if (ret <= 0 || (flags & DOTLOCK_CREATE_FLAG_CHECKONLY) != 0)
 620                  return ret;
 621   
 622          fd = dotlock->fd;
 623          dotlock->fd = -1;
 624   
 625          if (close(fd) < 0) {
 626                  i_error("close(%s) failed: %m", lock_path);
 627                  return -1;
 628          }
 629   
 630          /* With NFS the writes may have been flushed only when closing the
 631             file. Get the mtime again after that to avoid "dotlock was modified"
 632             errors. */
 633          if (lstat(lock_path, &st) < 0) {
Show more  




Change Warning 7083.24990 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: