mirror of
https://github.com/xemu-project/xemu.git
synced 2026-11-14 01:59:00 +01:00
ui: Fix FilePicker UAF
This commit is contained in:
1 parent
9e1f5f2f19
commit
8bea1e38e5
1 file changed
+1
@@ -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