diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-01-24 21:29:54 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-01-24 21:29:54 +0000 |
commit | 9d24c2cbd9cf1b7c165ccb13221f2efb2f4b49b0 (patch) | |
tree | ae2f66b9892e30f437bce30dc9bc7266319efa8b /lib/Analysis/FormatString.cpp | |
parent | 32d4abf2d1396b4434917320872a970415c08e6e (diff) |
Teach scanf/printf checking about '%Ld' and friends (a GNU extension). Fixes PR 9466.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148859 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/FormatString.cpp')
-rw-r--r-- | lib/Analysis/FormatString.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Analysis/FormatString.cpp b/lib/Analysis/FormatString.cpp index fb52742bb0..a4d97fd90a 100644 --- a/lib/Analysis/FormatString.cpp +++ b/lib/Analysis/FormatString.cpp @@ -548,6 +548,14 @@ bool FormatSpecifier::hasValidLengthModifier() const { case ConversionSpecifier::gArg: case ConversionSpecifier::GArg: return true; + // GNU extension. + case ConversionSpecifier::dArg: + case ConversionSpecifier::iArg: + case ConversionSpecifier::oArg: + case ConversionSpecifier::uArg: + case ConversionSpecifier::xArg: + case ConversionSpecifier::XArg: + return true; default: return false; } |