backend: Fixed memory corruption bug in the cubic resampler.