This is an archive of the discontinued LLVM Phabricator instance.

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,
so it crashed when receiving wrong number of argument. Add the missing validation
check.

Open issue: https://github.com/llvm/llvm-project/issues/52949

Diff Detail

Event Timeline

royjacobson created this revision.Mar 17 2022, 3:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2022, 3:22 PM
royjacobson requested review of this revision.Mar 17 2022, 3:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2022, 3:22 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Mar 18 2022, 2:39 AM

@gchatelet

Thx!

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
This revision was automatically updated to reflect the committed changes.