Note: Google Test filter = DawnYCbCrPackingPOC.* [==========] Running 2 tests from 1 test suite. [----------] Global test environment set-up. [----------] 2 tests from DawnYCbCrPackingPOC [ RUN ] DawnYCbCrPackingPOC.BitPackingOverflowProducesInvalidChromaFilter [POC] Packed fNonFormatYcbcrConversionInfo = 0x000001ff (expected bits 1-8 set: 0x1FF) [POC] Unpacked vkChromaFilter = 3 (valid wgpu::FilterMode enumerators are 0, 1, 2) [ OK ] DawnYCbCrPackingPOC.BitPackingOverflowProducesInvalidChromaFilter (0 ms) [ RUN ] DawnYCbCrPackingPOC.ChromaFilterLabelsOOBRead [POC] About to read chromaFilterLabels[3] (array has 3 elements) ================================================================= ==5048==ERROR: AddressSanitizer: global-buffer-overflow on address 0x55c0267a1a78 at pc 0x55c0237bac61 bp 0x7ffe082994f0 sp 0x7ffe082994e8 READ of size 8 at 0x55c0267a1a78 thread T0 #0 0x55c0237bac60 in (anonymous namespace)::DawnYCbCrPackingPOC_ChromaFilterLabelsOOBRead_Test::TestBody() skia/ext/dawn_ycbcr_packing_unittest.cc:170:7 #1 0x55c02462b1cb in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #2 0x55c02462d8d7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #3 0x55c02462f9e3 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #4 0x55c02465f83a in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #5 0x55c02465e29e in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #6 0x55c0250da4bc in base::TestSuite::Run() base/test/test_suite.cc:440:16 #7 0x55c0237fcc51 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #8 0x55c0251059eb in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #9 0x55c02510530b in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #10 0x55c0237fc94f in main mojo/core/test/run_all_unittests.cc:30:10 #11 0x7f7b20494249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) 0x55c0267a1a78 is located 40 bytes before global variable 'vtable for testing::internal::TestFactoryImpl' defined in '../../skia/public/mojom/test/mojom_traits_unittest.cc' (0x55c0267a1aa0) of size 40 0x55c0267a1a78 is located 0 bytes after global variable '(anonymous namespace)::DawnYCbCrPackingPOC_ChromaFilterLabelsOOBRead_Test::TestBody()::chromaFilterLabels' defined in '../../skia/ext/dawn_ycbcr_packing_unittest.cc' (0x55c0267a1a60) of size 24 SUMMARY: AddressSanitizer: global-buffer-overflow skia/ext/dawn_ycbcr_packing_unittest.cc:170:7 in (anonymous namespace)::DawnYCbCrPackingPOC_ChromaFilterLabelsOOBRead_Test::TestBody() Shadow bytes around the buggy address: 0x55c0267a1780: 00 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 0x55c0267a1800: f9 f9 f9 f9 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 0x55c0267a1880: 00 00 00 00 00 00 00 00 f9 f9 f9 f9 00 00 00 00 0x55c0267a1900: 00 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 0x55c0267a1980: f9 f9 f9 f9 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 =>0x55c0267a1a00: 00 00 00 00 00 00 00 00 f9 f9 f9 f9 00 00 00[f9] 0x55c0267a1a80: f9 f9 f9 f9 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 0x55c0267a1b00: 00 00 00 00 00 00 00 00 f9 f9 f9 f9 00 00 00 00 0x55c0267a1b80: 00 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 0x55c0267a1c00: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00 0x55c0267a1c80: 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 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 ==5048==ADDITIONAL INFO ==5048==Note: Please include this section with the ASan report. Task trace: ==5048==END OF ADDITIONAL INFO ==5048==ABORTING