ref: da7c5beded832b43231ebe961bcfa5afccd4d3cf
parent: 0d4453c8fe16a3423c8b17546488e9f464e2fff4
parent: 0665e9b4ae3ae7ed0926a3abd04d49b21ceafa1a
author: Hien Ho <hienho@google.com>
date: Wed Aug 21 18:14:33 EDT 2019
Merge "vp8/encoder/bitstream: fix int sanitizer warnings"
--- a/vp8/encoder/bitstream.c
+++ b/vp8/encoder/bitstream.c
@@ -171,7 +171,7 @@
validate_buffer(w->buffer + w->pos, 1, w->buffer_end, w->error);
- w->buffer[w->pos++] = (lowvalue >> (24 - offset));
+ w->buffer[w->pos++] = (lowvalue >> (24 - offset)) & 0xff;
lowvalue <<= offset;
shift = count;
lowvalue &= 0xffffff;