254609
diff --git a/jdmarker.c b/jdmarker.c
254609
index 77f7274..737a17c 100644
254609
--- a/jdmarker.c
254609
+++ b/jdmarker.c
254609
@@ -465,6 +465,7 @@ get_dht (j_decompress_ptr cinfo)
254609
     for (i = 0; i < count; i++)
254609
       INPUT_BYTE(cinfo, huffval[i], return FALSE);
254609
 
254609
+    MEMZERO(&huffval[count], (256 - count) * SIZEOF(UINT8));
254609
     length -= count;
254609
 
254609
     if (index & 0x10) {		/* AC table definition */