aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/FormatString.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2012-01-12 15:07:16 +0000
committerHans Wennborg <hans@hanshq.net>2012-01-12 15:07:16 +0000
commit28058d179ae40edc66135458849f1073c841bc74 (patch)
tree66cbdf9cdefc4354ac1fb5d3cf3a9196f1fa3628 /lib/Analysis/FormatString.cpp
parent6de0b48c5531cfe7370e1a9eeaed0566fa65dc9b (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.cpp1
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;