summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoaderManager.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2023-03-18 13:16:12 +0100
committerJosJuice <josjuice@gmail.com>2023-03-18 13:44:01 +0100
commit8e363c099506913f2add4fef9b60c51587052623 (patch)
tree571b5ba1298e2923750a03de3003ae5fc53d2992 /Source/Core/VideoCommon/VertexLoaderManager.cpp
parent6b545eaada79a45c3bd901bbc85f77f66e17bbf3 (diff)
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.
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
0 files changed, 0 insertions, 0 deletions