Note: Google Test filter = AV1VaapiVideoEncoderDelegateTest.TemporalLayerDesyncOobWrite [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from AV1VaapiVideoEncoderDelegateTest [ RUN ] AV1VaapiVideoEncoderDelegateTest.TemporalLayerDesyncOobWrite GMOCK WARNING: Uninteresting mock function call - taking default action specified at: ../../media/gpu/vaapi/av1_vaapi_video_encoder_delegate_unittest.cc:62: Function call: SubmitBuffer_Locked(@0x7bcd5bb58150 24-byte object <19-00 00-00 00-00 00-00 1C-00 00-00 00-00 00-00 20-5D 7D-5A 8D-7B 00-00>) Returns: true NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md#knowing-when-to-expect-useoncall for details. GMOCK WARNING: Uninteresting mock function call - taking default action specified at: ../../media/gpu/vaapi/av1_vaapi_video_encoder_delegate_unittest.cc:62: Function call: SubmitBuffer_Locked(@0x7bcd5bb58168 24-byte object <1A-00 00-00 00-00 00-00 03-00 00-00 00-00 00-00 10-57 A4-5B AD-7B 00-00>) Returns: true NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md#knowing-when-to-expect-useoncall for details. GMOCK WARNING: Uninteresting mock function call - taking default action specified at: ../../media/gpu/vaapi/av1_vaapi_video_encoder_delegate_unittest.cc:62: Function call: SubmitBuffer_Locked(@0x7b8d5a7d65c0 24-byte object <16-00 00-00 00-00 00-00 58-00 00-00 00-00 00-00 20-48 95-5A 8D-7B 00-00>) Returns: true NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md#knowing-when-to-expect-useoncall for details. GMOCK WARNING: Uninteresting mock function call - taking default action specified at: ../../media/gpu/vaapi/av1_vaapi_video_encoder_delegate_unittest.cc:62: Function call: SubmitBuffer_Locked(@0x7bcd5bb58290 24-byte object <19-00 00-00 00-00 00-00 1C-00 00-00 00-00 00-00 20-69 7D-5A 8D-7B 00-00>) Returns: true NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md#knowing-when-to-expect-useoncall for details. GMOCK WARNING: Uninteresting mock function call - taking default action specified at: ../../media/gpu/vaapi/av1_vaapi_video_encoder_delegate_unittest.cc:62: Function call: SubmitBuffer_Locked(@0x7bcd5bb582a8 24-byte object <1A-00 00-00 00-00 00-00 11-00 00-00 00-00 00-00 B0-D5 AF-5B BD-7B 00-00>) Returns: true NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md#knowing-when-to-expect-useoncall for details. GMOCK WARNING: Uninteresting mock function call - taking default action specified at: ../../media/gpu/vaapi/av1_vaapi_video_encoder_delegate_unittest.cc:62: Function call: SubmitBuffer_Locked(@0x7bcd5bb58350 24-byte object <19-00 00-00 00-00 00-00 1C-00 00-00 00-00 00-00 20-71 7D-5A 8D-7B 00-00>) Returns: true NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md#knowing-when-to-expect-useoncall for details. GMOCK WARNING: Uninteresting mock function call - taking default action specified at: ../../media/gpu/vaapi/av1_vaapi_video_encoder_delegate_unittest.cc:62: Function call: SubmitBuffer_Locked(@0x7bcd5bb58368 24-byte object <1A-00 00-00 00-00 00-00 1B-00 00-00 00-00 00-00 40-D6 AF-5B BD-7B 00-00>) Returns: true NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md#knowing-when-to-expect-useoncall for details. GMOCK WARNING: Uninteresting mock function call - taking default action specified at: ../../media/gpu/vaapi/av1_vaapi_video_encoder_delegate_unittest.cc:62: Function call: SubmitBuffer_Locked(@0x7b8d5a7d79c0 24-byte object <17-00 00-00 00-00 00-00 08-04 00-00 00-00 00-00 40-30 B3-5A 8D-7B 00-00>) Returns: true NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md#knowing-when-to-expect-useoncall for details. GMOCK WARNING: Uninteresting mock function call - taking default action specified at: ../../media/gpu/vaapi/av1_vaapi_video_encoder_delegate_unittest.cc:62: Function call: SubmitBuffer_Locked(@0x7b8d5a7d7ec0 24-byte object <18-00 00-00 00-00 00-00 14-00 00-00 00-00 00-00 20-B8 A5-5A 8D-7B 00-00>) Returns: true NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md#knowing-when-to-expect-useoncall for details. ================================================================= ==3153==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7e3d5b9f1120 at pc 0x562cf064abf4 bp 0x7fff7842d190 sp 0x7fff7842d188 WRITE of size 4 at 0x7e3d5b9f1120 thread T0 #0 0x562cf064abf3 in aom::AV1RateControlRTC::ComputeQP(AomAV1FrameParamsRTC const&) third_party/libaom/source/libaom/av1/ratectrl_rtc.cc #1 0x562ce34c9a42 in media::AV1VaapiVideoEncoderDelegate::PrepareEncodeJob(media::VaapiVideoEncoderDelegate::EncodeJob&) media/gpu/vaapi/av1_vaapi_video_encoder_delegate.cc:651:19 #2 0x562ce4211227 in media::AV1VaapiVideoEncoderDelegateTest_TemporalLayerDesyncOobWrite_Test::TestBody() media/gpu/vaapi/av1_vaapi_video_encoder_delegate_unittest.cc:88:22 #3 0x562ce04a569b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #4 0x562ce04a8857 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #5 0x562ce04aa963 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #6 0x562ce04da7ba in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #7 0x562ce04d921e in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #8 0x562ceb6a131c in base::TestSuite::Run() base/test/test_suite.cc:440:16 #9 0x562cdf99d8e1 in base::internal::Invoker, base::internal::BindState>, int ()>::RunOnce(base::internal::BindStateBase*) base/functional/bind_internal.h:740:12 #10 0x562ceb6a8f7b in base::(anonymous namespace)::LaunchUnitTestsInternal(base::OnceCallback, unsigned long, int, unsigned long, bool, base::RepeatingCallback, base::OnceCallback) base/functional/callback.h:155:12 #11 0x562ceb6a889b in base::LaunchUnitTests(int, char**, base::OnceCallback, unsigned long) base/test/launcher/unit_test_launcher.cc:337:10 #12 0x562cdf99d5c5 in main media/test/run_all_unittests.cc:52:10 #13 0x7f8d5d045249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) Address 0x7e3d5b9f1120 is a wild pointer inside of access range of size 0x000000000004. SUMMARY: AddressSanitizer: heap-buffer-overflow third_party/libaom/source/libaom/av1/ratectrl_rtc.cc in aom::AV1RateControlRTC::ComputeQP(AomAV1FrameParamsRTC const&) Shadow bytes around the buggy address: 0x7e3d5b9f0e80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e3d5b9f0f00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e3d5b9f0f80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e3d5b9f1000: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e3d5b9f1080: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x7e3d5b9f1100: fa fa fa fa[fa]fa fa fa fa fa fa fa fa fa fa fa 0x7e3d5b9f1180: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e3d5b9f1200: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e3d5b9f1280: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e3d5b9f1300: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x7e3d5b9f1380: 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 ==3153==ADDITIONAL INFO ==3153==Note: Please include this section with the ASan report. Task trace: ==3153==END OF ADDITIONAL INFO ==3153==ABORTING