commit | 84d41990774f32b2d3c855426e876f89084bc7f6 | [log] [tgz] |
---|---|---|
author | Hien Ho <hienho@google.com> | Fri Aug 02 20:34:03 2019 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Aug 02 20:34:03 2019 |
tree | fc9ee8c53a1aebfa1e7842c3a6f802b61d9e1ff1 | |
parent | e034854618159da54264a48fb4d886acb75a1d70 [diff] | |
parent | 7cb611d221c7161c9c3af1d3496c64651ec5c003 [diff] |
Merge "vp8/encoder/boolhuff: fix integer sanitizer warnings"
diff --git a/vp8/encoder/boolhuff.h b/vp8/encoder/boolhuff.h index 8ac0a2c..8cc61bd 100644 --- a/vp8/encoder/boolhuff.h +++ b/vp8/encoder/boolhuff.h
@@ -92,7 +92,7 @@ } validate_buffer(bc->buffer + bc->pos, 1, bc->buffer_end, bc->error); - bc->buffer[bc->pos++] = (lowvalue >> (24 - offset)); + bc->buffer[bc->pos++] = (lowvalue >> (24 - offset) & 0xff); lowvalue <<= offset; shift = count;