Bug 1187420. r=drc r=jmuizelaar a=abillings,lizzard
authorTimothy Nikkel <tnikkel@gmail.com>
Thu, 10 Mar 2016 13:23:27 -0600
changeset 323435 d5911159db9e44bd29aeb44cb8356b00840256ac
parent 323434 5c529f1c218f80571ccc93cf1760a3f1a582bacb
child 323436 cc357481aa2bfe4eac8ec0c4c9a65e832a6b1369
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdrc, jmuizelaar, abillings, lizzard
bugs1187420
milestone47.0a2
Bug 1187420. r=drc r=jmuizelaar a=abillings,lizzard MozReview-Commit-ID: Hh0Khqfj8Bf
media/libjpeg/jstdhuff.c
--- a/media/libjpeg/jstdhuff.c
+++ b/media/libjpeg/jstdhuff.c
@@ -36,16 +36,17 @@ add_huff_table (j_common_ptr cinfo,
    */
   nsymbols = 0;
   for (len = 1; len <= 16; len++)
     nsymbols += bits[len];
   if (nsymbols < 1 || nsymbols > 256)
     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;
 }
 
 
 LOCAL(void)
 std_huff_tables (j_common_ptr cinfo)