Fixed memory overrun bug in gdImageScaleTwoPass

Merged
#12 · Created  · Last updated

Merged pull request

Merged in suetanvil/gd-libgd/suetanvil (pull request #12)

3c5c639·Author: ·Closed by: ·2013-09-25

Description

_gdContributionsCalc() would compute a window size and then adjust the left and right positions of the window to make a window within that size. However, it was storing the values in the struct before it made the adjustment, causing the rescale operation to read past the end of the array of weights. This change fixes that.

0 attachments

0 comments

Loading commits...