diff options
author | Hans Wennborg <hans@hanshq.net> | 2012-01-12 17:11:12 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2012-01-12 17:11:12 +0000 |
commit | 37969b7e14d6a4dfd934ef6d3738cc90b832ec1d (patch) | |
tree | a00be7b6ba9cfa6a1466d270dbe0c590c90cd564 /lib/Analysis/PrintfFormatString.cpp | |
parent | 1d7049a6eddcc1a4bd33c6a595d4ad2ae8c1cece (diff) |
scanf: parse the 'm' length modifier, and check that the right arguments
are used with that and the 'a' length modifier.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/PrintfFormatString.cpp')
-rw-r--r-- | lib/Analysis/PrintfFormatString.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Analysis/PrintfFormatString.cpp b/lib/Analysis/PrintfFormatString.cpp index 4e9a4641d7..bc2b356934 100644 --- a/lib/Analysis/PrintfFormatString.cpp +++ b/lib/Analysis/PrintfFormatString.cpp @@ -273,6 +273,7 @@ ArgTypeResult PrintfSpecifier::getArgType(ASTContext &Ctx) const { case LengthModifier::AsPtrDiff: return ArgTypeResult(Ctx.getPointerDiffType(), "ptrdiff_t"); case LengthModifier::AsAllocate: + case LengthModifier::AsMAllocate: return ArgTypeResult::Invalid(); } @@ -294,6 +295,7 @@ ArgTypeResult PrintfSpecifier::getArgType(ASTContext &Ctx) const { // version of ptrdiff_t? return ArgTypeResult(); case LengthModifier::AsAllocate: + case LengthModifier::AsMAllocate: return ArgTypeResult::Invalid(); } |