Package: psmisc
Version: 22.8-1
Severity: normal

Hi,

I ran "pstree --help" and was greeted with a friendly segfault. Turns out this
happens for any long option that pstree doesn't recognise. (I'd suggest it
ought to recognise --help, but anyway...)

I've had a poke around the code, and is seems to me that the options struct
(lines 866-882) is not terminated correctly. According to the getopt_long
documentation, the array should be terminated "with an element containing
all zeros", which pstree doesn't have. So, of course, getopt_long ends up
looking into memory that's none of its business.

Peace,
Brendon

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-4.dmz.2-liquorix-amd64 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages psmisc depends on:
ii  libc6                     2.10.1-1       GNU C Library: Shared libraries
ii  libncurses5               5.7+20090803-2 shared libraries for terminal hand

psmisc recommends no packages.

psmisc suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to