[all-commits] [llvm/llvm-project] cae3b7: [PR49761] Fix variadic arg handling in matcher

Chris Hamilton via All-commits all-commits at lists.llvm.org
Fri Apr 23 10:07:36 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cae3b70cebc1b7b762a8b466cafca2d4189e72a7
      https://github.com/llvm/llvm-project/commit/cae3b70cebc1b7b762a8b466cafca2d4189e72a7
  Author: Chris Hamilton <Chris.Hamilton at ericsson.com>
  Date:   2021-04-23 (Fri, 23 Apr 2021)

  Changed paths:
    M clang-tools-extra/test/clang-tidy/checkers/bugprone-infinite-loop.cpp
    M clang/include/clang/ASTMatchers/ASTMatchers.h

  Log Message:
  -----------
  [PR49761] Fix variadic arg handling in matcher

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.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D101108




More information about the All-commits mailing list