test/vp[89]_boolcoder_test: quiet msan warnings

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
This commit is contained in:
James Zern
2019-11-05 23:02:44 -08:00
parent 03b779e99b
commit 7afac52ba6
2 changed files with 6 additions and 0 deletions

View File

@@ -93,6 +93,9 @@ TEST(VP8, TestBitIO) {
}
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);