shithub: libvpx

Download patch

ref: 84d41990774f32b2d3c855426e876f89084bc7f6
parent: e034854618159da54264a48fb4d886acb75a1d70
parent: 7cb611d221c7161c9c3af1d3496c64651ec5c003
author: Hien Ho <hienho@google.com>
date: Fri Aug 2 16:34:03 EDT 2019

Merge "vp8/encoder/boolhuff: fix integer sanitizer warnings"

--- 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;