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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user