Re: [GD-DEVEL] gd-png error: setjmp returns error condition 2

[email protected] (Takeshi Abe) Mon, 30 Mar 2009 11:21:35 +0900 (JST)
Newsgroups php.gd.devel
Message-ID <[email protected]>
Hi,

On Fri, 27 Mar 2009 08:40:58 +0100, Per Jessen <[email protected]> wrote:
> I have about 20 core dumps, most of them with a clobbered stack. One of
> them revealed this though:
> 
> http://jessen.ch/files/libgd-bt-core2475.txt
> 
> Not sure if that helps, but ...
> 
> The corrupt PNG was caused by poor decoding of base64 data, which I've
> managed to fix so my immediate problem is gone.
variable gdPngJmpbufStruct in gd_png.c seems to be shared with threads,
which may cause a longjmp call to reach some unintended stack with another setjmp.
I'm not sure if it results in your core dumps though.

Cheers,
-- Takeshi Abe