ref: 17f2474ea4da381d78fa52a1b3ffd664aecf9094
parent: 71f9da5c7878d1227eb07d0f6578ac2f8fc72ed6
parent: 7afac52ba66be13da66eb91e8b0a1776105b40c5
author: James Zern <[email protected]>
date: Wed Nov 6 15:32:00 EST 2019
Merge "test/vp[89]_boolcoder_test: quiet msan warnings"
--- a/test/vp8_boolcoder_test.cc
+++ b/test/vp8_boolcoder_test.cc
@@ -93,6 +93,9 @@
}
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);
--- a/test/vp9_boolcoder_test.cc
+++ b/test/vp9_boolcoder_test.cc
@@ -66,6 +66,9 @@
}
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);