diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-01-16 21:18:49 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-01-16 21:18:49 +0000 |
commit | 41092dbd8afad4bf913922923c0abaa45fb29ded (patch) | |
tree | 80b5199f5a745d710259953b482c2c8b735355c5 /ext/pdf | |
parent | 93481ce9b88f9bd025eab01df5083164c4ec9f11 (diff) | |
download | php-git-41092dbd8afad4bf913922923c0abaa45fb29ded.tar.gz |
Fixed bug #21651 (crash in pdf_open_memory_image() when inserting a
non truecolor image).
Diffstat (limited to 'ext/pdf')
-rw-r--r-- | ext/pdf/pdf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c index ceb63407cf..569bd49a4e 100644 --- a/ext/pdf/pdf.c +++ b/ext/pdf/pdf.c @@ -1979,7 +1979,7 @@ PHP_FUNCTION(pdf_open_memory_image) } else { #endif if (im->pixels && gdImageBoundsSafe(im, j, i)) { - color = im->pixels[im->sy][im->sx]; + color = im->pixels[i][j]; *ptr++ = im->red[color]; *ptr++ = im->green[color]; *ptr++ = im->blue[color]; |