The png_jmpbuf() macro has been in libpng since libpng-1.0.6
(March 2000).

The problem here is not that the macro is missing but that the
application was not using it!

Glenn

On Sun, Sep 11, 2011 at 11:41 PM, Nobuhiro Iwamatsu
<iwama...@nigauri.org> wrote:
> Hi,
>
> Thanks for your comments.
>
> 2011/9/5 Joerg Scheurich aka MUFTI
> <rusmu...@helpdesk.bera.rus.uni-stuttgart.de>:
>> Hi,
>>
>> I am only the "upstream" of white_dune, not the debian maintainer...
>>
>>> I noticed your package FTBFS by libpng 1.5.
>>> I created the patch that revise this problem.
>>> Could you check and apply this patch?
>>
>> ... but instead of using
>>
>>  #if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
>>    if (setjmp(png_jmpbuf((png_ptr))))
>>  #else
>>    if (setjmp(png_ptr->jmpbuf))
>>  #endif
>>
>> i think it would be better to use
>>
>>  /* The png_jmpbuf() macro, used in error handling, became available in
>>   * libpng version 1.0.6.   If you want to be able to run your code with 
>> older
>>   * versions of libpng, you must define the macro yourself (but only if it
>>   * is not already defined by libpng!).
>>   */
>>
>>   #ifndef png_jmpbuf
>>   #define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf)
>>   #endif
>> ...
>>    if (setjmp(png_jmpbuf((png_ptr))))
>>
>> accordingly to
>>
>> http://www.exploit-db.com/exploits/393/
>
> Oh, I see. Thanks!
> I revise the patch of other packages.
>
>>
>> This compiles and runs at least with libpng version 1.5.4/libpng12-dev
>> 1.2.44-1+squeeze1 and will be part of the next development versions of
>> white_dune.
>>
>> BTW: the lines
>>
>>   #ifndef png_jmpbuf
>>   #define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf)
>>   #endif
>>
>> could be also part of a header file belonging to the libpng15-dev,
>> e.g. something like "pnglegacy.h" (cc to Greg Roelofs)
>
> Cool. But current author are Guy Eric Schalnat, Andreas Dilger, John
> Bowler and Glenn Randers-Pehrson.
> Could you cc to current authors?
>
> Best regards,
>  Nobuhiro
>
> --
> Nobuhiro Iwamatsu
>    iwamatsu at {nigauri.org / debian.org}
>    GPG ID: 40AD1FA6
>
>
>
>



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to