Merge to XFA: Fix potentially massive memory leak in CPDF_DIBSource::LoadJpxBitmap().
authorLei Zhang <thestig@chromium.org>
Mon, 8 Jun 2015 20:59:58 +0000 (13:59 -0700)
committerLei Zhang <thestig@chromium.org>
Mon, 8 Jun 2015 20:59:58 +0000 (13:59 -0700)
commitb69545dd059b8a5bb3695969e622462559c97276
treec555f6c3e77742688b132bc9b05208ed54f45add
parent64adf195e2c1da338567220d3bd1b45861f79ee2
Merge to XFA: Fix potentially massive memory leak in CPDF_DIBSource::LoadJpxBitmap().

Leaks can happen in several places. For this particular bug, it happens
when there is a colorspace component count mismatch.

BUG=497191
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1153633009

(cherry picked from commit 2a824f1c0ed786aed0dd15a0ea60dc90999e2b2c)

Review URL: https://codereview.chromium.org/1168833002
core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp
core/src/fpdfapi/fpdf_render/render_int.h