Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at password-scheme.c:290

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

crypt_generate

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/auth/password-scheme.c)expand/collapse
Show more  
 277  crypt_generate(const char *plaintext, const char *user ATTR_UNUSED,
 278                 const unsigned char **raw_password_r, size_t *size_r)
 279  {
 280          char salt[3];
 281          const char *password;
 282   
 283          random_fill(salt, sizeof(salt)-1);
 284          salt[0] = salt_chars[salt[0] % (sizeof(salt_chars)-1)];
 285          salt[1] = salt_chars[salt[1] % (sizeof(salt_chars)-1)];
 286          salt[2] = '\0';
 287   
 288[+]         password = t_strdup(mycrypt(plaintext, salt));
 289          *raw_password_r = (const unsigned char *)password;
 290          *size_r = strlen(password);
Show more  




Change Warning 7534.24474 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: