The matcher crashes when a variadic function pointer is invoked because the
FunctionProtoType has fewer parameters than arguments.
Matching of non-variadic arguments now works.
Paths
| Differential D114559
[clang] ASTMatchers: Fix out-of-bounds access in foreachArgumentWithParamType. ClosedPublic Authored by flx on Nov 24 2021, 12:09 PM.
Details Summary The matcher crashes when a variadic function pointer is invoked because the Matching of non-variadic arguments now works.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Dec 7 2021, 1:28 PM This revision was landed with ongoing or failed builds.Dec 15 2021, 9:36 AM Closed by commit rGa1b1c23a3b5f: [clang] ASTMatchers: Fix out-of-bounds access in foreachArgumentWithParamType. (authored by flx). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions Hi, this patch is causing a build failure for clang-ppc64le-rhel, can this be reverted? Comment Actions
Hi, I just submitted a forward fix with: https://reviews.llvm.org/D115809 Please let me know if this is not addressing the issue. Comment Actions
This looks to have resolved the issue, thanks!
Revision Contents
Diff 394588 clang/include/clang/ASTMatchers/ASTMatchers.h
clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
|