[gs-bugs] [Bug 691568] New: closedctd function has a bug
bugzilla-daemon at ghostscript.com
bugzilla-daemon at ghostscript.com
Fri Aug 20 15:15:24 UTC 2010
http://bugs.ghostscript.com/show_bug.cgi?id=691568
Summary: closedctd function has a bug
Product: MuPDF
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P4
Component: fitz
AssignedTo: tor.andersson at artifex.com
ReportedBy: akay at 21cn.com
QAContact: gs-bugs at ghostscript.com
Estimated Hours: 0.0
on file filt_dctd.c
Line 182,
function closedctd(fz_stream *stm)
if (state->init)
jpeg_finish_decompress(&state->cinfo);
state->chain->rp = state->chain->wp - state->cinfo.src->bytes_in_buffer;
jpeg_destroy_decompress(&state->cinfo);
I think this will modify to:
if (state->init)
{
jpeg_finish_decompress(&state->cinfo);
state->chain->rp = state->chain->wp -
state->cinfo.src->bytes_in_buffer;
jpeg_destroy_decompress(&state->cinfo);
}
Because if the state did not init,if you call
jpeg_destroy_decompress(&state->cinfo);
will cause fatal error.
Please check.
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the gs-bugs
mailing list