Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
11.4, 11.8, 12.3
-
Can result in hang or crash
Description
|
mysql_sha2.c |
|
126
|
pkt_len= (int)plain_text_len; |
127
|
}
|
128
|
/* now pkt contains plaintext password */ |
129
|
 |
130
|
authstr= (struct digest*)info->auth_string; |
131
|
sha256_crypt_r(pkt, pkt_len-1, authstr->salt, sizeof(authstr->salt), |
here pkt_len can be 0, it'll crash sha256_crypt_r.