__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
Paths
| Differential D121965
Add validation for number of arguments of __builtin_memcpy_inline ClosedPublic Authored by royjacobson on Mar 17 2022, 3:22 PM.
Details Summary __builtin_memcpy_inline doesn't use the usual builtin argument validation code, Open issue: https://github.com/llvm/llvm-project/issues/52949
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 18 2022, 2:39 AM Comment Actions
Thanks, will you be able to commit this for me as "Roy Jacobson <roi.jacobson1@gmail.com>"? I don't have write access :) This revision was landed with ongoing or failed builds.Mar 18 2022, 7:03 AM Closed by commit rG4b3a27e2e026: Add validation for number of arguments of __builtin_memcpy_inline (authored by royjacobson, committed by gchatelet). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 416492 clang/lib/Sema/SemaChecking.cpp
clang/test/Sema/builtins-memcpy-inline.cpp
|