Note: Google Test filter = LibYUVScaleTest.ScalePlaneDown4_RowStrideOverflow [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from LibYUVScaleTest [ RUN ] LibYUVScaleTest.ScalePlaneDown4_RowStrideOverflow ================================================================= ==2450==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x704bbcdfe7fc at pc 0x59905085b503 bp 0x7ffce5425ac0 sp 0x7ffce5425ab8 READ of size 1 at 0x704bbcdfe7fc thread T0 #0 0x59905085b502 in ScaleRowDown4Box_C third_party/libyuv/source/scale_common.cc:367:15 #1 0x59905084400e in libyuv::ScalePlaneDown4(int, int, int, int, int, int, unsigned char const*, unsigned char*, libyuv::FilterMode) third_party/libyuv/source/scale.cc:324:5 #2 0x59905084365a in ScalePlane third_party/libyuv/source/scale.cc:2009:7 #3 0x59904f908336 in libyuv::LibYUVScaleTest_ScalePlaneDown4_RowStrideOverflow_Test::TestBody() third_party/libyuv/unit_test/scale_plane_test.cc:96:3 #4 0x59904fb0110b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #5 0x59904fb032d7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #6 0x59904fb05233 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #7 0x59904fb3430a in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #8 0x59904fb32dde in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #9 0x59904facba4b in main third_party/googletest/src/googletest/include/gtest/gtest.h:2337:73 #10 0x744d7fcbf249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) 0x704bbcdfe7fc is located 4 bytes before 7516193017-byte region [0x704bbcdfe800,0x704d7cdfe8f9) allocated by thread T0 here: #0 0x59904ee2dee1 in operator new[](unsigned long, std::nothrow_t const&) (/chromium/chromium/src/out/asan/libyuv_unittest+0xa1aee1) (BuildId: e6a1f6df89cfcc28) #1 0x59904f908108 in libyuv::LibYUVScaleTest_ScalePlaneDown4_RowStrideOverflow_Test::TestBody() third_party/libyuv/unit_test/scale_plane_test.cc:89:18 #2 0x59904fb0110b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #3 0x59904fb032d7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #4 0x59904fb05233 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #5 0x59904fb3430a in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #6 0x59904fb32dde in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #7 0x59904facba4b in main third_party/googletest/src/googletest/include/gtest/gtest.h:2337:73 #8 0x744d7fcbf249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) SUMMARY: AddressSanitizer: heap-buffer-overflow third_party/libyuv/source/scale_common.cc:367:15 in ScaleRowDown4Box_C Shadow bytes around the buggy address: 0x704bbcdfe500: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x704bbcdfe580: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x704bbcdfe600: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x704bbcdfe680: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x704bbcdfe700: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x704bbcdfe780: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa[fa] 0x704bbcdfe800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x704bbcdfe880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x704bbcdfe900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x704bbcdfe980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x704bbcdfea00: 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 ==2450==ABORTING