summaryrefslogtreecommitdiff
path: root/third_party/libopenjpeg20/README.pdfium
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-01-24 10:41:59 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-01-24 15:59:52 +0000
commit8804940c9a394ff23d641a8cf2efd5300dc87f9e (patch)
treecae02377394fb30fce42cf1c958a2854c65d2a7d /third_party/libopenjpeg20/README.pdfium
parenta478dc5ca23b6f2f609b119cdc6b0336d1471d8c (diff)
downloadpdfium-8804940c9a394ff23d641a8cf2efd5300dc87f9e.tar.xz
Check m_data!=null when adding mct
m_decorrelation_array and m_offset_array can be assigned to l_mct_data, which can be set in opj_j2k_read_mct. In this method, there can be an early true return before allocating m_data but after freeing it. BUG=678342 Change-Id: Id9ea3cc57a9a278deb1540e5db8a94db86018fd6 Reviewed-on: https://pdfium-review.googlesource.com/2350 Commit-Queue: Nicolás Peña <npm@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'third_party/libopenjpeg20/README.pdfium')
-rw-r--r--third_party/libopenjpeg20/README.pdfium1
1 files changed, 1 insertions, 0 deletions
diff --git a/third_party/libopenjpeg20/README.pdfium b/third_party/libopenjpeg20/README.pdfium
index 0f453373f9..093f7fe9bd 100644
--- a/third_party/libopenjpeg20/README.pdfium
+++ b/third_party/libopenjpeg20/README.pdfium
@@ -34,4 +34,5 @@ Local Modifications:
0022-jp2_apply_pclr_overflow.patch: Prevent integer overflow in opj_jp2_apply_pclr.
0023-opj_j2k_read_mct_records.patch: Fix opj_j2k_read to prevent heap-use-after-free.
0024-l_marker_size_check.patch: Return error before overflow in opj_j2k_read_header_procedure.
+0025-opj_j2k_add_mct_null_data.patch: Check m_data != null before trying to read from it.
TODO(thestig): List all the other patches.