the real solution -- Re: libpng bug


Subject: the real solution -- Re: libpng bug
From: Justin Bradford (justin@ukans.edu)
Date: Thu Apr 13 2000 - 15:57:26 CDT


> In ut_png.cpp we tell libpng to call _png_read(), one of our functions, to
> get input. However, _png_read() contains the following lines
>
> struct _bb* p = (struct _bb*) png_ptr->io_ptr;
> const UT_Byte* pBytes = p->pBB->getPointer(0);

We should not be accessing png_ptr->io_ptr directly. The header changed
between versions.

Instead, we should do:

struct _bb* p = (struct _bb*) png_get_io_ptr(png_ptr);

But, Sam, great job tracking down the problem. With your info, I just had
to dig through the sources and compare stuff.

Justin



This archive was generated by hypermail 2b25 : Thu Apr 13 2000 - 15:57:36 CDT