the bitreaders may fill beyond what was written to the buffer as an
optimization. the data isn't used meaningfully, but it may trigger a
msan warning.
BUG=b/
140939146
Change-Id: Id03cd203b8ee7ecaf6fdfe3f3c9f2ccfec527129
}
vp8_stop_encode(&bw);
+ // vp8dx_bool_decoder_fill() may read into uninitialized data that
+ // isn't used meaningfully, but may trigger an MSan warning.
+ memset(bw_buffer + bw.pos, 0, sizeof(VP8_BD_VALUE) - 1);
BOOL_DECODER br;
encrypt_buffer(bw_buffer, kBufferSize);
}
vpx_stop_encode(&bw);
+ // vpx_reader_fill() may read into uninitialized data that
+ // isn't used meaningfully, but may trigger an MSan warning.
+ memset(bw_buffer + bw.pos, 0, sizeof(BD_VALUE) - 1);
// First bit should be zero
GTEST_ASSERT_EQ(bw_buffer[0] & 0x80, 0);