Fix potentially massive memory leak in CPDF_DIBSource::LoadJpxBitmap().
authorLei Zhang <thestig@chromium.org>
Mon, 8 Jun 2015 20:24:48 +0000 (13:24 -0700)
committerLei Zhang <thestig@chromium.org>
Mon, 8 Jun 2015 20:24:48 +0000 (13:24 -0700)
commit2a824f1c0ed786aed0dd15a0ea60dc90999e2b2c
treed5b0aab1d357e338035597e273052e8ff9d5b66d
parentb7eb193dcec1594952cbc1dca356a40f66724159
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
core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp
core/src/fpdfapi/fpdf_render/render_int.h