Blob Blame History Raw
diff --git a/jdmarker.c b/jdmarker.c
index 77f7274..737a17c 100644
--- a/jdmarker.c
+++ b/jdmarker.c
@@ -465,6 +465,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 */