Your message dated Sat, 13 Oct 2012 16:17:45 +0000
with message-id <[email protected]>
and subject line Bug#690298: fixed in jasper 1.900.1-14
has caused the Debian Bug report #690298,
regarding jasper: FTBFS on hurd-i386
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 [email protected]
immediately.)


-- 
690298: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690298
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: jasper
Version: 1.900.1-12
Severity: important
Tags: patch
User: [email protected]
Usertags: hurd
Control: found -1 1.900.1-13

Hi,

since the introduction of patch 02-fix-filename-buffer-overflow.patch
in -12, jasper fails to compile on GNU/Hurd because of the unconditional
usage of PATH_MAX [1][2].

It seems jasper relies on a fixed-size buffer, so unfortunately the
solution is to create a JAS_PATH_MAX define as PATH_MAX (if found),
or as 4096. This should cause no change on the majority of systems,
which have PATH_MAX, and using a 4096-sized buffer on other systems
(i.e. GNU/Hurd).

Attached there is a fixed version of the patch.

[1] 
https://buildd.debian.org/status/fetch.php?pkg=jasper&arch=hurd-i386&ver=1.900.1-12&stamp=1322433125
[2] 
https://buildd.debian.org/status/fetch.php?pkg=jasper&arch=hurd-i386&ver=1.900.1-13&stamp=1325704965

Thanks,
-- 
Pino
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 jasper (1.900.1-11) unstable; urgency=low
 .
   * Added Multiarch support, thanks to Colin Watson (Closes: #645118)
Author: Roland Stigge <[email protected]>
Bug-Debian: http://bugs.debian.org/645118

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- a/src/libjasper/include/jasper/jas_stream.h
+++ b/src/libjasper/include/jasper/jas_stream.h
@@ -77,6 +77,7 @@
 #include <jasper/jas_config.h>
 
 #include <stdio.h>
+#include <limits.h>
 #if defined(HAVE_FCNTL_H)
 #include <fcntl.h>
 #endif
@@ -99,6 +100,12 @@ extern "C" {
 #define O_BINARY	0
 #endif
 
+#ifdef PATH_MAX
+#define JAS_PATH_MAX PATH_MAX
+#else
+#define JAS_PATH_MAX 4096
+#endif
+
 /*
  * Stream open flags.
  */
@@ -251,7 +258,7 @@ typedef struct {
 typedef struct {
 	int fd;
 	int flags;
-	char pathname[L_tmpnam + 1];
+	char pathname[JAS_PATH_MAX + 1];
 } jas_stream_fileobj_t;
 
 #define	JAS_STREAM_FILEOBJ_DELONCLOSE	0x01

--- End Message ---
--- Begin Message ---
Source: jasper
Source-Version: 1.900.1-14

We believe that the bug you reported is fixed in the latest version of
jasper, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Roland Stigge <[email protected]> (supplier of updated jasper 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 [email protected])


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

Format: 1.8
Date: Sat, 13 Oct 2012 18:06:57 +0200
Source: jasper
Binary: libjasper1 libjasper-dev libjasper-runtime
Architecture: source amd64
Version: 1.900.1-14
Distribution: unstable
Urgency: low
Maintainer: Roland Stigge <[email protected]>
Changed-By: Roland Stigge <[email protected]>
Description: 
 libjasper-dev - Development files for the JasPer JPEG-2000 library
 libjasper-runtime - Programs for manipulating JPEG-2000 files
 libjasper1 - JasPer JPEG-2000 runtime library
Closes: 690298
Changes: 
 jasper (1.900.1-14) unstable; urgency=low
 .
   * Fix FTBFS on Hurd by defining PATH_MAX (Closes: #690298)
     Thanks to Pino Toscano!
Checksums-Sha1: 
 168324f9b016325714fece3925a7a4185a1b7096 1219 jasper_1.900.1-14.dsc
 3e96b1233f83ddd0a8debfed6a49efcc133d7720 31229 jasper_1.900.1-14.debian.tar.gz
 a98c4aa843e8b4d3920e91515842079313e3f70b 159646 libjasper1_1.900.1-14_amd64.deb
 ba353d871e332ffcc7bdfd911860a1a137ac3de5 569794 
libjasper-dev_1.900.1-14_amd64.deb
 ef42f506f26eefbb378a6e6e202108f927d23593 26862 
libjasper-runtime_1.900.1-14_amd64.deb
Checksums-Sha256: 
 9f7ef255a1b0cd1c922e65697f87cb12e46da264b66e7aa0fe41e485d4aac471 1219 
jasper_1.900.1-14.dsc
 3fc75f799e9d75a9108551bceb75e8f445106e703c4d06efcfa5cfbb2a2baeda 31229 
jasper_1.900.1-14.debian.tar.gz
 b9354049b1fdbdfea29f3b80de9e558e3b9216b27450f56fd96adb4f881fd932 159646 
libjasper1_1.900.1-14_amd64.deb
 03024574da47a5f3e36309cde341f4c091ed0a34e98ccc0bc4471a37954fce1a 569794 
libjasper-dev_1.900.1-14_amd64.deb
 03d2da9a6f5a49df8df913c90851c1959150ff0109682c6dba943f088c33695d 26862 
libjasper-runtime_1.900.1-14_amd64.deb
Files: 
 ee9ffc8c6c4b72b75b89417553c817ba 1219 graphics optional jasper_1.900.1-14.dsc
 f5a99146987a3c29c060448ddecb6e7c 31229 graphics optional 
jasper_1.900.1-14.debian.tar.gz
 930a62c2e6c1d6118878b9f980bc57fb 159646 libs optional 
libjasper1_1.900.1-14_amd64.deb
 0e4d4f1bbae624803222d528da0dbd6c 569794 libdevel optional 
libjasper-dev_1.900.1-14_amd64.deb
 26f9dbf239b54b586b5fd7e53e653ccd 26862 graphics optional 
libjasper-runtime_1.900.1-14_amd64.deb

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

iD8DBQFQeZLxcaH/YBv43g8RAlJUAJ93srV7x4u7ugk1JW8D87CKG5YR6ACePKnn
w6wooR4nBg8cttKkMKhqnaE=
=sxqF
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to