texlive[43637] Build/source/texk/web2c/pdftexdir:
commits+kakuto at tug.org
commits+kakuto at tug.org
Wed Mar 29 08:07:51 CEST 2017
Revision: 43637
http://tug.org/svn/texlive?view=revision&revision=43637
Author: kakuto
Date: 2017-03-29 08:07:50 +0200 (Wed, 29 Mar 2017)
Log Message:
-----------
pdftexdir/writepng.c: Fix the size of memory to allocate when writing SMask in write_png_rgb_alpha (from David Fifield)
Modified Paths:
--------------
trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
trunk/Build/source/texk/web2c/pdftexdir/writepng.c
Modified: trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/ChangeLog 2017-03-29 00:05:52 UTC (rev 43636)
+++ trunk/Build/source/texk/web2c/pdftexdir/ChangeLog 2017-03-29 06:07:50 UTC (rev 43637)
@@ -1,3 +1,9 @@
+2017-03-29 Akira Kakuto <kakuto at fuk.kindai.ac.jp>
+
+ * writepng.c: Fix the size of memory to allocate when writing
+ SMask in write_png_rgb_alpha. Reported by David Fifield:
+ http://tug.org/pipermail/pdftex/2017-March/009100.html.
+
2017-03-18 Karl Berry <karl at tug.org>
* NEWS,
Modified: trunk/Build/source/texk/web2c/pdftexdir/writepng.c
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/writepng.c 2017-03-29 00:05:52 UTC (rev 43636)
+++ trunk/Build/source/texk/web2c/pdftexdir/writepng.c 2017-03-29 06:07:50 UTC (rev 43637)
@@ -335,7 +335,7 @@
pdfcreateobj(0, 0);
smask_objnum = objptr;
pdf_printf("/SMask %i 0 R\n", (int) smask_objnum);
- smask_size = (png_get_rowbytes(png_ptr(img), png_info(img)) / 2)
+ smask_size = (png_get_rowbytes(png_ptr(img), png_info(img)) / 4)
* png_get_image_height(png_ptr(img), png_info(img));
smask = xtalloc(smask_size, png_byte);
pdfbeginstream();
More information about the tex-live-commits
mailing list