DescriptionAllocate m_pCompData when |m_nComponents| is updated.
When |m_nComponents| is changed from loading stream information,
previously allocated memory that depends on |m_nComponents| needes to be freed
and allocated again to enforce memory size consistency.
BUG=409695
R=tsepez@chromium.org
Committed: https://pdfium.googlesource.com/pdfium/+/bb3c1a29348511afdc140cccdf5b1f5d0292794c
Patch Set 1 #Patch Set 2 : re-format #
Total comments: 1
Patch Set 3 : Move AllocCompData into LoadColorInfo #
Total comments: 10
Patch Set 4 : GetDecodeAndMaskarray #
Total comments: 8
Patch Set 5 : check return value #
Total comments: 4
Patch Set 6 : Fix typo #
Messages
Total messages: 12 (1 generated)
|