dolphin/Source/Android/jni/AndroidCommon
JosJuice 8e363c0995 Android: Translate C++ "w" to ParcelFileDescriptor "wt"
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.
2023-03-18 13:44:01 +01:00
..
AndroidCommon.cpp Android: Translate C++ "w" to ParcelFileDescriptor "wt" 2023-03-18 13:44:01 +01:00
AndroidCommon.h AndroidCommon: Make use of std::string_view where applicable 2023-01-30 13:30:52 -05:00
CMakeLists.txt CMake: Fix build errors exposed by making common dependent on fmt 2020-10-19 14:36:09 +02:00
IDCache.cpp Android: Add the advanced input mapping dialog 2023-03-07 17:39:30 +01:00
IDCache.h Android: Add the advanced input mapping dialog 2023-03-07 17:39:30 +01:00