Package: dhelp
Version: 0.5.24-0.1
Severity: important
Tags: patch

dhelp_parse can segfault on long lines in some cases.  In sid, the
current w3-recs package causes such a segfault in its postinst.  The
bug and its fix are trivial; a patch appears below.

As an aside, some of the fields in the database records are much too
small.  If they were big enough this wouldn't have happened.

----------------------------------------------------------------------
--- dhelp_parse.c.~1~   2005-09-04 13:56:59.000000000 -0400
+++ dhelp_parse.c       2007-09-17 21:30:14.000000000 -0400
@@ -63,7 +63,7 @@
 
 void strdel (char *s)
 {
-  for ( ; *s!='\n'; s++);
+  for ( ; *s && *s!='\n'; s++);
     *s = '\0';
 }
 
----------------------------------------------------------------------

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (1001, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22.6-cph1 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dhelp depends on:
ii  debconf [debconf-2.0]         1.5.14     Debian configuration management sy
ii  libc6                         2.6.1-5    GNU C Library: Shared libraries
ii  libdb4.4                      4.4.20-10  Berkeley v4.4 Database Libraries [
ii  perl-modules                  5.8.8-8    Core Perl modules

Versions of packages dhelp recommends:
ii  amaya [www-browser]        9.54~dfsg.0-1 Web Browser, HTML Editor and Testb
ii  epiphany-browser [www-brow 2.18.3-1      Intuitive GNOME web browser
ii  iceweasel [www-browser]    2.0.0.6-1     lightweight web browser based on M
ii  lynx [www-browser]         2.8.6-2       Text-mode WWW Browser
ii  w3m [www-browser]          0.5.1-5.1+b1  WWW browsable pager with excellent

-- debconf information:
* dhelp/www-browser-console: lynx
* dhelp/www-browser-x: mozilla



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

Reply via email to