ref: 772452508548c5a0af64802625910cb6ff6473ca
parent: 4640c2f58346160a1aedafc323b3d1f322f71e5d
parent: 84a9e8eb9a577cb42acf095d0d22b64e416ef61d
author: Jerome Jiang <[email protected]>
date: Wed Jun 6 20:02:48 EDT 2018
Merge "VP9: fix unsigned integer overflow in decoder."
--- a/vp9/decoder/vp9_decodeframe.c
+++ b/vp9/decoder/vp9_decodeframe.c
@@ -1528,7 +1528,7 @@
static int compare_tile_buffers(const void *a, const void *b) {
const TileBuffer *const buf1 = (const TileBuffer *)a;
const TileBuffer *const buf2 = (const TileBuffer *)b;
- return (int)(buf2->size - buf1->size);
+ return (int)((int64_t)buf2->size - buf1->size);
}
static const uint8_t *decode_tiles_mt(VP9Decoder *pbi, const uint8_t *data,