Merge branch '1.4.x'
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 4062c69..68df4c3 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,10 @@
+1.5.0
+=====
+
+[1] Fixed an issue whereby a malformed motion-JPEG frame could cause the "fast
+path" of libjpeg-turbo's Huffman decoder to read from uninitialized memory.
+
+
 1.5 beta1
 =========
 
diff --git a/jstdhuff.c b/jstdhuff.c
index cbdf61c..e202e8e 100644
--- a/jstdhuff.c
+++ b/jstdhuff.c
@@ -42,6 +42,7 @@
     ERREXIT(cinfo, JERR_BAD_HUFF_TABLE);
 
   MEMCOPY((*htblptr)->huffval, val, nsymbols * sizeof(UINT8));
+  MEMZERO(&((*htblptr)->huffval[nsymbols]), (256 - nsymbols) * sizeof(UINT8));
 
   /* Initialize sent_table FALSE so table will be written to JPEG file. */
   (*htblptr)->sent_table = FALSE;