Bug #74910 [Opn]: getimagesize on SWC files returns zero width and height

From: Date: Wed, 12 Jul 2017 12:55:43 +0000
Subject: Bug #74910 [Opn]: getimagesize on SWC files returns zero width and height
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210011@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74910&edit=1 ID: 74910 User updated by: adam dot rosadzinski at home dot net dot pl Reported by: adam dot rosadzinski at home dot net dot pl Summary: getimagesize on SWC files returns zero width and height Status: Open Type: Bug Package: Zlib related Operating System: Arch Linux PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Submitted patch was prepared for PHP 7.0 Previous Comments: ------------------------------------------------------------------------ [2017-07-12 12:16:59] adam dot rosadzinski at home dot net dot pl Description: ------------ Since zlib 1.2.9 has been released, changes in uncompress function exposed problem in php_handle_swc function from ext/standard/image.c Before 1.2.9, uncompress didn't touch destBytes value on failure. As of 1.2.9 it will be set to 0. No data will be copied if first uncompress call fails, as len value will be changed to 0 and then used to copy uncompressed data from temporary buffer. Verified on PHP: 5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74910&edit=1

« previous php.bugs (#210011) next »