Your message dated Fri, 30 Nov 2012 15:32:54 +0000
with message-id <e1tesae-0007rw...@franck.debian.org>
and subject line Bug#694748: fixed in php-ps 1.3.7-1
has caused the Debian Bug report #694748,
regarding php5-ps segmentation fault on ps_setfont (64bit)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
694748: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=694748
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: php5-ps
Version: 1.3.6-7
Severity: grave
Tags: patch upstream
Justification: renders package unusable

Forwarding Ubuntu bug report:

http://pad.lv/1024207

This was seen on Ubuntu and FreeBSD systems. Upstream has not acknowledged
the bug (perhaps dead upstream?)

-- System Information:
Debian Release: wheezy/sid
  APT prefers quantal-updates
  APT policy: (500, 'quantal-updates'), (500, 'quantal-security'), (500, 
'quantal')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.5.0-18-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- a/ps.c	2007-11-27 03:40:14.000000000 -0600
+++ b/ps.c	2012-07-13 01:35:16.815241282 -0500
@@ -518,7 +518,8 @@
 {
 	zval *zps;
 	char *text;
-	int text_len, len;
+	int text_len;
+        long len;
 	PSDoc *ps;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsl", &zps, &text, &text_len, &len)) {
@@ -527,7 +528,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	PS_show2(ps, text, len);
+	PS_show2(ps, text, (int)len);
 
 	RETURN_TRUE;
 }
@@ -561,7 +562,8 @@
 {
 	zval *zps;
 	char *text;
-	int text_len, len;
+	int text_len;
+        long len;
 	double x, y;
 	PSDoc *ps;
 
@@ -571,7 +573,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	PS_show_xy2(ps, text, len, (float) x, (float) y);
+	PS_show_xy2(ps, text, (int)len, (float) x, (float) y);
 
 	RETURN_TRUE;
 }
@@ -611,7 +613,7 @@
 PHP_FUNCTION(ps_setfont) {
 	zval *zps;
 	double fontsize;
-	int font;
+	long font;
 	PSDoc *ps;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rld", &zps, &font, &fontsize)) {
@@ -620,7 +622,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	PS_setfont(ps, font, (float) fontsize);
+	PS_setfont(ps, (int)font, (float) fontsize);
 
 	RETURN_TRUE;
 }
@@ -691,7 +693,7 @@
 PHP_FUNCTION(ps_setoverprintmode)
 {
 	zval *zps;
-	int mode;
+	long mode;
 	PSDoc *ps;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &zps, &mode)) {
@@ -700,7 +702,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	PS_setoverprintmode(ps, mode);
+	PS_setoverprintmode(ps, (int)mode);
 
 	RETURN_TRUE;
 }
@@ -944,7 +946,7 @@
 PHP_FUNCTION(ps_setlinejoin) 
 {
 	zval *zps;
-	int value;
+	long value;
 	PSDoc *ps;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &zps, &value)) {
@@ -953,7 +955,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	PS_setlinejoin(ps, value);
+	PS_setlinejoin(ps, (int)value);
 
 	RETURN_TRUE;
 }
@@ -964,7 +966,7 @@
 PHP_FUNCTION(ps_setlinecap) 
 {
 	zval *zps;
-	int value;
+	long value;
 	PSDoc *ps;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &zps, &value)) {
@@ -973,7 +975,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	PS_setlinecap(ps, value);
+	PS_setlinecap(ps, (int)value);
 
 	RETURN_TRUE;
 }
@@ -1091,7 +1093,7 @@
 	char *text;
 	int text_len;
 	double width, size = 0.0;
-	int font = 0;
+	long font = 0;
 	PSDoc *ps;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs|ld", &zps, &text, &text_len, &font, &size)) {
@@ -1100,7 +1102,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	width = (double) PS_stringwidth2(ps, text, text_len, font, (float)size);
+	width = (double) PS_stringwidth2(ps, text, text_len, (int)font, (float)size);
 
 	RETURN_DOUBLE((double) width);
 }
@@ -1114,7 +1116,7 @@
 	char *text;
 	int text_len;
 	double width, size = 0.0;
-	int font = 0;
+	long font = 0;
 	float dimension[3];
 	PSDoc *ps;
 
@@ -1124,7 +1126,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	width = (double) PS_string_geometry(ps, text, text_len, font, (float) size, dimension);
+	width = (double) PS_string_geometry(ps, text, text_len, (int)font, (float) size, dimension);
 
 	array_init(return_value);
 	add_assoc_double(return_value, "width", (double) dimension[0]);
@@ -1279,7 +1281,7 @@
 	zval *zps;
 	char *text;
 	int text_len;
-	int parentid = 0, open = 0, id;
+	long parentid = 0, open = 0, id;
 	PSDoc *ps;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs|ll", &zps, &text, &text_len, &parentid, &open)) {
@@ -1289,7 +1291,7 @@
 	PSDOC_FROM_ZVAL(ps, &zps);
 
 	/* will never return 0 */
-	id = PS_add_bookmark(ps, text, parentid, open);
+	id = PS_add_bookmark(ps, text, (int)parentid, (int)open);
 
 	RETURN_LONG(id);
 }
@@ -1302,7 +1304,7 @@
 	zval *zps;
 	char *type, *filename, *image, *stringparam = NULL;
 	int type_len, filename_len, stringparam_len;
-	int imageid, intparam = 0;
+	long imageid, intparam = 0;
 	PSDoc *ps;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss|sl", &zps, &type, &type_len, &filename, &filename_len, &stringparam, &stringparam_len, &intparam)) {
@@ -1317,7 +1319,7 @@
 	image = filename;
 #endif
 
-	imageid = PS_open_image_file(ps, type, image, stringparam, intparam);
+	imageid = PS_open_image_file(ps, type, image, stringparam, (int)intparam);
 
 	if (imageid == 0) {
 		RETURN_FALSE;
@@ -1399,7 +1401,7 @@
 PHP_FUNCTION(ps_close_image)
 {
 	zval *zps;
-	int imageid;
+	long imageid;
 	PSDoc *ps;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &zps, &imageid)) {
@@ -1408,7 +1410,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	PS_close_image(ps, imageid);
+	PS_close_image(ps, (int)imageid);
 }
 /* }}} */
 
@@ -1417,7 +1419,7 @@
 PHP_FUNCTION(ps_place_image)
 {
 	zval *zps;
-	int imageid;
+	long imageid;
 	double x, y, scale;
 	PSDoc *ps;
 
@@ -1427,7 +1429,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	PS_place_image(ps, imageid, (float) x, (float) y, (float) scale);
+	PS_place_image(ps, (int)imageid, (float) x, (float) y, (float) scale);
 
 	RETURN_TRUE;
 }
@@ -1461,7 +1463,7 @@
 PHP_FUNCTION(ps_shfill)
 {
 	zval *zps;
-	int shadingid;
+	long shadingid;
 	PSDoc *ps;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &zps, &shadingid)) {
@@ -1470,7 +1472,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	PS_shfill(ps, shadingid);
+	PS_shfill(ps, (int)shadingid);
 
 	RETURN_TRUE;
 }
@@ -1481,7 +1483,7 @@
 PHP_FUNCTION(ps_shading_pattern)
 {
 	zval *zps;
-	int patternid, shadingid;
+	long patternid, shadingid;
 	char *optlist;
 	int olen;
 	PSDoc *ps;
@@ -1492,7 +1494,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	patternid = PS_shading_pattern(ps, shadingid, optlist);
+	patternid = PS_shading_pattern(ps, (int)shadingid, optlist);
 
 	RETURN_LONG(patternid);
 }
@@ -1528,7 +1530,7 @@
 	double llx, lly, urx, ury;
 	char *filename, *dest;
 	int filename_len, dest_len;
-	int page;
+	long page;
 	PSDoc *ps;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rddddsls", &zps, &llx, &lly, &urx, &ury, &filename, &filename_len, &page, &dest, &dest_len)) {
@@ -1537,7 +1539,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	PS_add_pdflink(ps, (float) llx, (float) lly, (float) urx, (float) ury, filename, page, dest);
+	PS_add_pdflink(ps, (float) llx, (float) lly, (float) urx, (float) ury, filename, (int)page, dest);
 
 	RETURN_TRUE;
 }
@@ -1818,8 +1820,8 @@
 	zval *zps;
 	char *type, *params, *source, *data;
 	int type_len, params_len, source_len, data_len;
-	int length, width, height, components, bpc;
-	int imageid;
+	long length, width, height, components, bpc;
+	long imageid;
 	char *image;
 	PSDoc *ps;
 
@@ -1835,7 +1837,7 @@
 	image = data;
 #endif
 
-	imageid = PS_open_image(ps, type, source, image, length, width, height, components, bpc, params);
+	imageid = PS_open_image(ps, type, source, image, (int)length, (int)width, (int)height, (int)components, (int)bpc, params);
 
 	RETURN_LONG(imageid);
 }
@@ -1900,7 +1902,7 @@
 	double llx, lly, urx, ury;
 	char *contents, *title, *icon;
 	int contents_len, title_len, icon_len;
-	int open;
+	long open;
 	PSDoc *ps;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rddddsssl", &zps, &llx, &lly, &urx, &ury, &contents, &contents_len, &title, &title_len, &icon, &icon_len, &open)) {
@@ -1909,7 +1911,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	PS_add_note(ps, (float) llx, (float) lly, (float) urx, (float) ury, contents, title, icon, open);
+	PS_add_note(ps, (float) llx, (float) lly, (float) urx, (float) ury, contents, title, icon, (int)open);
 
 	RETURN_TRUE;
 }
@@ -1922,7 +1924,7 @@
 	double llx, lly, urx, ury;
 	char *dest;
 	int dest_len;
-	int page;
+	long page;
 	PSDoc *ps;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rddddls", &zps, &llx, &lly, &urx, &ury, &page, &dest, &dest_len)) {
@@ -1931,7 +1933,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	PS_add_locallink(ps, (float) llx, (float) lly, (float) urx, (float) ury, page, dest);
+	PS_add_locallink(ps, (float) llx, (float) lly, (float) urx, (float) ury, (int)page, dest);
 
 	RETURN_TRUE;
 }
@@ -1985,7 +1987,7 @@
 	char *spotname;
 	int spotname_len;
 	int spot;
-	int reserved = 0;
+	long reserved = 0;
 	PSDoc *ps;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs|l", &zps, &spotname, &spotname_len, &reserved)) {
@@ -1994,7 +1996,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	spot = PS_makespotcolor(ps, spotname, reserved);
+	spot = PS_makespotcolor(ps, spotname, (int)reserved);
 
 	RETURN_LONG(spot);
 } /* }}} */
@@ -2039,7 +2041,7 @@
  * Add an existing image as thumbnail for the current page. */
 PHP_FUNCTION(ps_add_thumbnail) {
 	zval *zps;
-	int imageid;
+	long imageid;
 	PSDoc *ps;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &zps, &imageid)) {
@@ -2048,7 +2050,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	PS_add_thumbnail(ps, imageid);
+	PS_add_thumbnail(ps, (int)imageid);
 
 	RETURN_TRUE;
 } /* }}} */
@@ -2078,7 +2080,7 @@
 {
 	zval *zps;
 	double width, height, xstep, ystep;
-	int painttype;
+	long painttype;
 	PSDoc *ps;
 	int patid;
 
@@ -2263,8 +2265,8 @@
 	PSDoc *ps;
 	char *glyphname1, *glyphname2;
 	int glen1, glen2;
-	int font = 0;
-	int kern = 0;
+	long font = 0;
+	long kern = 0;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rssl|l", &zps, &glyphname1, &glen1, &glyphname2, &glen2, &kern, &font)) {
 		return;
@@ -2272,7 +2274,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	PS_add_kerning(ps, font, glyphname1, glyphname2, kern);
+	PS_add_kerning(ps, (int)font, glyphname1, glyphname2, (int)kern);
 
 	RETURN_TRUE;
 }
@@ -2286,7 +2288,7 @@
 	PSDoc *ps;
 	char *glyphname1, *glyphname2, *glyphname3;
 	int glen1, glen2, glen3;
-	int font = 0;
+	long font = 0;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsss|l", &zps, &glyphname1, &glen1, &glyphname2, &glen2, &glyphname3, &glen3, &font)) {
 		return;
@@ -2294,7 +2296,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	PS_add_ligature(ps, font, glyphname1, glyphname2, glyphname3);
+	PS_add_ligature(ps, (int)font, glyphname1, glyphname2, glyphname3);
 
 	RETURN_TRUE;
 }
@@ -2340,7 +2342,7 @@
    Output single char by its value in the font encoding */
 PHP_FUNCTION(ps_symbol) {
 	zval *zps;
-	int ord;
+	long ord;
 	PSDoc *ps;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &zps, &ord)) {
@@ -2360,9 +2362,9 @@
 PHP_FUNCTION(ps_symbol_width)
 {
 	zval *zps;
-	int ord;
+	long ord;
 	double width, size = 0.0;
-	int font = 0;
+	long font = 0;
 	PSDoc *ps;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl|ld", &zps, &ord, &font, &size)) {
@@ -2371,7 +2373,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	width = (double) PS_symbol_width(ps, (unsigned char) ord, font, (float) size);
+	width = (double) PS_symbol_width(ps, (unsigned char) ord, (int)font, (float) size);
 
 	RETURN_DOUBLE(width);
 }
@@ -2382,8 +2384,8 @@
 PHP_FUNCTION(ps_symbol_name)
 {
 	zval *zps;
-	int ord;
-	int font = 0;
+	long ord;
+	long font = 0;
 	char glyphname[50];
 	PSDoc *ps;
 
@@ -2393,7 +2395,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	PS_symbol_name(ps, (unsigned char) ord, font, glyphname, 50);
+	PS_symbol_name(ps, (unsigned char) ord, (int)font, glyphname, 50);
 
 	RETURN_STRING(glyphname, 1);
 }
@@ -2426,7 +2428,7 @@
 	int text_len;
 	double width;
 	PSDoc *ps;
-	int font;
+	long font;
 	double size;
 
 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs|ld", &zps, &text, &text_len, &font, &size)) {
@@ -2435,7 +2437,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	width = PS_glyph_width(ps, text, font, size);
+	width = PS_glyph_width(ps, text, (int)font, size);
 
 	RETURN_DOUBLE(width);
 
@@ -2446,7 +2448,7 @@
 PHP_FUNCTION(ps_glyph_list) {
 	zval *zps;
 	PSDoc *ps;
-	int font;
+	long font;
 	char **glyphlist;
 	int i, listlen;
 
@@ -2456,7 +2458,7 @@
 
 	PSDOC_FROM_ZVAL(ps, &zps);
 
-	if(PS_glyph_list(ps, font, &glyphlist, &listlen)) {
+	if(PS_glyph_list(ps, (int)font, &glyphlist, &listlen)) {
 		array_init(return_value);
 		for(i=0; i<listlen; i++) {
 			add_index_string(return_value, i, glyphlist[i], 0);

--- End Message ---
--- Begin Message ---
Source: php-ps
Source-Version: 1.3.7-1

We believe that the bug you reported is fixed in the latest version of
php-ps, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 694...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Uwe Steinmann <u...@steinmann.cx> (supplier of updated php-ps package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 30 Nov 2012 15:36:38 +0100
Source: php-ps
Binary: php5-ps
Architecture: source amd64
Version: 1.3.7-1
Distribution: unstable
Urgency: low
Maintainer: Uwe Steinmann <ste...@debian.org>
Changed-By: Uwe Steinmann <u...@steinmann.cx>
Description: 
 php5-ps    - ps module for PHP 5
Closes: 694748
Changes: 
 php-ps (1.3.7-1) unstable; urgency=low
 .
   * New upstream release
   * do not crash on 64 bit (Closes: #694748)
Checksums-Sha1: 
 5d096a36dc67f71480fd5dbfb43af85b55bf6ee0 1049 php-ps_1.3.7-1.dsc
 b252422cbc7d44e06d4246fcc11f7989a8729a04 634038 php-ps_1.3.7.orig.tar.gz
 86782581ddb0580823d95509ceee6f00a046e72b 7681 php-ps_1.3.7-1.diff.gz
 8297176a471190d7d4e1cca58b9fa5eecb7c7f12 23390 php5-ps_1.3.7-1_amd64.deb
Checksums-Sha256: 
 f9fd726f23bed3b34ab7fae7415aaf80064333cca061e33734f81623d5e907c3 1049 
php-ps_1.3.7-1.dsc
 aa318e2daad1e9efe90c6503e379c67c9b38fde9400723c0b446fd0ddee8f5ed 634038 
php-ps_1.3.7.orig.tar.gz
 e772fc95f6abe153d51be003f8798e4ba0ec50ecdba1fc08cba9f0ad3255544f 7681 
php-ps_1.3.7-1.diff.gz
 84af5b3d7fa4cfa4ec6458feae897bd8c150a124f4fc32e0d63d8c8c9be643be 23390 
php5-ps_1.3.7-1_amd64.deb
Files: 
 e0b94bb5cb4dd5c1a47d9596334aa127 1049 php optional php-ps_1.3.7-1.dsc
 b501aa4375b374b2b07d5e1b80fcaefa 634038 php optional php-ps_1.3.7.orig.tar.gz
 271df60f3046f72b26233ecdfaea5382 7681 php optional php-ps_1.3.7-1.diff.gz
 a41fb258a8be39894c835d1ab00056fb 23390 php optional php5-ps_1.3.7-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlC4xawACgkQih2Zvw18pwHSIgCfc77TgKshiMW1mqppBeQYNPuG
ZBQAoJ0A4eANGumNUn7Yp3AQqbkTkXtv
=NT1V
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to