Blob Blame Raw
diff --git a/jdmarker.c b/jdmarker.c
index 7b4c12d..381835b 100644
--- a/jdmarker.c
+++ b/jdmarker.c
@@ -471,6 +471,7 @@ 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 */