mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07: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. |
||
---|---|---|
.. | ||
app | ||
benchmark | ||
gradle/wrapper | ||
jni | ||
.gitignore | ||
build.gradle | ||
code-style-java.xml | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
settings.gradle |