Skip to content

Commit

Permalink
ui: Fix FilePicker UAF
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed May 16, 2023
1 parent 9e1f5f2 commit 8bea1e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/xui/widgets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 8bea1e3

Please sign in to comment.