Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at auth-client.c:25

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) ||
expand/collapse

parse_uid

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/deliver/auth-client.c)expand/collapse
Show more  
 20  static bool parse_uid(const char *str, uid_t *uid_r)
 21  {
 22          struct passwd *pw;
 23          char *p;
 24   
 25          if (*str >= '0' && *str <= '9') {
Show more  
Show more  




Change Warning 8002.24661 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: