mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
ui: Fix FilePicker UAF
This commit is contained in:
committed by
mborgerson
parent
9e1f5f2f19
commit
8bea1e38e5
@@ -322,6 +322,7 @@ bool FilePicker(const char *str_id, const char **buf, const char *filters,
|
||||
if (new_path) {
|
||||
free((void*)*buf);
|
||||
*buf = strdup(new_path);
|
||||
desc = *buf;
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user