Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at password-scheme-md5crypt.c:63

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

md5_crypt_verify

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/auth/password-scheme.c)expand/collapse
Show more  
 318  md5_crypt_verify(const char *plaintext, const char *user ATTR_UNUSED,
 319                   const unsigned char *raw_password, size_t size)
 320  {
 321          const char *password, *str;
 322   
 323[+]         password = t_strndup(raw_password, size);
 324[+]         str = password_generate_md5_crypt(plaintext, password);
expand/collapse

password_generate_md5_crypt

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/auth/password-scheme-md5crypt.c)expand/collapse
Show more  
 49  const char *password_generate_md5_crypt(const char *pw, const char *salt)
 50  {
 51          const char *sp,*ep;
 52          unsigned char   final[MD5_RESULTLEN];
 53          int sl,pl,i,j;
 54          struct md5_context ctx,ctx1;
 55          unsigned long l;
 56          string_t *passwd;
 57          size_t pw_len = strlen(pw);
 58   
 59          /* Refine the Salt first */
 60          sp = salt;
 61   
 62          /* If it starts with the magic string, then skip that */
 63          if (strncmp(sp, magic, sizeof(magic)-1) == 0)
Show more  
Show more  




Change Warning 7538.24678 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: