OSDN Git Service

Avoid access invalid memory location huffman_table for index 2..3 (v2)
authorLim Siew Hoon <siew.hoon.lim@intel.com>
Fri, 1 Jul 2016 03:13:24 +0000 (11:13 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 22 Aug 2016 05:04:29 +0000 (13:04 +0800)
commit21adf7743e6f94d3a080ee6ae4d5f78787ff26b4
treed38968ac8ab9c9eba8b2d08aeb9e7d9f7bc41626
parentd37c042e20d1e91f86042b8ca47dd70eac3e2b8c
Avoid access invalid memory location huffman_table for index 2..3 (v2)

The size of array huffman_table only 2 in VAHuffmanTableBufferJPEGBaseline
default_huffman_table_param. The index in 2..3 in huffman_table[x] will
be access invalid memory location in for loop that looping 4 times.

Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
(cherry picked from commit c56ebc89d19efdbf879a86ef5f0407ac9aad45af)
test/decode/tinyjpeg.c