Browse Source
applets/web: Fix a use-after-free when passing in the URL string
applets/web: Fix a use-after-free when passing in the URL string
The URL string was being deleted before being used, leading to a use-after-free occurring when it is used afterwards. Fix this by taking the string by const ref to extend its lifetime, ensuring it doesn't get deleted before use.nce_cpp
6 changed files with 28 additions and 25 deletions
-
4src/core/frontend/applets/web_browser.cpp
-
9src/core/frontend/applets/web_browser.h
-
19src/yuzu/applets/web_browser.cpp
-
11src/yuzu/applets/web_browser.h
-
8src/yuzu/main.cpp
-
2src/yuzu/main.h
Write
Preview
Loading…
Cancel
Save
Reference in new issue