Fix #86: gdImageScale segfaults with most interpolation types

#11 Merged at de7acbf
Repository
suetanvil
Branch
master
Repository
libgd
Branch
master
Author
  1. Chris Reuter
Reviewers
Description

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.

Comments (0)