Just a sidenote: I think if this would also be fixed in
gd/gd.c then we could prevent a segfault with the external gd
library too.
On Wed, Oct 16, 2002 at 10:34:45PM -0000, Rasmus Lerdorf wrote :
> rasmus Wed Oct 16 18:34:45 2002 EDT
>
> Modified files:
> /php4/ext/gd/libgd gd_topal.c
> Log:
> Fix for bug #19941
>
>
> Index: php4/ext/gd/libgd/gd_topal.c
> diff -u php4/ext/gd/libgd/gd_topal.c:1.7 php4/ext/gd/libgd/gd_topal.c:1.8
> --- php4/ext/gd/libgd/gd_topal.c:1.7 Sun Oct 6 13:47:50 2002
> +++ php4/ext/gd/libgd/gd_topal.c Wed Oct 16 18:34:44 2002
> @@ -1493,7 +1493,7 @@
> my_cquantize_ptr cquantize = 0;
> int i;
> size_t arraysize;
> - if (!im->trueColor)
> + if (!im->trueColor || colorsWanted <= 0)
> {
> /* Nothing to do! */
> return;
>
>
>
> --
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
<rei_> Derick, while ($xml) $ass->get_new_ideas();
<[James]> Markus: IE on_user_fart()????
-- People doesn't seem to like the new XHTML2 specs :) --
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php