[libGD] #60 [Comment added] Local palette reading twice
[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#60 - Local palette reading twice
User who did this - Masaaki Sato (m-sato)
----------
FILE *fp = fopen("20070306113217-00000162.gif", "rb");
if (fp == NULL) {
return false;
}
fseek(fp, 0, SEEK_END);
long size = ftell(fp);
char *ptr = new char[size];
fseek(fp, 0, SEEK_SET);
if (fread(ptr, 1, size, fp) != size) {
delete[] ptr;
fclose(fp);
return false;
}
fclose(fp);
gdImagePtr p = gdImageCreateFromGifPtr(size, ptr);
gdImageDestroy(p);
----------
More information can be found at the following URL:
http://bugs.libgd.org/?do=details&task_id=60#comment161
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.