Test: /ext/gd/tests/bug77479.phpt - Version 7.3.12        

Bug #77479 imagewbmp() segfaults with very large images
Submitted: 2019-01-17 12:58:05 Modified: 2019-01-18 20:05:44
From: cmb Assigned: cmb
Status: Closed Package: GD related
PHP Version: 7.1Git-2019-01-17 (Git) OS: *

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

Count Diff
3 (43%)
001+ ** ERROR: process timed out **
001- Warning: imagewbmp():%S product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully
002- in %s on line %d
003-
004- Warning: imagewbmp(): Could not create WBMP in %s on line %d
005- ===DONE===
1 (14%)
004+ Warning: imagewbmp(): Could not create WBMP
005+ in %s/bug77479.php on line 4
004- Warning: imagewbmp(): Could not create WBMP in %s on line %d
1 (14%)
001+ mmap() failed: [12] Cannot allocate memory
001- Warning: imagewbmp():%S product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully
002- in %s on line %d
003+ Termsig=9
004- Warning: imagewbmp(): Could not create WBMP in %s on line %d
005- ===DONE===
1 (14%)
001+ Termsig=9
001- Warning: imagewbmp():%S product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully
002- in %s on line %d
003-
004- Warning: imagewbmp(): Could not create WBMP in %s on line %d
005- ===DONE===
1 (14%)
001+ Killed
001- Warning: imagewbmp():%S product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully
002- in %s on line %d
003+ Termsig=9
004- Warning: imagewbmp(): Could not create WBMP in %s on line %d
005- ===DONE===