Fix #86: gdImageScale segfaults with most interpolation types
Chris Reuter
Branch: suetanvil/gd-libgd:master
Branch: libgd/gd-libgd:master
Merged
Merged pull request
Merged in suetanvil/gd-libgd (pull request #11)
Merged in suetanvil/gd-libgd (pull request #11)
This fixes bug #86. The problem is in gdImageScaleTwoPass(); it was creating a temporary intermediate gdImage and not setting the interpolation field. Later on, something would try to invoke tmp_im->interpolation (which was NULL) as a function and causing a segfault.