Skip to content

(/usr/lib/cups/filter/rastertozj) crashed on signal 11.  #35

@DarkoLorger

Description

@DarkoLorger

After installing driver for zj-58 we got issue "(/usr/lib/cups/filter/rastertozj) crashed on signal 11." in log file from cups and no printing of page...
We find next...
Variable is defined like:
unsigned iBytesChunk = 0;
but when program run function
iBytesChunk = compress_buffer(pRasterBuf, iBytesChunk,
tHeader.cupsBytesPerLine, width_bytes);
in some reason it can be negative (or value so big ) and that is the reason for signal 11...
Suggestion and tested solution...
Variable change to
int iBytesChunk = 0;
and after call a function compress_buffer, check the value and correct it
if (iBytesChunk<0)
{
iBytesChunk=(tHeader.cupsBytesPerLine *iBlockHeight)+iBytesChunk;
}
Regards...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions