This is an archive of the discontinued LLVM Phabricator instance.

[asan] instrument memory accesses with unusual sizes
ClosedPublic

Authored by kcc on Feb 19 2013, 2:35 AM.

Details

Reviewers
samsonov
Summary

This patch makes asan instrument memory accesses with unusual sizes (e.g. 5 bytes or 10 bytes), e.g. long double or
packed structures.
Instrumentation is done with two 1-byte checks
(first and last bytes) and if the error is found
asan_report_load_n(addr, real_size) or
asan_report_store_n(addr, real_size)
is called.

Also, call these two new functions in memset/memcpy
instrumentation.

rt part: http://llvm-reviews.chandlerc.com/D419

Diff Detail

Event Timeline

Eugene.Zelenko closed this revision.Oct 5 2016, 3:39 PM
Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in rL175507.