Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
php5.11086
php-CVE-2016-5766.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php-CVE-2016-5766.patch of Package php5.11086
Index: php-5.6.1/ext/gd/libgd/gd_gd2.c =================================================================== --- php-5.6.1.orig/ext/gd/libgd/gd_gd2.c 2016-06-27 17:21:37.181443015 +0200 +++ php-5.6.1/ext/gd/libgd/gd_gd2.c 2016-06-27 17:21:37.333445571 +0200 @@ -138,11 +138,18 @@ static int _gd2GetHeader(gdIOCtxPtr in, if (gd2_compressed(*fmt)) { nc = (*ncx) * (*ncy); GD2_DBG(php_gd_error("Reading %d chunk index entries", nc)); + if (overflow2(sizeof(t_chunk_info), nc)) { + goto fail1; + } sidx = sizeof(t_chunk_info) * nc; if (sidx <= 0) { goto fail1; } cidx = gdCalloc(sidx, 1); + if (cidx == NULL) { + goto fail1; + } + for (i = 0; i < nc; i++) { if (gdGetInt(&cidx[i].offset, in) != 1) { goto fail1;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor