summaryrefslogtreecommitdiff
path: root/ext/gd/libgd/gd_interpolation.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-5.5' into PHP-5.6.23Stanislav Malyshev2016-06-211-0/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: Fixed bug #72446 - Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow update NEWS fix tests fix build Fix bug #72455: Heap Overflow due to integer overflows Fix bug #72434: ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize Fixed ##72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize Fix bug #72407: NULL Pointer Dereference at _gdScaleVert Fix bug #72402: _php_mb_regex_ereg_replace_exec - double free Fix bug #72298 pass2_no_dither out-of-bounds access Fixed #72339 Integer Overflow in _gd2GetHeader() resulting in heap overflow Fix bug #72262 - do not overflow int Fix bug #72400 and #72403 - prevent signed int overflows for string lengths Fix bug #72275: don't allow smart_str to overflow int Fix bug #72340: Double Free Courruption in wddx_deserialize update NEWS Fix #66387: Stack overflow with imagefilltoborder Skip test which is 64bits only 5.5.37 now Conflicts: configure.in ext/mcrypt/mcrypt.c ext/spl/spl_directory.c main/php_version.h
| * Fix bug #72407: NULL Pointer Dereference at _gdScaleVertStanislav Malyshev2016-06-181-0/+3
| |
* | #72337 invalid dimensions can lead to segvPierre Joye2016-06-071-1/+33
| |
* | Merge branch 'PHP-5.5' into PHP-5.6.22Stanislav Malyshev2016-05-241-9/+9
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: Fix memory leak in imagescale() Update NEWS Better fix for bug #72135 Fixed bug #72227: imagescale out-of-bounds read Fix bug #72241: get_icu_value_internal out-of-bounds read Fix bug #72135 - don't create strings with lengths outside int range Add check for string overflow to all string add operations Fix bug #72114 - int/size_t confusion in fread Updated NEWS Fixed bug #71331 - Uninitialized pointer in phar_make_dirstream() Conflicts: Zend/zend_operators.c ext/phar/dirstream.c ext/phar/tests/bug71331.phpt
| * Fix memory leak in imagescale()Stanislav Malyshev2016-05-241-3/+3
| |
| * Fixed bug #72227: imagescale out-of-bounds readStanislav Malyshev2016-05-231-8/+8
| | | | | | | | Ported from https://github.com/libgd/libgd/commit/4f65a3e4eedaffa1efcf9ee1eb08f0b504fbc31a
| * fix the fix for bug #70976 (imagerotate)Remi Collet2016-01-121-2/+2
| |
* | fix the fix for bug #70976 (imagerotate)Remi Collet2016-01-121-2/+2
| |
* | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2016-01-051-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * PHP-5.5: Update NEWS Improve fix for bug #70976 Fixed bug #70661 (Use After Free Vulnerability in WDDX Packet Deserialization) Fixed bug #70741: Session WDDX Packet Deserialization Type Confusion Vulnerability Fixed #70728 Fixed bug #70755: fpm_log.c memory leak and buffer overflow Fix bug #70976: fix boundary check on gdImageRotateInterpolated typofix
| * Improve fix for bug #70976Stanislav Malyshev2015-12-281-1/+1
| |
| * Fix bug #70976: fix boundary check on gdImageRotateInterpolatedStanislav Malyshev2015-12-071-1/+1
| |
* | Fix #66882: imagerotate by -90 degrees truncates image by 1pxChristoph M. Becker2015-07-131-2/+5
| | | | | | | | | | | | | | | | | | Contrary to the external libgd, the bundled libgd doesn't use optimized rotation algorithms for negative square angles. We fix that now. There are other improvements in gdImageRotateInterpolated() in the external libgd. I'll leave them out for now, in the hope that we'll be able to rejoin the two libraries rather soon.
* | Fix #70064: imagescale(..., IMG_BICUBIC) leaks memoryChristoph M. Becker2015-07-131-2/+2
| | | | | | | | | | A temporary image (tmp_im) is created with gdImageTrueColor() and freed with gdFree() instead of gdImageDestroy(). Let's fix that.
* | Fix #69024: imagescale segfault with palette based imageChristoph M. Becker2015-07-131-0/+5
| | | | | | | | | | | | | | | | imagescale(..., IMG_BICUBIC) is not supposed to work with palette images, so we fix that by converting to true color if necessary. Basically the same fix has already been applied to the external libgd[1]. [1] <https://github.com/libgd/libgd/commit/723ea520bed3b5854df87393c687323d3930edf3>
* | Merge branch 'PHP-5.5' into PHP-5.6Remi Collet2014-03-121-6/+6
|\ \ | |/ | | | | | | | | * PHP-5.5: NEWS Fix bug #66887 imagescale - poor quality of scaled image
| * Fix bug #66887 imagescale - poor quality of scaled imageRemi Collet2014-03-121-6/+6
| | | | | | | | | | | | | | Issue with signed char overflow. Upstream fix: https://bitbucket.org/libgd/gd-libgd/commits/4b86e06937bc5ff116be969137f8da9d1a7869d5
* | Merge branch 'PHP-5.5' into PHP-5.6Remi Collet2014-03-121-4/+1
|\ \ | |/ | | | | | | * PHP-5.5: Fixed Bug #66893i imagescale ignore method argument
| * Fixed Bug #66893i imagescale ignore method argumentRemi Collet2014-03-121-4/+1
| | | | | | | | | | | | | | We also have our goto fail; bug. Upstream fix for libgd https://bitbucket.org/libgd/gd-libgd/commits/5b42b1178c37ffd30c9a15733058656be0277da0
* | Merge branch 'PHP-5.5'unknown2013-09-091-1/+4
|\ \ | |/ | | | | | | * PHP-5.5: ensure that the defined interpolation method is used by the generic scaling functions
| * ensure that the defined interpolation method is used by the generic scaling ↵unknown2013-09-091-1/+4
| | | | | | | | functions
* | Merge branch 'PHP-5.5'Pierre Joye2013-06-201-29/+12
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: fix #65070, bgcolor does not use the same format as the input image with imagerotate fix #65070, bgcolor does not use the same format as the input image with imagerotate Fix the spelling of the php_cli_server_http_response_status_code_pair typedef. Change the search in get_status_string() to correctly handle unknown codes. Update git rules (5.5 is stable, 5.3 sec only) skip test for bug #64936 when tokenizer not built Bump version Update credits Merge NEWS from PHP 5.4 branch Reorder NEWS for PHP 5.5.0 final Conflicts: configure.in ext/gd/libgd/gd_interpolation.c main/php_version.h
| * fix #65070, bgcolor does not use the same format as the input image with ↵Pierre Joye2013-06-201-28/+11
| | | | | | | | imagerotate
* | Merge branch 'PHP-5.5'Remi Collet2013-06-031-8/+8
|\ \ | |/ | | | | | | * PHP-5.5: Fixed Bug #64962 imagerotate produce corrupted image
| * Fixed Bug #64962 imagerotate produce corrupted imageRemi Collet2013-06-031-8/+8
| | | | | | | | | | | | See https://bitbucket.org/libgd/gd-libgd/issue/67/problem-with-gdrotate This computation need to be done in signed range.
* | Merge branch 'PHP-5.5'Pierre Joye2013-05-271-6/+6
|\ \ | |/ | | | | | | * PHP-5.5: fix #64898imagerotate is broken with bilinear interpolation
| * fix #64898imagerotate is broken with bilinear interpolationPierre Joye2013-05-271-6/+6
| |
* | Merge branch 'PHP-5.5'Pierre Joye2013-04-301-1/+1
|\ \ | |/ | | | | | | * PHP-5.5: fix #64738, fix implicit type declaration
| * fix #64738, fix implicit type declarationPierre Joye2013-04-301-1/+1
| |
* | Merge branch 'PHP-5.5'Pierre Joye2013-04-091-21/+20
|\ \ | |/ | | | | | | * PHP-5.5: ws and comment for recommended aa method
| * ws and comment for recommended aa methodPierre Joye2013-04-091-21/+31
| |
* | Merge branch 'PHP-5.5'Pierre Joye2013-04-091-10/+11
|\ \ | |/ | | | | | | * PHP-5.5: fix some unitialized values and typo
| * fix some unitialized values and typoPierre Joye2013-04-091-10/+11
| |
* | merging conflict left overPierre Joye2013-03-261-1/+0
| |
* | conflictPierre Joye2013-03-261-0/+4
|\ \ | |/
| * fix regression, take #2 (merge issue due to git 1.8 default setting changes)Pierre Joye2013-03-261-0/+4
| |
| * fix typoStanislav Malyshev2013-03-241-2/+2
| |
* | fix typoStanislav Malyshev2013-03-241-2/+2
| |
* | Merge branch 'PHP-5.5'Pierre Joye2013-03-251-13/+1
|\ \ | |/ | | | | | | * PHP-5.5: remove comments
| * remove commentsPierre Joye2013-03-251-13/+1
| |
* | fix conflictPierre Joye2013-03-241-0/+2
|\ \ | |/
| * fix generic rotation and 90 degrees & multiples rotation, take #2Pierre Joye2013-03-241-38/+14
| |
* | - fix regression (imagerotate_overflow.phpt), fix for all casesPierre Joye2013-03-221-4/+0
| |
* | - fix regression bug24155.phpt and bug39366.phptPierre Joye2013-03-221-38/+14
| |
* | - fix regression (imagerotate_overflow.phpt)Pierre Joye2013-03-221-0/+4
| |
* | - update the comment to match the code/featuresPierre Joye2013-03-201-0/+13
|/
* - add imageaffinematrixget and imagematrixconcatPierre Joye2013-03-201-5/+0
|
* - fix unix buildPierre Joye2013-03-201-1/+1
|
* - add new files for interpolationPierre Joye2013-03-201-0/+2590