Note: Google Test filter = LibYUVScaleTest.ScalePlaneDown2_RowStrideOverflow [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from LibYUVScaleTest [ RUN ] LibYUVScaleTest.ScalePlaneDown2_RowStrideOverflow ================================================================= ==2448==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6fc6b7ffe7fc at pc 0x6158fdbe7e54 bp 0x7ffc96eaf7c0 sp 0x7ffc96eaf7b8 READ of size 1 at 0x6fc6b7ffe7fc thread T0 #0 0x6158fdbe7e53 in ScaleRowDown2Box_C third_party/libyuv/source/scale_common.cc:218:15 #1 0x6158fdbd57c1 in ScalePlane third_party/libyuv/source/scale.cc:144:5 #2 0x6158fcc99ded in libyuv::LibYUVScaleTest_ScalePlaneDown2_RowStrideOverflow_Test::TestBody() third_party/libyuv/unit_test/scale_plane_test.cc:73:3 #3 0x6158fce9310b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #4 0x6158fce952d7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #5 0x6158fce97233 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #6 0x6158fcec630a in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #7 0x6158fcec4dde in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #8 0x6158fce5da4b in main third_party/googletest/src/googletest/include/gtest/gtest.h:2337:73 #9 0x73c83afb4249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) 0x6fc6b7ffe7fc is located 4 bytes before 6442451194-byte region [0x6fc6b7ffe800,0x6fc837ffe8fa) allocated by thread T0 here: #0 0x6158fc1bfee1 in operator new[](unsigned long, std::nothrow_t const&) (/chromium/chromium/src/out/asan/libyuv_unittest+0xa1aee1) (BuildId: e6a1f6df89cfcc28) #1 0x6158fcc99ba3 in libyuv::LibYUVScaleTest_ScalePlaneDown2_RowStrideOverflow_Test::TestBody() third_party/libyuv/unit_test/scale_plane_test.cc:60:18 #2 0x6158fce9310b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #3 0x6158fce952d7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #4 0x6158fce97233 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #5 0x6158fcec630a in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #6 0x6158fcec4dde in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #7 0x6158fce5da4b in main third_party/googletest/src/googletest/include/gtest/gtest.h:2337:73 #8 0x73c83afb4249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) SUMMARY: AddressSanitizer: heap-buffer-overflow third_party/libyuv/source/scale_common.cc:218:15 in ScaleRowDown2Box_C Shadow bytes around the buggy address: 0x6fc6b7ffe500: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x6fc6b7ffe580: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x6fc6b7ffe600: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x6fc6b7ffe680: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x6fc6b7ffe700: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x6fc6b7ffe780: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa[fa] 0x6fc6b7ffe800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x6fc6b7ffe880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x6fc6b7ffe900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x6fc6b7ffe980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x6fc6b7ffea00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 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 ==2448==ABORTING