Bug 891693 - Make sure that huffval gets zeroed before use. r=DRC

This commit is contained in:
Michael Zalewski 2013-11-21 10:48:32 -05:00
parent cba03f3ca4
commit 14ff598f3c

View File

@ -472,6 +472,8 @@ get_dht (j_decompress_ptr cinfo)
for (i = 0; i < count; i++)
INPUT_BYTE(cinfo, huffval[i], return FALSE);
MEMZERO(&huffval[count], (256-count)*SIZEOF(UINT8));
length -= count;
if (index & 0x10) { /* AC table definition */