This is an archive of the discontinued LLVM Phabricator instance.

[test][sanitizer] Add ArrayRef tests
ClosedPublic

Authored by vitalybuka on Jun 12 2023, 4:55 PM.

Details

Summary

Tests are subset of llvm/unittests/ADT/ArrayRefTest.cpp.
Added more members to match tests and
make class more useful.

Diff Detail

Event Timeline

vitalybuka created this revision.Jun 12 2023, 4:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 12 2023, 4:55 PM
Herald added a subscriber: Enna1. · View Herald Transcript
vitalybuka requested review of this revision.Jun 12 2023, 4:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 12 2023, 4:55 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
MaskRay added inline comments.
compiler-rt/lib/sanitizer_common/tests/sanitizer_array_ref_test.cpp
21

Sanitizers (with the exception of scudo) generally use variable_name. Consider a bit work changing these to the prevailing naming convention?
There aren't many unique variable names so regex replacement will help.

vitalybuka marked an inline comment as done.

var name

Looks good to me. Have you considered adding a quick and dirty fuzz target (e.g. compiler-rt/tools/gwp_asan/options_parser_fuzzer.cpp)?

hctim accepted this revision.Jun 12 2023, 10:24 PM
This revision is now accepted and ready to land.Jun 12 2023, 10:24 PM

Looks good to me. Have you considered adding a quick and dirty fuzz target (e.g. compiler-rt/tools/gwp_asan/options_parser_fuzzer.cpp)?

no :)

This revision was landed with ongoing or failed builds.Jun 13 2023, 8:53 AM
This revision was automatically updated to reflect the committed changes.