Your message dated Sat, 07 Jul 2018 14:16:57 +0000
with message-id <e1fbo1b-0008fc...@fasolo.debian.org>
and subject line Bug#878322: fixed in ax25-tools 0.0.10-rc4-1+deb9u1
has caused the Debian Bug report #878322,
regarding ax25-tools: Various tools segfault when run
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.)


-- 
878322: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878322
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: ax25-tools
Version: 0.0.10-rc4-1
Severity: serious
Tags: upstream patch

Hi,
As discussed on IRC, various tools in ax25-tools segfault when run. For
example:

> $ /usr/sbin/kissnetd -p 5
> kissnetd V 1.5 by Frederic RIBLE F1OAT - ATEPRA FPAC/Linux Project
> [1]    22672 segmentation fault  /usr/sbin/kissnetd -p 5

This because the prototype for ptsname is not available, so it
implicitly returns an int, which gets cast back to a pointer, truncating
the return value. The attached patch fixes this by defining the relevant
feature macros to their required values so ptsname's prototype is
declared.

Regards,
James
--- a/kiss/kissattach.c
+++ b/kiss/kissattach.c
@@ -1,5 +1,6 @@
+#define _DEFAULT_SOURCE
+#define _XOPEN_SOURCE 500
 #include <stdio.h>
-#define __USE_XOPEN
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
--- a/kiss/kissnetd.c
+++ b/kiss/kissnetd.c
@@ -9,8 +9,9 @@
  * F1OAT 960804 - Frederic RIBLE
  */
  
+#define _DEFAULT_SOURCE
+#define _XOPEN_SOURCE 500
 #include <stdio.h>
-#define __USE_XOPEN
 #include <stdlib.h>
 #include <sys/time.h>
 #include <sys/types.h>
--- a/kiss/mkiss.c
+++ b/kiss/mkiss.c
@@ -37,8 +37,9 @@
  * 1.08 xx/xx/99 Tom Mazouch - Adjustable poll interval
  */
 
+#define _DEFAULT_SOURCE
+#define _XOPEN_SOURCE 500
 #include <stdio.h>
-#define __USE_XOPEN
 #include <string.h>
 #include <errno.h>
 #include <stdlib.h>
--- a/kiss/net2kiss.c
+++ b/kiss/net2kiss.c
@@ -30,8 +30,9 @@
 
 /*****************************************************************************/
 
+#define _DEFAULT_SOURCE
+#define _XOPEN_SOURCE 500
 #include <stdio.h>
-#define __USE_XOPEN
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/time.h>
--- a/6pack/m6pack.c
+++ b/6pack/m6pack.c
@@ -33,8 +33,9 @@
  *********************************************************************
  */
 
+#define _DEFAULT_SOURCE
+#define _XOPEN_SOURCE 500
 #include <stdio.h>
-#define __USE_XOPEN
 #include <string.h>
 #include <errno.h>
 #include <stdlib.h>

--- End Message ---
--- Begin Message ---
Source: ax25-tools
Source-Version: 0.0.10-rc4-1+deb9u1

We believe that the bug you reported is fixed in the latest version of
ax25-tools, 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 878...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adrian Bunk <b...@debian.org> (supplier of updated ax25-tools 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...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 27 Feb 2018 20:11:05 +0200
Source: ax25-tools
Binary: ax25-tools ax25-xtools
Architecture: source
Version: 0.0.10-rc4-1+deb9u1
Distribution: stretch
Urgency: medium
Maintainer: Debian Hamradio Maintainers <debian-h...@lists.debian.org>
Changed-By: Adrian Bunk <b...@debian.org>
Description:
 ax25-tools - tools for AX.25 interface configuration
 ax25-xtools - tools for AX.25 interface configuration -- X11-based
Closes: 878322
Changes:
 ax25-tools (0.0.10-rc4-1+deb9u1) stretch; urgency=medium
 .
   * Non-maintainer upload.
   * Add patch 02-ptsname-prototype.patch to fix segfault at runtime
     - Closes: #878322
   * Updated 01-spelling-fixes.patch to account for other spelling errors
Checksums-Sha1:
 16b92ccc88aed5be6229634922ac6c9f8c916e72 2127 
ax25-tools_0.0.10-rc4-1+deb9u1.dsc
 be27e91d498ce379d5e75ff2ec6016b6fdba711c 8668 
ax25-tools_0.0.10-rc4-1+deb9u1.debian.tar.xz
Checksums-Sha256:
 6b92939d0bc95e897aea5f998f02a7899e018035a3b32ac4b631220db9b56630 2127 
ax25-tools_0.0.10-rc4-1+deb9u1.dsc
 abbb31359601c31de983b562d712a47e2c130a193d210eca233b9596a89e7a27 8668 
ax25-tools_0.0.10-rc4-1+deb9u1.debian.tar.xz
Files:
 7ce26ec0c2280cb084059c690b42de56 2127 hamradio optional 
ax25-tools_0.0.10-rc4-1+deb9u1.dsc
 8f7712d66e0613b989cc38fdd0430e6d 8668 hamradio optional 
ax25-tools_0.0.10-rc4-1+deb9u1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOvp1f6xuoR0v9F3wiNJCh6LYmLEFAlqVpO0ACgkQiNJCh6LY
mLETTxAAwUnbWy0gNLnll9og9KiKX4blUeSuupk6M+Y7StPKTYYLxaIKJQPG2UuA
EvNW3gEz90KSN/bzhEQRw/zoq2HF3CtOAPM3sDd6BuZMxngDl0+yryhvTzLkVrOe
BHp+zX6Ro5iN1sTk2QV1zr7D4FRFmj6ETXfB9FZjFAjvOc/NpzjIR/DBsLHq2eAM
OxEfgqQ6NpFsFz76RML+daWQUXxOROJcM+0ppKOtW3GEFlGmK8tfqUx3rjfQJdYM
yPi4wNWto09+8mkJgOrV3q+giYdqIeuXxj0fmCZjDLoUZigiKdKRFspBe4Kh2NeN
omE/3PaHtY2+pvQBb7MZ9suVspTzqBEvUc8vE7wK+nJsClwO0yvDeqRxHAQC/DpV
Fmla/S1lo1LwWpMg6pcjZgaMniyjR5UxEXxZ5vEjrlvQ6FvdP7gc9rpz24JYl1bm
NDsWWFqpg9IiQnXIPlDUc8A+S+xP47as6l9HLF2b4rTAjjxyH4Nqwjvxxy+WVoQ/
jK0TTsaMHdhpGe96a09gM2n5Kl5o2CmkqEtgIurFRj/lX0woYye+VEok5ohgszAH
ONJik9oaP9hoivxrYN6qGMwEeyeal+olI7rhaWM0Df3fFeUKk/chwVuSZRBXmSHE
lCls6q7YcPEsfZ+J0irwUxksznnUdD1DMSNc/7NLav6A6CaJ0ew=
=itWd
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to