- changed status to resolved
gdImageScale segfaults with most interpolation types
Issue #86
resolved
gdImageScale() will cause a segmentation fault unless the interpolation method (set via gdImageSetInterpolationMethod()) is one of GD_BILINEAR_FIXED, GD_BICUBIC_FIXED or GD_NEAREST_NEIGHBOUR.
In addition, setting mode GD_WEIGHTED4 will not segfault but will cause gdImageScale() to return 0.
Attached is a small program which reproduces the bug. It was run under Ubuntu 12.04/i686.
LibGD was compiled with:
./bootstrap.sh
./configure --prefix=/usr/local/ --with-tiff=/usr/lib/ --with-xpm=/usr/lib/
make
sudo make install
Comments (4)
-
-
Merged in suetanvil/gd-libgd (pull request #11)
Fix
#86: gdImageScale segfaults with most interpolation types→ <<cset de7acbfe3e9e>>
-
Fixed bug
#86. https://bitbucket.org/libgd/gd-libgd/issue/86/gdimagescale-segfaults-with-most→ <<cset 4a90e3ff93d1>>
-
Fix bug
#86(segfaults on gdImageScale with most interpolation modes).→ <<cset 6d1275d494f3>>
- Log in to comment
Fix
#86: gdImageScale segfaults with most interpolation typesCode fails to propagate the interpolation type to an intermediate temp image. This change fixes that.
→ <<cset 4c70f57fd992>>