Your message dated Sat, 03 Dec 2005 07:47:04 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#338731: fixed in ydpdict 0.65-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; 12 Nov 2005 11:38:17 +0000
>From [EMAIL PROTECTED] Sat Nov 12 03:38:17 2005
Return-path: <[EMAIL PROTECTED]>
Received: from mx2.go2.pl ([193.17.41.42] helo=poczta.o2.pl)
        by spohr.debian.org with esmtp (Exim 4.50)
        id 1EatYl-0006tJ-KL
        for [EMAIL PROTECTED]; Sat, 12 Nov 2005 03:28:39 -0800
Received: from localhost (chello212186156216.chello.pl [212.186.156.216])
        (using TLSv1 with cipher AES256-SHA (256/256 bits))
        (No client certificate requested)
        by poczta.o2.pl (Postfix) with ESMTP id 082047480A5;
        Sat, 12 Nov 2005 12:28:37 +0100 (CET)
Date: Sat, 12 Nov 2005 12:28:35 +0100
From: Jakub Wilk <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: ydpdict: Scrolling the list of words can cause SEGFAULT
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-2; format=flowed
Content-Disposition: inline
X-Compose-Date: Sat, 12 Nov 2005 12:17:48 +0100
X-Reportbug-Version: 3.17
X-Debbugs-Cc: [EMAIL PROTECTED]
User-Agent: Mutt/1.5.9i
Content-Transfer-Encoding: quoted-printable
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-Level: 
X-Spam-Status: No, hits=-10.5 required=4.0 tests=BAYES_00,HAS_PACKAGE,
        RCVD_IN_SORBS,X_DEBBUGS_CC autolearn=ham 
        version=2.60-bugs.debian.org_2005_01_02

Package: ydpdict
Version: 0.63-1
Severity: normal
Tags: patch

$ echo `tput cols`x`tput lines`
132x40
$ ydpdict -w yul

Then, pressing PageDown twice causes SEGFAULT.

The patch below fixes this bug.

diff -ur ydpdict-0.63-org/src/ydpdict.c ydpdict-0.63-new/src/ydpdict.c
--- ydpdict-0.63-org/src/ydpdict.c      2004-05-31 11:44:37.000000000 +0200
+++ ydpdict-0.63-new/src/ydpdict.c      2005-11-12 12:03:03.000000000 +0100
@@ -373,7 +373,7 @@
                                } else {
                                        if (menu < ysize - 5)
                                                menu =3D ysize - 5;
-                                       else if (pos < wordcount - 39)
+                                       else if (pos < wordcount - (ysize - 4) 
* 2 - 1)
                                                pos +=3D ysize - 4;
                                        else
                                                pos =3D wordcount - (ysize - 4);
@@ -534,10 +534,7 @@
        keypad(wordwin, TRUE);
        halfdelay(100);
=20
-       werase(wordwin);
-       werase(defwin);
-       werase(headwin);
-       werase(splitwin);
+       erase();
=20
        /* narysuj cudown=B1 pionow=B1 lini=EA */
        for (x =3D 0; x < ysize; x++) {
@@ -592,7 +589,7 @@
=20
 void checksize()
 {
-       int newx, newy, fake =3D 0;
+       int diff, newx, newy, fake =3D 0;
=20
        newx =3D stdscr->_maxx + 1;
        newy =3D stdscr->_maxy + 1;
@@ -608,6 +605,17 @@
=20
        xsize =3D newx;
        ysize =3D newy;
+
+       diff =3D pos + (ysize - 4) - wordcount;
+       if (diff > 0) {
+               pos -=3D diff;
+               menu +=3D diff;
+       }
+       diff =3D menu - (ysize - 5);
+       if (diff > 0) {
+               pos +=3D diff;
+               menu -=3D diff;
+       }
 }
=20
 /* czy podany znaczek da si=EA wy=B6wietli=E6 i wprowadzi=E6 z klawiatur=
y? */


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (900, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.14
Locale: LANG=3DC, LC_CTYPE=3Dpl_PL (charmap=3DISO-8859-2)

Versions of packages ydpdict depends on:
ii  libc6                         2.3.5-6    GNU C Library: Shared librar=
ies an
ii  libncurses5                   5.4-9      Shared libraries for termina=
l hand

ydpdict recommends no packages.

-- no debconf information

--=20
Jakub Wilk

---------------------------------------
Received: (at 338731-close) by bugs.debian.org; 3 Dec 2005 15:51:14 +0000
>From [EMAIL PROTECTED] Sat Dec 03 07:51:14 2005
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 4.50)
        id 1EiZbM-0004EJ-O2; Sat, 03 Dec 2005 07:47:04 -0800
From: Marcin Owsiany <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.60 $
Subject: Bug#338731: fixed in ydpdict 0.65-1
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Sat, 03 Dec 2005 07:47:04 -0800
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-Level: 
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-CrossAssassin-Score: 2

Source: ydpdict
Source-Version: 0.65-1

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

ydpdict_0.65-1.diff.gz
  to pool/contrib/y/ydpdict/ydpdict_0.65-1.diff.gz
ydpdict_0.65-1.dsc
  to pool/contrib/y/ydpdict/ydpdict_0.65-1.dsc
ydpdict_0.65-1_i386.deb
  to pool/contrib/y/ydpdict/ydpdict_0.65-1_i386.deb
ydpdict_0.65.orig.tar.gz
  to pool/contrib/y/ydpdict/ydpdict_0.65.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.
Marcin Owsiany <[EMAIL PROTECTED]> (supplier of updated ydpdict 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: Sat,  3 Dec 2005 16:34:10 +0100
Source: ydpdict
Binary: ydpdict
Architecture: source i386
Version: 0.65-1
Distribution: unstable
Urgency: low
Maintainer: Marcin Owsiany <[EMAIL PROTECTED]>
Changed-By: Marcin Owsiany <[EMAIL PROTECTED]>
Description: 
 ydpdict    - Interface for Collins dictionaries
Closes: 338720 338731 341594
Changes: 
 ydpdict (0.65-1) unstable; urgency=low
 .
   * New upstream version
     - adds support for pl/de de/pl dictionary files
     - some fixes, including those for amd64 Closes: #341594, #338720, #338731
     - adds support for .ogg files
   * debian/control:
     - adjusted description to de support
     - added upstream homepage URL to the description
   * debian/rules: fixed (unused --libexecdir path to configure)
   * debian/ydpdict.conf.example: removed
   * debain/ydpdict.examples: use ydpdict.conf.example
   * ydpdict.conf.example: changed mnt to media
Files: 
 a3739fbf57e8356c3b16850d94421626 573 contrib/text optional ydpdict_0.65-1.dsc
 5b7d81075ced95cbd6630fb2b4c0118e 69207 contrib/text optional 
ydpdict_0.65.orig.tar.gz
 9b87381a3f2b8a8eebd2c1133a7cc4e9 24491 contrib/text optional 
ydpdict_0.65-1.diff.gz
 347eaa74a6d3f18f1037368a656b65d5 20526 contrib/text optional 
ydpdict_0.65-1_i386.deb

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

iD8DBQFDkbzXOg2KoGD0EhYRAisYAKCBpIsESAK4/3HXr4OtDYkZs+OCXgCfaTk4
UB3oLFOy7KdOLhbu4fTy5c4=
=th63
-----END PGP SIGNATURE-----


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

Reply via email to