diff options
author | Hans Wennborg <hans@hanshq.net> | 2012-01-12 15:07:16 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2012-01-12 15:07:16 +0000 |
commit | 28058d179ae40edc66135458849f1073c841bc74 (patch) | |
tree | 66cbdf9cdefc4354ac1fb5d3cf3a9196f1fa3628 /lib/Analysis/FormatString.cpp | |
parent | 6de0b48c5531cfe7370e1a9eeaed0566fa65dc9b (diff) |
scanf analysis: the 'a' length modifier is valid with a scanlist
Before r148025 we (accidentally) didn't check whether a length modifier is
appropriate for a scanlist, but now we do.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148026 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/FormatString.cpp')
-rw-r--r-- | lib/Analysis/FormatString.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Analysis/FormatString.cpp b/lib/Analysis/FormatString.cpp index 8e295aa2be..351973529c 100644 --- a/lib/Analysis/FormatString.cpp +++ b/lib/Analysis/FormatString.cpp @@ -550,6 +550,7 @@ bool FormatSpecifier::hasValidLengthModifier() const { switch (CS.getKind()) { case ConversionSpecifier::sArg: case ConversionSpecifier::SArg: + case ConversionSpecifier::ScanListArg: return true; default: return false; |