[cups.general] Circular loop codes
Michael Sweet
msweet at apple.com
Thu Aug 2 09:32:13 PDT 2012
What version of CUPS?
Current CUPS does not include any GIF loading code anymore, and I know we've fixed a few issues like this in the past before handing it over the the Linux Foundation...
On Aug 2, 2012, at 7:55 AM, bharadwaj <bharadwaj19apr at gmail.com> wrote:
> Hi,
>
> else if (fresh)
> {
> fresh = 0;
>
> do
> {
> firstcode = oldcode = gif_get_code(fp, code_size, 0);
> }
> while (firstcode == clear_code);
>
> return (firstcode & 255);
> }
>
> In do-while should it be firstcode == clear_code >=. Since for one of the files which has clear_code=32. In first iteration i get 32, in 2nd iteration value is 44. Which is assigned in the table for entry 34. On continuing i get the table entries as
>
> table[0][34] 44
> table[0][35] 34
> table[0][36] 35
> table[0][37] 36
> table[0][38] 37
> table[0][39] 38
> table[0][40] 39
> table[0][41] 40
> table[0][42] 41
> table[0][43] 42
> table[0][44] 43
>
> and resulting in a loop, and stack overflow.
>
>
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups
_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
More information about the cups
mailing list