Your message dated Mon, 12 Nov 2007 11:47:19 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#227259: fixed in knews 1.0b.1-22
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: knews
Version: 1.0b.1-12
Severity: normal

Reading a news article containing null characters will hang knews.
The code assumes this will never happen, but I have encountered
several articles with null characters. One example is:
<[EMAIL PROTECTED]> in nl.auto

The following patch replaces null characters by spaces, thereby
avoiding the problem:

--- knews-1.0b.1/src/server.c.orig      1998-01-09 18:16:22.000000000 +0100
+++ knews-1.0b.1/src/server.c   2004-01-11 21:49:37.000000000 +0100
@@ -299,6 +299,7 @@ int server_write(SERVER *server, char *m
 long server_read_raw(SERVER *server)
 {
     long       n, len, i;
+    char       *p, *end;
 
     n = server->curr_pos + strlen(server->buffer + server->curr_pos);
     len = server->len - n;
@@ -310,8 +311,13 @@ long server_read_raw(SERVER *server)
     }
 
     i = read(server->fd, server->buffer + n, len);
-    if (i >= 0)
-       server->buffer[n + i] = '\0';
+    if (i >= 0) {
+       p = server->buffer + n;
+       end = p + i;
+       *end = '\0';
+       while (p += strlen(p), p < end)
+               *p++ = ' ';     /* replace null characters by space */
+    }
 
     return i;
 }

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux zaphod 2.6.1 #1 SMP Sat Jan 10 11:39:52 CET 2004 i686
Locale: LANG=C, [EMAIL PROTECTED]

Versions of packages knews depends on:
ii  debconf             1.3.22               Debian configuration management sy
ii  libc6               2.3.2.ds1-10         GNU C Library: Shared libraries an
ii  libcompfaceg1       1989.11.11-24        Compress/decompress images for mai
ii  libjpeg62           6b-9                 The Independent JPEG Group's JPEG 
ii  libpng3             1.2.1-1.1.woody.3    PNG library - runtime
ii  sharutils           1:4.2.1-10           shar, unshar, uuencode, uudecode
ii  xlibs               4.3.0-0ds2.0.0woody2 X Window System client libraries
ii  zlib1g              1:1.2.1-3            compression library - runtime

-- debconf information excluded



--- End Message ---
--- Begin Message ---
Source: knews
Source-Version: 1.0b.1-22

We believe that the bug you reported is fixed in the latest version of
knews, which is due to be installed in the Debian FTP archive:

knews_1.0b.1-22.diff.gz
  to pool/main/k/knews/knews_1.0b.1-22.diff.gz
knews_1.0b.1-22.dsc
  to pool/main/k/knews/knews_1.0b.1-22.dsc
knews_1.0b.1-22_i386.deb
  to pool/main/k/knews/knews_1.0b.1-22_i386.deb



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.
Colin Watson <[EMAIL PROTECTED]> (supplier of updated knews 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.7
Date: Mon, 12 Nov 2007 11:02:05 +0000
Source: knews
Binary: knews
Architecture: source i386
Version: 1.0b.1-22
Distribution: unstable
Urgency: low
Maintainer: Colin Watson <[EMAIL PROTECTED]>
Changed-By: Colin Watson <[EMAIL PROTECTED]>
Description: 
 knews      - Graphical threaded news reader
Closes: 227259 414144 424606
Changes: 
 knews (1.0b.1-22) unstable; urgency=low
 .
   * Add Portuguese debconf translation (thanks, Rui Branco;
     closes: #414144).
   * Update Spanish debconf translation (thanks, Carlos Galisteo de Cabo;
     closes: #424606).
   * Drop source-compatibility with woody.
   * Replace null characters in articles with spaces (thanks, Dick
     Streefland; closes: #227259).
   * Update to menu structure from menu 2.1.35.
Files: 
 130baff7e06971a6b1e28730067a1e5f 753 news optional knews_1.0b.1-22.dsc
 e2996b373511e5c11695d6aed7e4d83b 15579 news optional knews_1.0b.1-22.diff.gz
 e2eab7f5118526b2475766fc7ffe82c4 241656 news optional knews_1.0b.1-22_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Colin Watson <[EMAIL PROTECTED]> -- Debian developer

iD8DBQFHODbc9t0zAhD6TNERAux/AJ90GKOmv/04SX2ZR6t9WF9/aE5THgCdH6GX
ctvbrKXrWuadwDuVz22YBos=
=uwsl
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to