summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/ImageWrite.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-11-19 02:51:56 +0100
committerLéo Lam <leo@leolam.fr>2020-11-19 17:09:24 +0100
commit62eeb05519b9fa993f98a540cd8cd812c52fa0e4 (patch)
tree1d8338ef2943457bde285b7b687748ce0d6659fa /Source/Core/VideoCommon/ImageWrite.cpp
parent47c91696ee574957f0d3312f92a50ad89bc80304 (diff)
Common: Validate the number of {} fields in format strings
Unfortunately, {fmt} allows passing too many arguments to a format call without raising any runtime or compile-time error [1]. As this is a common source of bugs since we started migrating to {fmt}, this commit adds some custom logic to validate the number of replacement fields in format strings in addition to {fmt}'s own checks. [1] https://github.com/fmtlib/fmt/issues/492
Diffstat (limited to 'Source/Core/VideoCommon/ImageWrite.cpp')
0 files changed, 0 insertions, 0 deletions