Test: /ext/gd/tests/bug73549.phpt - Version 5.6.35        

Bug #73549 Use after free when stream is passed to imagepng
Submitted: 2016-11-16 21:51:38 Modified: 2016-12-01 21:36:44
From: marceloje Assigned: cmb
Status: Closed Package: GD related
PHP Version: 5.6.28 OS: Linux x86_64

There are 3 different diffs reported by users for this test.

Count Diff
2 (50%)
001+ Fatal error: Call to undefined function imagepng() in %s/bug73549.php on line 4
001- bool(true)
002- resource(%d) of type (stream)
003- ===DONE===
1 (25%)
001+ libpng warning: Application was compiled with png.h from libpng-1.5.13
002+ libpng warning: Application is running with png.c from libpng-1.2.46
003+
001- bool(true)
002- resource(%d) of type (stream)
003- ===DONE===
004+ Warning: imagepng(): gd-png: fatal libpng error: Incompatible libpng version in application and library in %s/bug73549.php on line 4
1 (25%)
001+ libpng warning: Application built with libpng-1.6.34 but running with 1.5.13
002+
003+ Warning: imagepng(): gd-png error: cannot allocate libpng main struct
004+ in %s/bug73549.php on line 4