shithub: libvpx

Download patch

ref: 612e3c8a0e2c48b72c3da919533392eac85dc997
parent: d37c78819a02ee79eb129cd85e681080c2350e8c
parent: 42b7c44b2fa40ff8b070809e79f9931526f5fe52
author: Alex Converse <[email protected]>
date: Fri Nov 20 12:42:05 EST 2015

Merge "Fix a signed shift overflow in vpx_rb_read_inv_signed_literal."

--- a/vpx_dsp/bitreader_buffer.c
+++ b/vpx_dsp/bitreader_buffer.c
@@ -45,7 +45,7 @@
                                    int bits) {
 #if CONFIG_MISC_FIXES
   const int nbits = sizeof(unsigned) * 8 - bits - 1;
-  const unsigned value = vpx_rb_read_literal(rb, bits + 1) << nbits;
+  const unsigned value = (unsigned)vpx_rb_read_literal(rb, bits + 1) << nbits;
   return ((int) value) >> nbits;
 #else
   return vpx_rb_read_signed_literal(rb, bits);