Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at auth-request.c:846

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

mech_skey_auth_phase1

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/auth/mech-skey.c)expand/collapse
Show more  
 103  mech_skey_auth_phase1(struct auth_request *auth_request,
 104                        const unsigned char *data, size_t data_size)
 105  {
 106          const char *username, *error;
 107   
 108[+]         username = t_strndup(data, data_size);
 109   
 110[+]         if (!auth_request_set_username(auth_request, username, &error)) {
expand/collapse

auth_request_set_username

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/auth/auth-request.c)expand/collapse
Show more  
 812  bool auth_request_set_username(struct auth_request *request,
 813                                 const char *username, const char **error_r)
 814  {
 815          const char *p, * = NULL;
 816   
 817          if (request->auth->master_user_separator != '\0' &&
 818              !request->userdb_lookup) {
 819                  /* check if the username contains a master user */
 820                  p = strchr(username, request->auth->master_user_separator);
 821                  if (p != NULL) {
 822                          /* it does, set it. */
 823                           = t_strdup_until(username, p);
 824   
 825                          if (* == '\0') {
 826                                  *error_r = "Empty  username";
 827                                  return FALSE;
 828                          }
 829   
 830                          /* username is the master user */
 831                          username = p + 1;
 832                  }
 833          }
 834   
 835          if (request->original_username == NULL) {
 836                  /* the username may change later, but we need to use this
 837                     username when verifying at least DIGEST-MD5 password. */
 838                  request->original_username = p_strdup(request->pool, username);
 839          }
 840          if (request->cert_username) {
 841                  /* cert_username overrides the username given by
 842                     authentication mechanism. */
 843                  return TRUE;
 844          }
 845   
 846          if (*username == '\0') {
Show more  
Show more  




Change Warning 7642.25591 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: