Note: Google Test filter = AudioBlockFifoTest.POC_* [==========] Running 2 tests from 1 test suite. [----------] Global test environment set-up. [----------] 2 tests from AudioBlockFifoTest [ RUN ] AudioBlockFifoTest.POC_IncreaseCapacityOnFullFifo_LeaksUninitMemory [POC] pushed block markers (FIFO order): 1.0 2.0 3.0 4.0 [POC] consumed block first-samples : 3 4 -0.372549 -0.372549 [POC] floats returned by Consume() that were NEVER pushed: 64 / 128 [POC] sample leaked raw dword: 0xbebebebe (ASAN malloc_fill_byte=0xbe => 0xbebebebe == uninitialized) ../../media/base/audio_block_fifo_unittest.cc:359: Failure Expected equality of these values: pushed Which is: { 1, 2, 3, 4 } got Which is: { -0.372549, 3, 4 } [POC] Data integrity violated: pushed blocks {1,2,3,4} but Consume() did not return them all -- IncreaseCapacity() on a full FIFO mis-positioned write_block_ onto already-full data. Stack trace: #0 0x607850730075 (/chromium/chromium/src/out/asan/media_unittests+0x6ba6074) ../../media/base/audio_block_fifo_unittest.cc:364: Failure Expected equality of these values: 0 leaked_floats Which is: 64 [POC] CWE-908: Consume() returned 64 floats of UNINITIALIZED AlignedUninit heap. In production this is unsandboxed audio-service heap residue copied verbatim into renderer-mapped SHM via InputSyncWriter::Write(). Stack trace: #0 0x6078507301f6 (/chromium/chromium/src/out/asan/media_unittests+0x6ba61f5) [ FAILED ] AudioBlockFifoTest.POC_IncreaseCapacityOnFullFifo_LeaksUninitMemory (0 ms) [ RUN ] AudioBlockFifoTest.POC_IncreaseCapacityOnFullFifo_ThreeFragments ../../media/base/audio_block_fifo_unittest.cc:394: Failure Expected equality of these values: 1.0f Which is: 1 first->channel(0)[0] Which is: 3 [POC] Oldest unconsumed audio (1.0) was overwritten by post-resize Push(); IncreaseCapacity() on full FIFO put write_block_ on top of read_block_. Stack trace: #0 0x6078507313d5 (/chromium/chromium/src/out/asan/media_unittests+0x6ba73d4) [ FAILED ] AudioBlockFifoTest.POC_IncreaseCapacityOnFullFifo_ThreeFragments (0 ms) [----------] 2 tests from AudioBlockFifoTest (0 ms total) [----------] Global test environment tear-down [==========] 2 tests from 1 test suite ran. (0 ms total) [ PASSED ] 0 tests. [ FAILED ] 2 tests, listed below: [ FAILED ] AudioBlockFifoTest.POC_IncreaseCapacityOnFullFifo_LeaksUninitMemory [ FAILED ] AudioBlockFifoTest.POC_IncreaseCapacityOnFullFifo_ThreeFragments 2 FAILED TESTS