Mishandling of variadic arguments in a function call caused a crash
(runtime assert fail) in bugprone-infinite-loop tidy checker. Fix
is to limit argument matching to the lesser of the number of variadic
params in the prototype or the number of actual args in the call.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thank you for the fix! LGTM with some minor nits.
clang/include/clang/ASTMatchers/ASTMatchers.h | ||
---|---|---|
4760–4765 |
clang/include/clang/ASTMatchers/ASTMatchers.h | ||
---|---|---|
4760–4765 | Thanks Aaron! Nice simplification. I don't know why I can't remember the variable name style -- old habits die hard! :) Thanks for the feedback. |