Text   |  XML   |  ReML   |   Visible Warnings:

Negative file descriptor  at file-dotlock.c:625

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

file_dotlock_create

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/file-dotlock.c)expand/collapse
Show more  
 653  int file_dotlock_create(const struct dotlock_settings *set, const char *path,
 654                          enum dotlock_create_flags flags,
 655                          struct dotlock **dotlock_r)
 656  {
 657          struct dotlock *dotlock;
 658          int ret;
 659   
 660[+]         dotlock = file_dotlock_alloc(set, path);
 661          T_BEGIN {
 662[+]                 ret = file_dotlock_create_real(dotlock, flags);
expand/collapse

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) {
Show more  
Show more  




Change Warning 7084.25021 : Negative file descriptor

Priority:
State:
Finding:
Owner:
Note: