Your message dated Fri, 04 Feb 2005 17:02:43 -0500
with message-id <[EMAIL PROTECTED]>
and subject line Bug#284354: fixed in zile 2.0beta10-1
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)

--------------------------------------
Received: (at submit) by bugs.debian.org; 5 Dec 2004 20:12:29 +0000
>From [EMAIL PROTECTED] Sun Dec 05 12:12:29 2004
Return-path: <[EMAIL PROTECTED]>
Received: from pizarro.unex.es [158.49.8.2] (postfix)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1Cb2k8-0007hc-00; Sun, 05 Dec 2004 12:12:28 -0800
Received: from localhost (almendralejo.unex.es [158.49.8.199])
        by pizarro.unex.es (Postfix/MJ-1.08) with ESMTP id 87AC0A1C9E
        for <[EMAIL PROTECTED]>; Sun,  5 Dec 2004 21:12:27 +0100 (CET)
Received: from pizarro.unex.es ([158.49.8.2])
        by localhost (emilio [158.49.17.20]) (amavisd-new, port 10024)
        with ESMTP id 29876-04 for <[EMAIL PROTECTED]>;
        Sun, 5 Dec 2004 21:12:43 +0100 (CET)
Received: from guadiana.unex.es (guadiana.unex.es [158.49.17.23])
        by pizarro.unex.es (Postfix/MJ-1.08) with ESMTP id 05142A1C6F
        for <[EMAIL PROTECTED]>; Sun,  5 Dec 2004 21:12:27 +0100 (CET)
Received: from guadiana.unex.es
        ([158.49.17.23] helo=localhost ident=sanvila)
        by guadiana.unex.es with esmtp (Exim 3.35 #1 (Debian))
        id 1Cb2k6-0000Ul-00
        for <[EMAIL PROTECTED]>; Sun, 05 Dec 2004 21:12:26 +0100
Date: Sun, 5 Dec 2004 21:12:30 +0100 (CET)
From: Santiago Vila <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: zile: Segfaults if TERM does not exist
Message-ID: <[EMAIL PROTECTED]>
X-Debbugs-Cc: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at unex.es
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-11.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
        X_DEBBUGS_CC autolearn=ham version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: zile
Version: 1.7beta3-3
Severity: important
Tags: upstream

When the TERM variable has an invalid value as terminal, zile segfaults:

$ export TERM=foo
$ zile
Segmentation fault

Please forward this bug upstream.

The crash happens because ncurses_misc.c calls newterm but does not
check for errors. Here is a quick and dirty patch which works for me:

diff -ru zile-1.7beta3.orig/src/term_ncurses/ncurses_misc.c 
zile-1.7beta3/src/term_ncurses/ncurses_misc.c
--- zile-1.7beta3.orig/src/term_ncurses/ncurses_misc.c  2004-02-18 
15:29:31.000000000 +0100
+++ zile-1.7beta3/src/term_ncurses/ncurses_misc.c       2004-12-05 
20:56:46.000000000 +0100
@@ -112,7 +112,10 @@
        sigemptyset(&other_sig.sa_mask);
        other_sig.sa_flags = SA_RESTART;
 
-       ncurses_tp->screen = newterm(NULL, stdout, stdin);
+       if ((ncurses_tp->screen = newterm(NULL, stdout, stdin)) == NULL) {
+         fprintf(stderr, "fatal error: cannot open terminal (maybe invalid 
TERM value)\n");
+          exit(1);
+        }
        set_term(ncurses_tp->screen);
 
        ncurses_tp->width = COLS;

---------------------------------------
Received: (at 284354-close) by bugs.debian.org; 4 Feb 2005 22:08:03 +0000
>From [EMAIL PROTECTED] Fri Feb 04 14:08:03 2005
Return-path: <[EMAIL PROTECTED]>
Received: from newraff.debian.org [208.185.25.31] (mail)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CxBcR-0008Im-00; Fri, 04 Feb 2005 14:08:03 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
        id 1CxBXH-0004ET-00; Fri, 04 Feb 2005 17:02:43 -0500
From: Nicolas Duboc <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.55 $
Subject: Bug#284354: fixed in zile 2.0beta10-1
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Fri, 04 Feb 2005 17:02:43 -0500
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Source: zile
Source-Version: 2.0beta10-1

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

zile_2.0beta10-1.diff.gz
  to pool/main/z/zile/zile_2.0beta10-1.diff.gz
zile_2.0beta10-1.dsc
  to pool/main/z/zile/zile_2.0beta10-1.dsc
zile_2.0beta10-1_i386.deb
  to pool/main/z/zile/zile_2.0beta10-1_i386.deb
zile_2.0beta10.orig.tar.gz
  to pool/main/z/zile/zile_2.0beta10.orig.tar.gz



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.
Nicolas Duboc <[EMAIL PROTECTED]> (supplier of updated zile 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: Wed, 2 Feb 2005 15:00:16 +0100
Source: zile
Binary: zile
Architecture: source i386
Version: 2.0beta10-1
Distribution: unstable
Urgency: low
Maintainer: Nicolas Duboc <[EMAIL PROTECTED]>
Changed-By: Nicolas Duboc <[EMAIL PROTECTED]>
Description: 
 zile       - very small emacs-like editor
Closes: 284354 290861
Changes: 
 zile (2.0beta10-1) unstable; urgency=low
 .
   * New upstream release (closes: #290861, #284354).
   * debian/rules: now install THANKS file and no longer TODO and KNOWBUGS.
   * Updated copyright file.
   * Vasprintf patch is now included upstream.
   * README.Debian: documented removed config variables
   * added links in /usr/share/doc/zile for TUTORIAL, FAQ and HELP files
Files: 
 4e797d1f7d240491de96d31a3a324858 582 editors optional zile_2.0beta10-1.dsc
 b8b8c8bd471c454163c4ef98bc388bb7 339534 editors optional 
zile_2.0beta10.orig.tar.gz
 24fee80e7c6fcf777f486e6beef4f7e6 4740 editors optional zile_2.0beta10-1.diff.gz
 93bfd0dca35969358e76e73e1dd373be 101264 editors optional 
zile_2.0beta10-1_i386.deb

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

iD8DBQFCA4l5EAlStfgBp0MRAk/FAJ9ULP6kyMYf8EYAKBMr6IJWkDEBUACeOORC
3atEcs9pDqoqpnVy0xujrgQ=
=Nzv0
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to