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 | 6073e31baa3af760adbf4ec1688d6fb51bf89e0c (patch) | |
tree | 0b721c8977980f19f6d73c4d14fef4c2f5e40115 /clang/lib/Analysis/PrintfFormatString.cpp | |
parent | bf3a826f2cf7975cf6d92de325e00e50ede04cba (diff) | |
download | llvm-6073e31baa3af760adbf4ec1688d6fb51bf89e0c.zip llvm-6073e31baa3af760adbf4ec1688d6fb51bf89e0c.tar.gz llvm-6073e31baa3af760adbf4ec1688d6fb51bf89e0c.tar.bz2 |
scanf: parse the 'm' length modifier, and check that the right arguments
are used with that and the 'a' length modifier.
llvm-svn: 148029
Diffstat (limited to 'clang/lib/Analysis/PrintfFormatString.cpp')
-rw-r--r-- | clang/lib/Analysis/PrintfFormatString.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Analysis/PrintfFormatString.cpp b/clang/lib/Analysis/PrintfFormatString.cpp index 4e9a464..bc2b356 100644 --- a/clang/lib/Analysis/PrintfFormatString.cpp +++ b/clang/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(); } |