[cups.bugs] is this a bug in image.c?
Michael Sweet
msweet at apple.com
Tue Aug 9 21:51:49 PDT 2011
On Aug 9, 2011, at 8:21 PM, leewei wrote:
> hi,
> In a short, when reading filter/image.c , I found that cups_itile_t->pos member is never set except initialize but is read somewhere. I don't have a low-memory computer to process a large-enough picture to confirm my doubt. Do I have any omission ? Thanks...
First, you can set RIPCache to a small number to simulate a low memory situation.
Second, the pos member is initialized to -1 when the tile array is created, and then assigned a position in the file in flush_tile() as needed.
Finally, I recently fixed a bug in this code where cachefile was not initialized to -1, so all cache data would be written to stdin; changes are in trunk...
________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
More information about the cups
mailing list