Files
clang-p2996/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
Rahul Joshi fc110202df [Support] Validate number of arguments passed to formatv() (#105745)
Change formatv() to validate that the number of arguments passed matches
number of replacement fields in the format string, and that the replacement
indices do not contain holes.

To support cases where this cannot be guaranteed, introduce a formatv()
overload that allows disabling validation with a bool flag as its first argument.
2024-08-29 08:00:25 -07:00

173 KiB