commit | 6d12d80ae363f47e14cbb830757f91f7c8513dab | [log] [tgz] |
---|---|---|
author | Lei Zhang <thestig@chromium.org> | Tue Sep 18 17:04:37 2018 +0000 |
committer | Lei Zhang <thestig@chromium.org> | Tue Sep 18 17:04:37 2018 +0000 |
tree | 119fcd77c05e0bd695ac90f8b51ff28feb3bc3d2 | |
parent | b6e7d49ad5f3a54b69f70b347bd41108493918b7 [diff] |
M70: Fix a regression in CJBig2_Context::HuffmanAssignCode(). An assignment statement accidentally got removed in https://pdfium-review.googlesource.com/c/pdfium/+/31538. BUG=chromium:880920 Change-Id: Iaff20bd2484cd8bf6dc6a13cbf444cefbd605b25 Reviewed-on: https://pdfium-review.googlesource.com/42250 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> (cherry picked from commit 7a45d5722c7e75bfd9c53b0a2ba1e42a2fcc9626) Reviewed-on: https://pdfium-review.googlesource.com/42710 Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/core/fxcodec/jbig2/JBig2_Context.cpp b/core/fxcodec/jbig2/JBig2_Context.cpp index d019cc1..4656bfa 100644 --- a/core/fxcodec/jbig2/JBig2_Context.cpp +++ b/core/fxcodec/jbig2/JBig2_Context.cpp
@@ -1262,6 +1262,7 @@ std::vector<int> FIRSTCODE(LENMAX + 1); for (uint32_t i = 0; i < NTEMP; ++i) ++LENCOUNT[SBSYMCODES[i].codelen]; + LENCOUNT[0] = 0; for (int i = 1; i <= LENMAX; ++i) { pdfium::base::CheckedNumeric<int> shifted = FIRSTCODE[i - 1];