summaryrefslogtreecommitdiff
path: root/lcms2mt/src/cmsxform.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2022-04-14 18:08:20 +0100
committerRobin Watts <Robin.Watts@artifex.com>2022-04-14 21:02:31 +0100
commit341d69825f9af14ff95f820dcdd9ae2e9c4420a0 (patch)
treee647004180c250153a9d54403738f0dfbffe6bb1 /lcms2mt/src/cmsxform.c
parent9adc7cda128a8494b2657901707bbd94367a125b (diff)
downloadghostpdl-341d69825f9af14ff95f820dcdd9ae2e9c4420a0.tar.gz
Bug 705221: Fix explosion in memory use with given file.
The new PDF interpreter uses the chunk memory manager, rather than the clump based one used by the Postscript based one. Accordingly, it was falling into a bug with this memory manager. Any block larger than a threshold (32768 bytes) is allocated in its own block. On allocation, we figure that block size as including the header we put on the block. On deallocation, we were failing to include that. Accordingly blocks were being seen as large on allocation, and small on deallocation, resulting in them 'falling through the cracks'. This commit fixes that, and tweaks some of the debugging code. The file behaves nicely with this in.
Diffstat (limited to 'lcms2mt/src/cmsxform.c')
0 files changed, 0 insertions, 0 deletions