Bug #74910 [NEW]: getimagesize on SWC files returns zero width and height
| From: | adam dot rosadzinski at home dot net dot pl | Date: | Wed, 12 Jul 2017 12:17:02 +0000 |
| Subject: | Bug #74910 [NEW]: getimagesize on SWC files returns zero width and height | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-210010@lists.php.net to get a copy of this message | ||
From: adam dot rosadzinski at home dot net dot pl
Operating system: Arch Linux
PHP version: Irrelevant
Package: Zlib related
Bug Type: Bug
Bug description:getimagesize on SWC files returns zero width and height
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 bug report at https://bugs.php.net/bug.php?id=74910&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74910&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74910&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74910&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74910&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74910&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74910&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74910&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74910&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74910&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74910&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74910&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74910&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74910&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74910&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74910&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74910&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74910&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74910&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74910&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74910&r=mysqlcfg