[all-commits] [llvm/llvm-project] 4b3a27: Add validation for number of arguments of __builti...
royjacobson via All-commits
all-commits at lists.llvm.org
Fri Mar 18 07:03:43 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4b3a27e2e026f9be703c1bdcb396c10559a87347
https://github.com/llvm/llvm-project/commit/4b3a27e2e026f9be703c1bdcb396c10559a87347
Author: Roy Jacobson <roi.jacobson1 at gmail.com>
Date: 2022-03-18 (Fri, 18 Mar 2022)
Changed paths:
M clang/lib/Sema/SemaChecking.cpp
M clang/test/Sema/builtins-memcpy-inline.cpp
Log Message:
-----------
Add validation for number of arguments of __builtin_memcpy_inline
__builtin_memcpy_inline doesn't use the usual builtin argument validation code,
so it crashed when receiving wrong number of argument. Add the missing validation
check.
Open issue: https://github.com/llvm/llvm-project/issues/52949
Reviewed By: gchatelet
Differential Revision: https://reviews.llvm.org/D121965
Committed by gchatelet on behalf of "Roy Jacobson <roi.jacobson1 at gmail.com>"
More information about the All-commits
mailing list