Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at eacces-error.c:48

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

test_access

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/eacces-error.c)expand/collapse
Show more  
 29  static int test_access(const char *path, int mode, string_t *errmsg)
 30  {
 31          struct stat st;
 32   
 33          if (getuid() == geteuid()) {
 34                  if (access(path, mode) == 0)
 35                          return 0;
 36   
 37                  if (errno != EACCES) {
 38                          str_printfa(errmsg, " access(%s, %d) failed: %m",
 39                                      path, mode);
 40                  }
 41                  return -1;
 42          }  
 43   
 44          /* access() uses real uid, not effective uid.
 45             we'll have to do these checks manually. */
 46          switch (mode) {
 47          case X_OK:
 48[+]                 if (stat(t_strconcat(path, "/test", NULL), &st) == 0)
Show more  




Change Warning 7044.24734 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: