llvm-project/compiler-rt/lib
Peter Collingbourne b208088a21 scudo: Limit the number of bytes tested in a realloc test.
This test was previously effectively doing:
P = malloc(X); write X bytes to P; P = realloc(P, X - Y); P = realloc(P, X)
and expecting that all X bytes stored to P would still be identical after
the final realloc.

This happens to be true for the current scudo implementation of realloc,
but is not guaranteed to be true by the C standard ("Any bytes in the new
object beyond the size of the old object have indeterminate values.").
This implementation detail will change with the new memory tagging support,
which unconditionally zeros newly allocated granules when memory tagging
is enabled. Fix this by limiting the number of bytes that we test to the
minimum size that we realloc the allocation to.

Differential Revision: https://reviews.llvm.org/D70761
2019-11-27 10:32:34 -08:00
..
BlocksRuntime [compiler-rt] Test commit: remove some trailing white spaces. 2017-08-25 19:36:30 +00:00
asan Remove unused variables, as suggested by @mcgov. 2019-11-04 14:55:51 -05:00
builtins [PowerPC][compiler-rt][builtins]Add __fixtfti builtin on PowerPC 2019-11-25 14:54:03 -06:00
cfi Improve error message when '=' is missing in {ASAN,...}_OPTIONS. 2019-06-15 01:37:14 +00:00
crt Fix include guard and properly order __deregister_frame_info. 2019-11-12 14:54:41 -08:00
dfsan [compiler-rt] Remove some cpplint filters 2019-09-12 02:20:36 +00:00
fuzzer [libFuzzer] don't use /dev/null for DiscardOuput in Fuchsia. 2019-11-21 16:56:05 -08:00
gwp_asan [GWP-ASan] Add GWP_ASAN_ prefix to macros. 2019-11-25 12:27:00 -08:00
hwasan Make memory dump same as the one in asan. 2019-11-27 18:46:38 +01:00
interception Fix check-interception link error in compiler-rt debug mode 2019-10-10 23:30:54 +00:00
lsan [sanitizer_common] Create max_allocation_size_mb flag. 2019-10-30 11:26:05 -07:00
msan [SanitizerCommon] Print the current value of options when printing out help. 2019-11-14 14:04:34 -08:00
profile [profile] Fix file contention causing dropped counts on Windows under -fprofile-generate 2019-11-27 15:55:13 +01:00
safestack compiler-rt: Rename .cc file in lib/{interception/tests,safestack} to .cpp 2019-08-01 13:56:52 +00:00
sanitizer_common Fix sanitizer-common build with glibc 2.31 2019-11-25 14:38:10 -08:00
scudo scudo: Limit the number of bytes tested in a realloc test. 2019-11-27 10:32:34 -08:00
stats compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cpp 2019-08-01 12:41:23 +00:00
tsan [sanitizer_common] Create max_allocation_size_mb flag. 2019-10-30 11:26:05 -07:00
ubsan [UBSan] Appease linter 2019-10-10 11:32:06 +00:00
ubsan_minimal compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cpp 2019-08-01 12:41:23 +00:00
xray Re-land "[compiler-rt] Migrate llvm::make_unique to std::make_unique" 2019-08-15 14:57:44 +00:00
CMakeLists.txt Reland "[compiler-rt] Simple crtbegin.o and crtend.o implementation" 2019-04-30 18:13:22 +00:00