shithub: libvpx

Download patch

ref: 2240d83d7882ce2d5d0826b9ce33b86321d7a724
parent: bdfbd6325ef8582beb0cb382f7d0f12cc488ecee
author: Yaowu Xu <[email protected]>
date: Tue May 17 07:39:57 EDT 2016

Promote to uint32_t before left shift

This commit change to promote uint8_t explicitly to uint32_t before
left shift operation.

BUG=https://bugs.chromium.org/p/chromium/issues/detail?id=612021

Change-Id: Id7059154efb5bdfa45889dabe72aaafd46d79f23

--- a/vp9/decoder/vp9_decoder.c
+++ b/vp9/decoder/vp9_decoder.c
@@ -508,7 +508,7 @@
         uint32_t this_sz = 0;
 
         for (j = 0; j < mag; ++j)
-          this_sz |= (*x++) << (j * 8);
+          this_sz |= ((uint32_t)(*x++)) << (j * 8);
         sizes[i] = this_sz;
       }
       *count = frames;