shithub: libvpx

Download patch

ref: 5a9f6420cddeeb46f58ae171a02bb227e78b260b
parent: 6efdd9ad483f7d86e503ab16e986202feed8b105
parent: 46e17f0cb4a80b36755c84b8bf15731d3386c08f
author: Fyodor Kyslov <kyslov@google.com>
date: Mon Jan 7 14:30:21 EST 2019

Merge "Fix OOB memory access on fuzzed data"

--- a/vp8/decoder/dboolhuff.h
+++ b/vp8/decoder/dboolhuff.h
@@ -76,7 +76,7 @@
   }
 
   {
-    const int shift = vp8_norm[range];
+    const unsigned char shift = vp8_norm[(unsigned char)range];
     range <<= shift;
     value <<= shift;
     count -= shift;
--- a/vpx_dsp/bitreader.h
+++ b/vpx_dsp/bitreader.h
@@ -94,7 +94,7 @@
   }
 
   {
-    const int shift = vpx_norm[range];
+    const unsigned char shift = vpx_norm[(unsigned char)range];
     range <<= shift;
     value <<= shift;
     count -= shift;