Note: Google Test filter = EncodeAPI.MultiResEncodeFirstIterFailOOB [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from EncodeAPI [ RUN ] EncodeAPI.MultiResEncodeFirstIterFailOOB ================================================================= ==834==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6dc4a45e02d8 at pc 0x5bac11e10902 bp 0x7ffc5adfcfd0 sp 0x7ffc5adfcfc8 WRITE of size 4 at 0x6dc4a45e02d8 thread T0 #0 0x5bac11e10901 in vpx_codec_encode third_party/libvpx/source/libvpx/vpx/src/vpx_encoder.c:245:10 #1 0x5bac10f5b2dd in (anonymous namespace)::EncodeAPI_MultiResEncodeFirstIterFailOOB_Test::TestBody() third_party/libvpx/source/libvpx/test/encode_api_test.cc:1088:3 #2 0x5bac113c0eeb in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #3 0x5bac113c3f67 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #4 0x5bac113c5e43 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #5 0x5bac113f4524 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #6 0x5bac113f309a in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #7 0x5bac110e2b90 in main third_party/googletest/src/googletest/include/gtest/gtest.h:2337:73 #8 0x70d4a5287249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) 0x6dc4a45e02d8 is located 16 bytes after 168-byte region [0x6dc4a45e0220,0x6dc4a45e02c8) allocated by thread T0 here: #0 0x5bac10ea1bdd in operator new(unsigned long) (/chromium/chromium/src/out/asan/test_libvpx+0x81ebdd) (BuildId: e2f6ff8ae8e876ed) #1 0x5bac10f5b8a3 in std::__Cr::vector>::reserve(unsigned long) gen/third_party/libc++/src/include/__new/allocate.h:42:28 #2 0x5bac10f5a9f9 in (anonymous namespace)::EncodeAPI_MultiResEncodeFirstIterFailOOB_Test::TestBody() third_party/libvpx/source/libvpx/test/encode_api_test.cc:1043:7 #3 0x5bac113c0eeb in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #4 0x5bac113c3f67 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #5 0x5bac113c5e43 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #6 0x5bac113f4524 in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #7 0x5bac113f309a in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #8 0x5bac110e2b90 in main third_party/googletest/src/googletest/include/gtest/gtest.h:2337:73 #9 0x70d4a5287249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) SUMMARY: AddressSanitizer: heap-buffer-overflow third_party/libvpx/source/libvpx/vpx/src/vpx_encoder.c:245:10 in vpx_codec_encode Shadow bytes around the buggy address: 0x6dc4a45e0000: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 0x6dc4a45e0080: fd fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa 0x6dc4a45e0100: fa fa fa fa fa fa fd fd fd fd fd fd fd fd fd fd 0x6dc4a45e0180: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa 0x6dc4a45e0200: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 00 =>0x6dc4a45e0280: 00 00 00 00 00 00 00 00 00 fa fa[fa]fa fa fa fa 0x6dc4a45e0300: fa fa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x6dc4a45e0380: 00 00 00 00 00 00 07 fa fa fa fa fa fa fa fa fa 0x6dc4a45e0400: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x6dc4a45e0480: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x6dc4a45e0500: 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 ==834==ABORTING