mirror of
https://github.com/php/php-src.git
synced 2024-12-24 09:18:17 +08:00
1b5543b8ab
Instead of rolling our own bounds check we use clip_1d() as it's done
in gdImageLine() and in external libgd. We must not pass the image
width and height, respectively, but rather the largest ordinate value
that is allowed to be accessed, i.e. width-1 and height-1,
respectively.
(cherry picked from commit 6499581af7
)
118 B
10x10px
118 B
10x10px