This is an archive of the discontinued LLVM Phabricator instance.

[MC] Check the upper bound in truncate assertion
ClosedPublic

Authored by phosek on May 27 2016, 2:57 PM.

Details

Summary

The truncateToSize function already has assertion to check the
lower boundary for the number bytes, but it does not check the
upper boundary which could still lead to usage errors.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek updated this revision to Diff 58845.May 27 2016, 2:57 PM
phosek retitled this revision from to [MC] Check the upper bound in truncate assertion.
phosek updated this object.
phosek added a reviewer: rafael.
phosek set the repository for this revision to rL LLVM.
phosek added subscribers: rafael, phosek, llvm-commits.
This revision was automatically updated to reflect the committed changes.