[compiler-rt] [ASan][Windows] Fix memmove/memcpy interception on x64 (PR #192060)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 07:06:00 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 1615 tests passed
* 1334 tests skipped
* 6 tests failed

## Failed Tests
(click on a test name to see its output)

### AddressSanitizer-Unit
<details>
<summary>AddressSanitizer-Unit._/Asan-x86_64-calls-Test_exe/29/37</summary>

```
Script(shard):
--
GTEST_OUTPUT=json:C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\lib\asan\tests\X86_64WindowsConfig\.\Asan-x86_64-calls-Test.exe-AddressSanitizer-Unit-20068-29-37.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=37 GTEST_SHARD_INDEX=29 C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\lib\asan\tests\X86_64WindowsConfig\.\Asan-x86_64-calls-Test.exe
--

Note: This is test shard 30 of 37.

[==========] Running 2 tests from 1 test suite.

[----------] Global test environment set-up.

[----------] 2 tests from AddressSanitizer

[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBLeftLow

[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBLeftHigh

[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBRightLow

[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBRightHigh

[ RUN      ] AddressSanitizer.StrChrAndIndexOOBTest

[       OK ] AddressSanitizer.StrChrAndIndexOOBTest (1255 ms)

[ RUN      ] AddressSanitizer.ReallocTest

=================================================================
==20416==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x11c4b9aa2650 at pc 0x7ff9f6cdbdf8 bp 0x003ce13fc980 sp 0x003ce13fc9c8
READ of size 1 at 0x11c4b9aa2650 thread T0
    #0 0x7ff9f6cdbdf7 in memmove C:\_work\llvm-project\llvm-project\compiler-rt\lib\sanitizer_common\sanitizer_common_interceptors_memintrinsics.inc:100
    #1 0x7ff9f6cbda41 in __asan::Allocator::Reallocate(void *, unsigned __int64, struct __sanitizer::BufferedStackTrace *) C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_allocator.cpp:810
    #2 0x7ff9f6cbd93c in __asan::asan_realloc(void *, unsigned __int64, struct __sanitizer::BufferedStackTrace *) C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_allocator.cpp:1109
    #3 0x7ff9f6cdca9f in realloc C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_malloc_win.cpp:118
    #4 0x7ff7ed78802d in realloc C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_malloc_win_thunk.cpp:101
    #5 0x7ff7ed64abd5 in AddressSanitizer_ReallocTest_Test::TestBody(void) C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\tests\asan_test.cpp:400
    #6 0x7ff7ed5ed20f in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606
    #7 0x7ff7ed5bca6e in testing::internal::HandleExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2649
    #8 0x7ff7ed554f43 in testing::Test::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2688
    #9 0x7ff7ed558410 in testing::TestInfo::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2837
    #10 0x7ff7ed55a394 in testing::TestSuite::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:3016
    #11 0x7ff7ed59f011 in testing::internal::UnitTestImpl::RunAllTests(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:5921
    #12 0x7ff7ed5eec0f in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606
    #13 0x7ff7ed5c05bd in testing::internal::HandleExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2649
    #14 0x7ff7ed59e2be in testing::UnitTest::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:5485
    #15 0x7ff7ed7869da in RUN_ALL_TESTS C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest\gtest.h:2317
    #16 0x7ff7ed7869da in main C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\tests\asan_test_main.cpp:39
    #17 0x7ff7ed78910f in invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
    #18 0x7ff7ed78910f in __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
    #19 0x7ffa20bd4caf  (C:\Windows\System32\KERNEL32.DLL+0x180014caf)
    #20 0x7ffa2cbfedca  (C:\Windows\SYSTEM32\ntdll.dll+0x18007edca)

0x11c4b9aa2650 is located 0 bytes inside of 1-byte region [0x11c4b9aa2650,0x11c4b9aa2651)
allocated by thread T0 here:
    #0 0x7ff9f6cdc80f in malloc C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_malloc_win.cpp:87
    #1 0x7ff7ed787ef3 in malloc C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_malloc_win_thunk.cpp:64
    #2 0x7ff7ed64abc0 in AddressSanitizer_ReallocTest_Test::TestBody(void) C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\tests\asan_test.cpp:398
    #3 0x7ff7ed5ed20f in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606
    #4 0x7ff7ed5bca6e in testing::internal::HandleExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2649
    #5 0x7ff7ed554f43 in testing::Test::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2688
    #6 0x7ff7ed558410 in testing::TestInfo::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2837
    #7 0x7ff7ed55a394 in testing::TestSuite::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:3016
    #8 0x7ff7ed59f011 in testing::internal::UnitTestImpl::RunAllTests(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:5921
    #9 0x7ff7ed5eec0f in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606
    #10 0x7ff7ed5c05bd in testing::internal::HandleExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2649
    #11 0x7ff7ed59e2be in testing::UnitTest::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:5485
    #12 0x7ff7ed7869da in RUN_ALL_TESTS C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest\gtest.h:2317
    #13 0x7ff7ed7869da in main C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\tests\asan_test_main.cpp:39
    #14 0x7ff7ed78910f in invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
    #15 0x7ff7ed78910f in __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
    #16 0x7ffa20bd4caf  (C:\Windows\System32\KERNEL32.DLL+0x180014caf)
    #17 0x7ffa2cbfedca  (C:\Windows\SYSTEM32\ntdll.dll+0x18007edca)

SUMMARY: AddressSanitizer: heap-buffer-overflow C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606 in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *)
Shadow bytes around the buggy address:
  0x11c4b9aa2380: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x11c4b9aa2400: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x11c4b9aa2480: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x11c4b9aa2500: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x11c4b9aa2580: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
=>0x11c4b9aa2600: fa fa fd fd fa fa 00 00 fa fa[fa]fa fa fa 04 fa
  0x11c4b9aa2680: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x11c4b9aa2700: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x11c4b9aa2780: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x11c4b9aa2800: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x11c4b9aa2880: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==20416==ABORTING

--
exit: 1
--
shard JSON output does not exist: C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\lib\asan\tests\X86_64WindowsConfig\.\Asan-x86_64-calls-Test.exe-AddressSanitizer-Unit-20068-29-37.json
```
</details>
<details>
<summary>AddressSanitizer-Unit._/Asan-x86_64-inline-Test_exe/29/37</summary>

```
Script(shard):
--
GTEST_OUTPUT=json:C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\lib\asan\tests\X86_64WindowsConfig\.\Asan-x86_64-inline-Test.exe-AddressSanitizer-Unit-20068-29-37.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=37 GTEST_SHARD_INDEX=29 C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\lib\asan\tests\X86_64WindowsConfig\.\Asan-x86_64-inline-Test.exe
--

Note: This is test shard 30 of 37.

[==========] Running 2 tests from 1 test suite.

[----------] Global test environment set-up.

[----------] 2 tests from AddressSanitizer

[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBLeftLow

[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBLeftHigh

[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBRightLow

[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBRightHigh

[ RUN      ] AddressSanitizer.StrChrAndIndexOOBTest

[       OK ] AddressSanitizer.StrChrAndIndexOOBTest (1368 ms)

[ RUN      ] AddressSanitizer.ReallocTest

=================================================================
==4240==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x12775f0a2650 at pc 0x7ff9f6cdbdf8 bp 0x008cb14fca60 sp 0x008cb14fcaa8
READ of size 1 at 0x12775f0a2650 thread T0
    #0 0x7ff9f6cdbdf7 in memmove C:\_work\llvm-project\llvm-project\compiler-rt\lib\sanitizer_common\sanitizer_common_interceptors_memintrinsics.inc:100
    #1 0x7ff9f6cbda41 in __asan::Allocator::Reallocate(void *, unsigned __int64, struct __sanitizer::BufferedStackTrace *) C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_allocator.cpp:810
    #2 0x7ff9f6cbd93c in __asan::asan_realloc(void *, unsigned __int64, struct __sanitizer::BufferedStackTrace *) C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_allocator.cpp:1109
    #3 0x7ff9f6cdca9f in realloc C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_malloc_win.cpp:118
    #4 0x7ff6ff740cad in realloc C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_malloc_win_thunk.cpp:101
    #5 0x7ff6ff5ca848 in AddressSanitizer_ReallocTest_Test::TestBody(void) C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\tests\asan_test.cpp:400
    #6 0x7ff6ff55ccdf in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606
    #7 0x7ff6ff5163dd in testing::internal::HandleExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2649
    #8 0x7ff6ff499f7f in testing::Test::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2688
    #9 0x7ff6ff49e503 in testing::TestInfo::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2837
    #10 0x7ff6ff4a0dd4 in testing::TestSuite::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:3016
    #11 0x7ff6ff4ee9ea in testing::internal::UnitTestImpl::RunAllTests(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:5921
    #12 0x7ff6ff55f17f in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606
    #13 0x7ff6ff51aef1 in testing::internal::HandleExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2649
    #14 0x7ff6ff4edb02 in testing::UnitTest::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:5485
    #15 0x7ff6ff73f65a in RUN_ALL_TESTS C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest\gtest.h:2317
    #16 0x7ff6ff73f65a in main C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\tests\asan_test_main.cpp:39
    #17 0x7ff6ff741d8f in invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
    #18 0x7ff6ff741d8f in __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
    #19 0x7ffa20bd4caf  (C:\Windows\System32\KERNEL32.DLL+0x180014caf)
    #20 0x7ffa2cbfedca  (C:\Windows\SYSTEM32\ntdll.dll+0x18007edca)

0x12775f0a2650 is located 0 bytes inside of 1-byte region [0x12775f0a2650,0x12775f0a2651)
allocated by thread T0 here:
    #0 0x7ff9f6cdc80f in malloc C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_malloc_win.cpp:87
    #1 0x7ff6ff740b73 in malloc C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_malloc_win_thunk.cpp:64
    #2 0x7ff6ff5ca833 in AddressSanitizer_ReallocTest_Test::TestBody(void) C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\tests\asan_test.cpp:398
    #3 0x7ff6ff55ccdf in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606
    #4 0x7ff6ff5163dd in testing::internal::HandleExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2649
    #5 0x7ff6ff499f7f in testing::Test::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2688
    #6 0x7ff6ff49e503 in testing::TestInfo::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2837
    #7 0x7ff6ff4a0dd4 in testing::TestSuite::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:3016
    #8 0x7ff6ff4ee9ea in testing::internal::UnitTestImpl::RunAllTests(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:5921
    #9 0x7ff6ff55f17f in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606
    #10 0x7ff6ff51aef1 in testing::internal::HandleExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2649
    #11 0x7ff6ff4edb02 in testing::UnitTest::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:5485
    #12 0x7ff6ff73f65a in RUN_ALL_TESTS C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest\gtest.h:2317
    #13 0x7ff6ff73f65a in main C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\tests\asan_test_main.cpp:39
    #14 0x7ff6ff741d8f in invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
    #15 0x7ff6ff741d8f in __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
    #16 0x7ffa20bd4caf  (C:\Windows\System32\KERNEL32.DLL+0x180014caf)
    #17 0x7ffa2cbfedca  (C:\Windows\SYSTEM32\ntdll.dll+0x18007edca)

SUMMARY: AddressSanitizer: heap-buffer-overflow C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606 in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *)
Shadow bytes around the buggy address:
  0x12775f0a2380: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x12775f0a2400: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x12775f0a2480: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x12775f0a2500: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
  0x12775f0a2580: fa fa fd fd fa fa fd fd fa fa fd fd fa fa fd fd
=>0x12775f0a2600: fa fa fd fd fa fa 00 00 fa fa[fa]fa fa fa 04 fa
  0x12775f0a2680: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x12775f0a2700: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x12775f0a2780: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x12775f0a2800: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x12775f0a2880: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==4240==ABORTING

--
exit: 1
--
shard JSON output does not exist: C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\lib\asan\tests\X86_64WindowsConfig\.\Asan-x86_64-inline-Test.exe-AddressSanitizer-Unit-20068-29-37.json
```
</details>
<details>
<summary>AddressSanitizer-Unit._/Asan-x86_64-calls-Dynamic-Test_exe/29/37</summary>

```
Script(shard):
--
GTEST_OUTPUT=json:C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\lib\asan\tests\X86_64WindowsDynamicConfig\.\Asan-x86_64-calls-Dynamic-Test.exe-AddressSanitizer-Unit-20068-29-37.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=37 GTEST_SHARD_INDEX=29 C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\lib\asan\tests\X86_64WindowsDynamicConfig\.\Asan-x86_64-calls-Dynamic-Test.exe
--

Note: This is test shard 30 of 37.

[==========] Running 2 tests from 1 test suite.

[----------] Global test environment set-up.

[----------] 2 tests from AddressSanitizer

[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBLeftLow

[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBLeftHigh

[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBRightLow

[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBRightHigh

[ DISABLED ] AddressSanitizer.DISABLED_StrDupOOBTest

[ RUN      ] AddressSanitizer.StrCmpAndFriendsLogicTest

[       OK ] AddressSanitizer.StrCmpAndFriendsLogicTest (0 ms)

[ RUN      ] AddressSanitizer.ReallocTest

=================================================================
==3260==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x126e1d9a25d0 at pc 0x7ff9f6cdbdf8 bp 0x00bc4c8fcea0 sp 0x00bc4c8fcee8
READ of size 1 at 0x126e1d9a25d0 thread T0
    #0 0x7ff9f6cdbdf7 in memmove C:\_work\llvm-project\llvm-project\compiler-rt\lib\sanitizer_common\sanitizer_common_interceptors_memintrinsics.inc:100
    #1 0x7ff9f6cbda41 in __asan::Allocator::Reallocate(void *, unsigned __int64, struct __sanitizer::BufferedStackTrace *) C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_allocator.cpp:810
    #2 0x7ff9f6cbd93c in __asan::asan_realloc(void *, unsigned __int64, struct __sanitizer::BufferedStackTrace *) C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_allocator.cpp:1109
    #3 0x7ff9f6cdca9f in realloc C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_malloc_win.cpp:118
    #4 0x7ff70b9723b2 in AddressSanitizer_ReallocTest_Test::TestBody(void) C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\tests\asan_test.cpp:400
    #5 0x7ff70b90497f in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606
    #6 0x7ff70b8d2e1d in testing::internal::HandleExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2649
    #7 0x7ff70b85a3df in testing::Test::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2688
    #8 0x7ff70b85e8f3 in testing::TestInfo::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2837
    #9 0x7ff70b8611c4 in testing::TestSuite::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:3016
    #10 0x7ff70b8af21a in testing::internal::UnitTestImpl::RunAllTests(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:5921
    #11 0x7ff70b90610f in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606
    #12 0x7ff70b8d6231 in testing::internal::HandleExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2649
    #13 0x7ff70b8ae338 in testing::UnitTest::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:5485
    #14 0x7ff70bae6d4a in RUN_ALL_TESTS C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest\gtest.h:2317
    #15 0x7ff70bae6d4a in main C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\tests\asan_test_main.cpp:39
    #16 0x7ff70bae88ff in invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
    #17 0x7ff70bae88ff in __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
    #18 0x7ffa20bd4caf  (C:\Windows\System32\KERNEL32.DLL+0x180014caf)
    #19 0x7ffa2cbfedca  (C:\Windows\SYSTEM32\ntdll.dll+0x18007edca)

0x126e1d9a25d0 is located 0 bytes inside of 1-byte region [0x126e1d9a25d0,0x126e1d9a25d1)
allocated by thread T0 here:
    #0 0x7ff9f6cdc80f in malloc C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_malloc_win.cpp:87
    #1 0x7ff70b97239c in AddressSanitizer_ReallocTest_Test::TestBody(void) C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\tests\asan_test.cpp:398
    #2 0x7ff70b90497f in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606
    #3 0x7ff70b8d2e1d in testing::internal::HandleExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2649
    #4 0x7ff70b85a3df in testing::Test::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2688
    #5 0x7ff70b85e8f3 in testing::TestInfo::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2837
    #6 0x7ff70b8611c4 in testing::TestSuite::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:3016
    #7 0x7ff70b8af21a in testing::internal::UnitTestImpl::RunAllTests(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:5921
    #8 0x7ff70b90610f in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606
    #9 0x7ff70b8d6231 in testing::internal::HandleExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2649
    #10 0x7ff70b8ae338 in testing::UnitTest::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:5485
    #11 0x7ff70bae6d4a in RUN_ALL_TESTS C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest\gtest.h:2317
    #12 0x7ff70bae6d4a in main C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\tests\asan_test_main.cpp:39
    #13 0x7ff70bae88ff in invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
    #14 0x7ff70bae88ff in __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
    #15 0x7ffa20bd4caf  (C:\Windows\System32\KERNEL32.DLL+0x180014caf)
    #16 0x7ffa2cbfedca  (C:\Windows\SYSTEM32\ntdll.dll+0x18007edca)

SUMMARY: AddressSanitizer: heap-buffer-overflow C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606 in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *)
Shadow bytes around the buggy address:
  0x126e1d9a2300: fa fa fd fa fa fa 00 00 fa fa fd fa fa fa fd fa
  0x126e1d9a2380: fa fa fd fa fa fa fd fa fa fa fd fa fa fa 01 fa
  0x126e1d9a2400: fa fa 06 fa fa fa 05 fa fa fa fd fa fa fa 06 fa
  0x126e1d9a2480: fa fa 00 00 fa fa fd fd fa fa fd fd fa fa fd fd
  0x126e1d9a2500: fa fa fd fd fa fa 00 fa fa fa fd fd fa fa fd fd
=>0x126e1d9a2580: fa fa fd fd fa fa 00 00 fa fa[fa]fa fa fa 04 fa
  0x126e1d9a2600: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x126e1d9a2680: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x126e1d9a2700: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x126e1d9a2780: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x126e1d9a2800: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==3260==ABORTING

--
exit: 1
--
shard JSON output does not exist: C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\lib\asan\tests\X86_64WindowsDynamicConfig\.\Asan-x86_64-calls-Dynamic-Test.exe-AddressSanitizer-Unit-20068-29-37.json
```
</details>
<details>
<summary>AddressSanitizer-Unit._/Asan-x86_64-inline-Dynamic-Test_exe/29/37</summary>

```
Script(shard):
--
GTEST_OUTPUT=json:C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\lib\asan\tests\X86_64WindowsDynamicConfig\.\Asan-x86_64-inline-Dynamic-Test.exe-AddressSanitizer-Unit-20068-29-37.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=37 GTEST_SHARD_INDEX=29 C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\lib\asan\tests\X86_64WindowsDynamicConfig\.\Asan-x86_64-inline-Dynamic-Test.exe
--

Note: This is test shard 30 of 37.

[==========] Running 2 tests from 1 test suite.

[----------] Global test environment set-up.

[----------] 2 tests from AddressSanitizer

[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBLeftLow

[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBLeftHigh

[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBRightLow

[ DISABLED ] AddressSanitizer.DISABLED_DemoOOBRightHigh

[ DISABLED ] AddressSanitizer.DISABLED_StrDupOOBTest

[ RUN      ] AddressSanitizer.StrCmpAndFriendsLogicTest

[       OK ] AddressSanitizer.StrCmpAndFriendsLogicTest (0 ms)

[ RUN      ] AddressSanitizer.ReallocTest

=================================================================
==18032==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x11ef7b4a25d0 at pc 0x7ff9f6cdbdf8 bp 0x008d5257cc20 sp 0x008d5257cc68
READ of size 1 at 0x11ef7b4a25d0 thread T0
    #0 0x7ff9f6cdbdf7 in memmove C:\_work\llvm-project\llvm-project\compiler-rt\lib\sanitizer_common\sanitizer_common_interceptors_memintrinsics.inc:100
    #1 0x7ff9f6cbda41 in __asan::Allocator::Reallocate(void *, unsigned __int64, struct __sanitizer::BufferedStackTrace *) C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_allocator.cpp:810
    #2 0x7ff9f6cbd93c in __asan::asan_realloc(void *, unsigned __int64, struct __sanitizer::BufferedStackTrace *) C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_allocator.cpp:1109
    #3 0x7ff9f6cdca9f in realloc C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_malloc_win.cpp:118
    #4 0x7ff7e21e23b2 in AddressSanitizer_ReallocTest_Test::TestBody(void) C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\tests\asan_test.cpp:400
    #5 0x7ff7e217497f in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606
    #6 0x7ff7e2142e1d in testing::internal::HandleExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2649
    #7 0x7ff7e20ca3df in testing::Test::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2688
    #8 0x7ff7e20ce8f3 in testing::TestInfo::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2837
    #9 0x7ff7e20d11c4 in testing::TestSuite::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:3016
    #10 0x7ff7e211f21a in testing::internal::UnitTestImpl::RunAllTests(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:5921
    #11 0x7ff7e217610f in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606
    #12 0x7ff7e2146231 in testing::internal::HandleExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2649
    #13 0x7ff7e211e338 in testing::UnitTest::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:5485
    #14 0x7ff7e2356d4a in RUN_ALL_TESTS C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest\gtest.h:2317
    #15 0x7ff7e2356d4a in main C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\tests\asan_test_main.cpp:39
    #16 0x7ff7e23588ff in invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
    #17 0x7ff7e23588ff in __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
    #18 0x7ffa20bd4caf  (C:\Windows\System32\KERNEL32.DLL+0x180014caf)
    #19 0x7ffa2cbfedca  (C:\Windows\SYSTEM32\ntdll.dll+0x18007edca)

0x11ef7b4a25d0 is located 0 bytes inside of 1-byte region [0x11ef7b4a25d0,0x11ef7b4a25d1)
allocated by thread T0 here:
    #0 0x7ff9f6cdc80f in malloc C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_malloc_win.cpp:87
    #1 0x7ff7e21e239c in AddressSanitizer_ReallocTest_Test::TestBody(void) C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\tests\asan_test.cpp:398
    #2 0x7ff7e217497f in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606
    #3 0x7ff7e2142e1d in testing::internal::HandleExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2649
    #4 0x7ff7e20ca3df in testing::Test::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2688
    #5 0x7ff7e20ce8f3 in testing::TestInfo::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2837
    #6 0x7ff7e20d11c4 in testing::TestSuite::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:3016
    #7 0x7ff7e211f21a in testing::internal::UnitTestImpl::RunAllTests(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:5921
    #8 0x7ff7e217610f in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606
    #9 0x7ff7e2146231 in testing::internal::HandleExceptionsInMethodIfSupported<class testing::internal::UnitTestImpl, bool>(class testing::internal::UnitTestImpl *, bool (__cdecl testing::internal::UnitTestImpl::*)(void), char const *) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2649
    #10 0x7ff7e211e338 in testing::UnitTest::Run(void) C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:5485
    #11 0x7ff7e2356d4a in RUN_ALL_TESTS C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest\gtest.h:2317
    #12 0x7ff7e2356d4a in main C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\tests\asan_test_main.cpp:39
    #13 0x7ff7e23588ff in invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
    #14 0x7ff7e23588ff in __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
    #15 0x7ffa20bd4caf  (C:\Windows\System32\KERNEL32.DLL+0x180014caf)
    #16 0x7ffa2cbfedca  (C:\Windows\SYSTEM32\ntdll.dll+0x18007edca)

SUMMARY: AddressSanitizer: heap-buffer-overflow C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\src\gtest.cc:2606 in testing::internal::HandleSehExceptionsInMethodIfSupported<class testing::Test, void>(class testing::Test *, void (__cdecl testing::Test::*)(void), char const *)
Shadow bytes around the buggy address:
  0x11ef7b4a2300: fa fa fd fa fa fa 00 00 fa fa fd fa fa fa fd fa
  0x11ef7b4a2380: fa fa fd fa fa fa fd fa fa fa fd fa fa fa 01 fa
  0x11ef7b4a2400: fa fa 06 fa fa fa 05 fa fa fa fd fa fa fa 06 fa
  0x11ef7b4a2480: fa fa 00 00 fa fa fd fd fa fa fd fd fa fa fd fd
  0x11ef7b4a2500: fa fa fd fd fa fa 00 fa fa fa fd fd fa fa fd fd
=>0x11ef7b4a2580: fa fa fd fd fa fa 00 00 fa fa[fa]fa fa fa 04 fa
  0x11ef7b4a2600: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x11ef7b4a2680: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x11ef7b4a2700: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x11ef7b4a2780: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x11ef7b4a2800: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==18032==ABORTING

--
exit: 1
--
shard JSON output does not exist: C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\lib\asan\tests\X86_64WindowsDynamicConfig\.\Asan-x86_64-inline-Dynamic-Test.exe-AddressSanitizer-Unit-20068-29-37.json
```
</details>

### AddressSanitizer-x86_64-windows
<details>
<summary>AddressSanitizer-x86_64-windows.TestCases/Windows/heaprealloc_alloc_zero.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
C:/_work/llvm-project/llvm-project/build/./bin/clang-cl.exe  -fsanitize=address -Wno-deprecated-declarations -WX -D_HAS_EXCEPTIONS=0 -gline-tables-only -gcodeview -gcolumn-info   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -Od -MT -o C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\asan\X86_64WindowsConfig\TestCases\Windows\Output\heaprealloc_alloc_zero.cpp.tmp C:\_work\llvm-project\llvm-project\compiler-rt\test\asan\TestCases\Windows\heaprealloc_alloc_zero.cpp
# executed command: C:/_work/llvm-project/llvm-project/build/./bin/clang-cl.exe -fsanitize=address -Wno-deprecated-declarations -WX -D_HAS_EXCEPTIONS=0 -gline-tables-only -gcodeview -gcolumn-info -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -Od -MT -o 'C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\asan\X86_64WindowsConfig\TestCases\Windows\Output\heaprealloc_alloc_zero.cpp.tmp' 'C:\_work\llvm-project\llvm-project\compiler-rt\test\asan\TestCases\Windows\heaprealloc_alloc_zero.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 2
env ASAN_OPTIONS=windows_hook_rtl_allocators=true  C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\asan\X86_64WindowsConfig\TestCases\Windows\Output\heaprealloc_alloc_zero.cpp.tmp 2>&1 | FileCheck C:\_work\llvm-project\llvm-project\compiler-rt\test\asan\TestCases\Windows\heaprealloc_alloc_zero.cpp
# executed command: env ASAN_OPTIONS=windows_hook_rtl_allocators=true 'C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\asan\X86_64WindowsConfig\TestCases\Windows\Output\heaprealloc_alloc_zero.cpp.tmp'
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: FileCheck 'C:\_work\llvm-project\llvm-project\compiler-rt\test\asan\TestCases\Windows\heaprealloc_alloc_zero.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\compiler-rt\test\asan\TestCases\Windows\heaprealloc_alloc_zero.cpp:62:15: error: CHECK-NOT: excluded string found in input
# | // CHECK-NOT: heap-buffer-overflow
# |               ^
# | <stdin>:3:34: note: found here
# | ==7860==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x11a41b1a01f0 at pc 0x7ff9f6cdbdf8 bp 0x00478a8fea60 sp 0x00478a8feaa8
# |                                  ^~~~~~~~~~~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\compiler-rt\test\asan\TestCases\Windows\heaprealloc_alloc_zero.cpp:63:15: error: CHECK-NOT: excluded string found in input
# | // CHECK-NOT: AddressSanitizer
# |               ^
# | <stdin>:3:16: note: found here
# | ==7860==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x11a41b1a01f0 at pc 0x7ff9f6cdbdf8 bp 0x00478a8fea60 sp 0x00478a8feaa8
# |                ^~~~~~~~~~~~~~~~
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\compiler-rt\test\asan\TestCases\Windows\heaprealloc_alloc_zero.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |         1: allocated! 
# |         2: ================================================================= 
# |         3: ==7860==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x11a41b1a01f0 at pc 0x7ff9f6cdbdf8 bp 0x00478a8fea60 sp 0x00478a8feaa8 
# | not:62                                      !~~~~~~~~~~~~~~~~~~~                                                                                     error: no match expected
# | not:63                    !~~~~~~~~~~~~~~~                                                                                                           error: no match expected
# |         4: READ of size 1 at 0x11a41b1a01f0 thread T0 
# |         5: ==7860==WARNING: Failed to use and restart external symbolizer! 
# |         6:  #0 0x7ff9f6cdbdf7 in memmove C:\_work\llvm-project\llvm-project\compiler-rt\lib\sanitizer_common\sanitizer_common_interceptors_memintrinsics.inc:100 
# |         7:  #1 0x7ff9f6cbda41 in __asan::Allocator::Reallocate C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_allocator.cpp:810 
# |         8:  #2 0x7ff9f6cbd93c in __asan::asan_realloc C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_allocator.cpp:1109 
# |         .
# |         .
# |         .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

### AddressSanitizer-x86_64-windows-dynamic
<details>
<summary>AddressSanitizer-x86_64-windows-dynamic.TestCases/Windows/heaprealloc_alloc_zero.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
C:/_work/llvm-project/llvm-project/build/./bin/clang-cl.exe  -fsanitize=address -Wno-deprecated-declarations -WX -D_HAS_EXCEPTIONS=0 -gline-tables-only -gcodeview -gcolumn-info   -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -MD -Od -MT -o C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\asan\X86_64WindowsDynamicConfig\TestCases\Windows\Output\heaprealloc_alloc_zero.cpp.tmp C:\_work\llvm-project\llvm-project\compiler-rt\test\asan\TestCases\Windows\heaprealloc_alloc_zero.cpp
# executed command: C:/_work/llvm-project/llvm-project/build/./bin/clang-cl.exe -fsanitize=address -Wno-deprecated-declarations -WX -D_HAS_EXCEPTIONS=0 -gline-tables-only -gcodeview -gcolumn-info -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -MD -Od -MT -o 'C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\asan\X86_64WindowsDynamicConfig\TestCases\Windows\Output\heaprealloc_alloc_zero.cpp.tmp' 'C:\_work\llvm-project\llvm-project\compiler-rt\test\asan\TestCases\Windows\heaprealloc_alloc_zero.cpp'
# note: command had no output on stdout or stderr
# RUN: at line 2
env ASAN_OPTIONS=windows_hook_rtl_allocators=true  C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\asan\X86_64WindowsDynamicConfig\TestCases\Windows\Output\heaprealloc_alloc_zero.cpp.tmp 2>&1 | FileCheck C:\_work\llvm-project\llvm-project\compiler-rt\test\asan\TestCases\Windows\heaprealloc_alloc_zero.cpp
# executed command: env ASAN_OPTIONS=windows_hook_rtl_allocators=true 'C:\_work\llvm-project\llvm-project\build\runtimes\runtimes-bins\compiler-rt\test\asan\X86_64WindowsDynamicConfig\TestCases\Windows\Output\heaprealloc_alloc_zero.cpp.tmp'
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: FileCheck 'C:\_work\llvm-project\llvm-project\compiler-rt\test\asan\TestCases\Windows\heaprealloc_alloc_zero.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\compiler-rt\test\asan\TestCases\Windows\heaprealloc_alloc_zero.cpp:62:15: error: CHECK-NOT: excluded string found in input
# | // CHECK-NOT: heap-buffer-overflow
# |               ^
# | <stdin>:3:35: note: found here
# | ==11688==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x123f7f5a01f0 at pc 0x7ff9f6cdbdf8 bp 0x008b1a2fe490 sp 0x008b1a2fe4d8
# |                                   ^~~~~~~~~~~~~~~~~~~~
# | C:\_work\llvm-project\llvm-project\compiler-rt\test\asan\TestCases\Windows\heaprealloc_alloc_zero.cpp:63:15: error: CHECK-NOT: excluded string found in input
# | // CHECK-NOT: AddressSanitizer
# |               ^
# | <stdin>:3:17: note: found here
# | ==11688==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x123f7f5a01f0 at pc 0x7ff9f6cdbdf8 bp 0x008b1a2fe490 sp 0x008b1a2fe4d8
# |                 ^~~~~~~~~~~~~~~~
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\compiler-rt\test\asan\TestCases\Windows\heaprealloc_alloc_zero.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |         1: allocated! 
# |         2: ================================================================= 
# |         3: ==11688==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x123f7f5a01f0 at pc 0x7ff9f6cdbdf8 bp 0x008b1a2fe490 sp 0x008b1a2fe4d8 
# | not:62                                       !~~~~~~~~~~~~~~~~~~~                                                                                     error: no match expected
# | not:63                     !~~~~~~~~~~~~~~~                                                                                                           error: no match expected
# |         4: READ of size 1 at 0x123f7f5a01f0 thread T0 
# |         5: ==11688==WARNING: Failed to use and restart external symbolizer! 
# |         6:  #0 0x7ff9f6cdbdf7 in memmove C:\_work\llvm-project\llvm-project\compiler-rt\lib\sanitizer_common\sanitizer_common_interceptors_memintrinsics.inc:100 
# |         7:  #1 0x7ff9f6cbda41 in __asan::Allocator::Reallocate C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_allocator.cpp:810 
# |         8:  #2 0x7ff9f6cbd93c in __asan::asan_realloc C:\_work\llvm-project\llvm-project\compiler-rt\lib\asan\asan_allocator.cpp:1109 
# |         .
# |         .
# |         .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/192060


More information about the llvm-commits mailing list