[libGD] #75 [Comment added] libGD 2.0.35RC2, GD_GIF_IN.C cannot be less then 0

[email protected] (libGD)
Newsgroups php.gd.bugs
Message-ID <[email protected]>
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#75 - libGD 2.0.35RC2, GD_GIF_IN.C cannot be less then 0
User who did this - Alexey Chupahin (Alexey Chupahin)

----------
> this issue is critical or introduces a bug while loading GIF images, I will delay it

Hi!

I dont know exactly is it does critical, but I know exactly, that the statement 

if ((count = GetDataBlock(fd, &scd->buf[2], ZeroDataBlockP))<= 0)
    scd->done = TRUE;

scd->done = TRUE  operator never will be reached. It is just because of count variable is unsigned (char). So an expression 
with count = ....  is unsigned char and it never be less then 0. So your value "-1" returned from GetDataBlock(..) will be treated as a large value hmmm... 255.

Problem still in CVS.  I've attached a patch against CVS.
----------

There was one or more files attached to this comment.

More information can be found at the following URL:
http://bugs.libgd.org/?do=details&task_id=75#comment194

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.