[php-maint] Bug#540367: Acknowledgement (php5-gd: libapache2-mod-php5 > phpinfo > gd ... apache child segfault)

Thomas Drillich th at drillich.com
Sat Aug 8 16:35:16 UTC 2009


this is really a stupid bug, the guy who designed gd_compat.[hc]
expected's that sizeof(int) == sizeof(const char*).
So he declared the gdJpegGetVersionString() as returns int instead of correctly
returning const char*. 
So all 64-bit systems must crash at this point, cause int's are 4bytes and pointer's are 8 bytes on those systems.

mit freundlichem Gruss -- regards

Thomas Drillich
-------------- next part --------------
A non-text attachment was scrubbed...
Name: php-5.3.0-gdJpegGetVersionString_returns_int.patch
Type: text/x-patch
Size: 730 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20090808/f59e20a0/attachment.bin>

More information about the pkg-php-maint mailing list