Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at auth-client.c:44

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

set_env

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/deliver/auth-client.c)expand/collapse
Show more  
 58  static int set_env(struct auth_user_reply *reply,
 59                     const char *user, uid_t euid)
 60  {
 61          const char *extra_groups;
 62          unsigned int len;
 63   
 64          if (reply->uid == 0) {
 65                  i_error("userdb(%s) returned 0 as uid", user);
 66                  return -1;
 67          } else if (reply->uid == (uid_t)-1) {
 68                  if (getenv("MAIL_UID") != NULL) {
 69                          if (!parse_uid(getenv("MAIL_UID"), &reply->uid) ||
 70                              reply->uid == 0) {
 71                                  i_error("mail_uid setting is invalid");
 72                                  return -1;
 73                          }
 74                  } else {
 75                          i_error("User %s is missing UID (set mail_uid)", user);
 76                          return -1;
 77                  }
 78          }
 79          if (reply->gid == 0) {
 80                  i_error("userdb(%s) returned 0 as gid", user);
 81                  return -1;
 82          } else if (reply->gid == (gid_t)-1) {
 83                  if (getenv("MAIL_GID") != NULL) {
 84[+]                         if (!parse_gid(getenv("MAIL_GID"), &reply->gid) ||
expand/collapse

parse_gid

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/deliver/auth-client.c)expand/collapse
Show more  
 39  static bool parse_gid(const char *str, gid_t *gid_r)
 40  {
 41          struct group *gr;
 42          char *p;
 43   
 44          if (*str >= '0' && *str <= '9') {
Show more  
Show more  




Change Warning 8001.24660 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: