Your message dated Sat, 12 Nov 2005 13:37:40 +0100 with message-id <[EMAIL PROTECTED]> has caused the Debian Bug report #338731, regarding ydpdict: Scrolling the list of words can cause SEGFAULT to be marked as having been forwarded to the upstream software author(s) Wojtek Kaniewski <[EMAIL PROTECTED]>.
(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 338731-forwarded) by bugs.debian.org; 12 Nov 2005 12:38:25 +0000 >From [EMAIL PROTECTED] Sat Nov 12 04:38:25 2005 Return-path: <[EMAIL PROTECTED]> Received: from starnet.skynet.com.pl ([213.25.173.230] helo=skynet.skynet.com.pl) by spohr.debian.org with esmtp (Exim 4.50) id 1EaueG-0002aV-MM for [EMAIL PROTECTED]; Sat, 12 Nov 2005 04:38:25 -0800 Received: from system858917513.mtvk.pl ([85.89.175.13] helo=localhost) by skynet.skynet.com.pl with asmtp (Exim 3.35 #1 (Debian)) id 1Eaue9-00046g-00; Sat, 12 Nov 2005 13:38:18 +0100 Received: from porridge by localhost with local (Exim 4.54) id 1EaudY-0007bJ-GI; Sat, 12 Nov 2005 13:37:40 +0100 Date: Sat, 12 Nov 2005 13:37:40 +0100 From: Marcin Owsiany <[EMAIL PROTECTED]> To: Wojtek Kaniewski <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: [EMAIL PROTECTED]: Bug#338731: ydpdict: Scrolling the list of words can cause SEGFAULT] Message-ID: <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="uZ3hkaAS1mZxFaxD" Content-Disposition: inline User-Agent: Mutt/1.5.11 X-Scanner: exiscan *1Eaue9-00046g-00*ms5GGG/8plI* 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=-11.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER, HAS_PACKAGE autolearn=ham version=2.60-bugs.debian.org_2005_01_02 --uZ3hkaAS1mZxFaxD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi! Here's another report. Marcin -- Marcin Owsiany <[EMAIL PROTECTED]> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expands until it can read mail." -- Unknown --uZ3hkaAS1mZxFaxD Content-Type: message/rfc822 Content-Disposition: inline Return-path: <[EMAIL PROTECTED]> X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on kufelek X-Spam-Level: X-Spam-Status: No, score=-0.8 required=4.2 tests=BAYES_00, DATE_IN_FUTURE_06_12,FORGED_RCVD_HELO,UNPARSEABLE_RELAY autolearn=no version=3.1.0 Envelope-to: [EMAIL PROTECTED] Delivery-date: Sat, 12 Nov 2005 13:03:21 +0100 Received: from [127.0.0.1] (helo=localhost) by localhost with esmtp (Exim 4.54) id 1Eau6L-0006oV-OA for [EMAIL PROTECTED]; Sat, 12 Nov 2005 13:03:21 +0100 Received: from skynet.com.pl [213.25.173.230] by localhost with POP3 (fetchmail-6.2.5) for [EMAIL PROTECTED] (single-drop); Sat, 12 Nov 2005 13:03:21 +0100 (CET) Received: from spohr.debian.org ([140.211.166.43] ident=Debian-exim) by skynet.skynet.com.pl with esmtp (Exim 3.35 #1 (Debian)) id 1Eau6B-00033e-00 for <[EMAIL PROTECTED]>; Sat, 12 Nov 2005 13:03:12 +0100 Received: from debbugs by spohr.debian.org with local (Exim 4.50) id 1Eau67-00054w-Ki; Sat, 12 Nov 2005 04:03:07 -0800 X-Loop: [EMAIL PROTECTED] Subject: Bug#338731: ydpdict: Scrolling the list of words can cause SEGFAULT Reply-To: Jakub Wilk <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Resent-From: Jakub Wilk <[EMAIL PROTECTED]> Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: [EMAIL PROTECTED], Marcin Owsiany <[EMAIL PROTECTED]> Resent-Date: Sat, 12 Nov 2005 12:03:05 UTC Resent-Message-ID: <[EMAIL PROTECTED]> X-Debian-PR-Message: report 338731 X-Debian-PR-Package: ydpdict X-Debian-PR-Keywords: patch Received: via spool by [EMAIL PROTECTED] id=B.113179549720831 (code B ref -1); Sat, 12 Nov 2005 12:03:05 UTC Received: (at submit) by bugs.debian.org; 12 Nov 2005 11:38:17 +0000 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]> 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 User-Agent: Mutt/1.5.9i Content-Transfer-Encoding: quoted-printable Delivered-To: [EMAIL PROTECTED] X-Non-Melina-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Non-Melina-Spam-Level: X-Non-Melina-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 Resent-Sender: Debian BTS <[EMAIL PROTECTED]> Resent-Date: Sat, 12 Nov 2005 04:03:07 -0800 X-Scanner: exiscan *1Eau6B-00033e-00*jX4OQYEWvCM* X-PolSpam: nie 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 --uZ3hkaAS1mZxFaxD-- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]