mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-08-17 17:41:58 +08:00
Fix heap use after free in password-file plugin
Unreleased code. Closes oss-fuzz #462551340.
This commit is contained in:
@@ -51,6 +51,8 @@ int password_file__parse(struct password_file_data *data)
|
||||
|
||||
while(!feof(pwfile)){
|
||||
if(mosquitto_fgets(&buf, &buflen, pwfile)){
|
||||
unpwd = NULL;
|
||||
|
||||
if(buf[0] == '#'){
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user