mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-30 22:10:59 +01:00
8e363c0995
Previously we were translating "w" to "w", which unlike in C++ doesn't truncate. See https://issuetracker.google.com/issues/180526528, and for reference, https://en.cppreference.com/w/cpp/io/c/fopen and https://en.cppreference.com/w/cpp/io/basic_filebuf/open. This issue was brought to my attention by the recently published issue CVE-2023-21036 in the screenshot editing tool on Pixel phones. I'm not aware of any code in Dolphin that actually uses "w" with an existing file on Android (when we ask the user for a location to save to using SAF, a new file is always created), but still, best to fix this. |
||
---|---|---|
.. | ||
AndroidCommon | ||
Cheats | ||
Config | ||
GameList | ||
Input | ||
CMakeLists.txt | ||
IniFile.cpp | ||
MainAndroid.cpp | ||
RiivolutionPatches.cpp | ||
SkylanderConfig.cpp | ||
WiiUtils.cpp |