This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] Disable noasan-memcmp64.test and bcmp.test on Windows.
ClosedPublic

Authored by dokyungs on Jul 24 2020, 9:20 AM.

Details

Summary

This patch disables (i) noasan-memcmp64.test on Windows as libFuzzer's interceptors are only supported on Linux for now, and (ii) bcmp.test as on Windows bcmp is not available in strings.h.

Diff Detail

Event Timeline

dokyungs created this revision.Jul 24 2020, 9:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 24 2020, 9:20 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
morehouse accepted this revision.Jul 24 2020, 9:24 AM

Why did the interceptors affect bcmp.test on windows?

This revision is now accepted and ready to land.Jul 24 2020, 9:24 AM

Why did the interceptors affect bcmp.test on windows?

I am not sure whether libFuzzer's interceptors have affected bcmp.test, because the interceptor library is linked into the executable only when there is no -fsanitize=address. I will investigate further.

Why did the interceptors affect bcmp.test on windows?

I am not sure whether libFuzzer's interceptors have affected bcmp.test, because the interceptor library is linked into the executable only when there is no -fsanitize=address. I will investigate further.

bcmp.test was recently added in f7ffb122d08e7a8203557898c67eaac3a857b152, which implements libFuzzer's interceptor for bcmp. Since bcmp is apparently not available on Windows, I think we can disable this test on Windows.

This revision was automatically updated to reflect the committed changes.
MaskRay added inline comments.
compiler-rt/test/fuzzer/noasan-memcmp64.test
3

I am curious why the suffix -NoAsanMemcmp64BytesTest is needed. Many other tests just use %t