Skip to content
Snippets Groups Projects
Commit b3e93401 authored by Michael Zalewski's avatar Michael Zalewski
Browse files

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

parent f956bd52
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment