Vulnerability Development mailing list archives

Re: less bug


From: Liviu.Daia () IMAR RO (Liviu Daia)
Date: Mon, 27 Mar 2000 08:28:19 +0300


On 26 March 2000, Ribeiro, Paulo <prrar () NITNET COM BR> wrote:
Hi, everyone.

Some time ago, I was playing with less (used by man) and I've found out
this:

When, in console, I ask:

$ uname -a
Linux linux.prrar.net 2.2.5-15 #1 Mon Apr 19 22:21:09 EDT 1999 i586
unknown
$ rpm -q less
less-332-6
$ less file
(...)
(press Print Scrn)
fileQuit (core dumped)
[...]
Any idea?

[daia@euler/~]> showkey
kb mode was XLATE

press any key (program terminates after 10s of last keypress)...
keycode  28 release

        (press Print Screen here)

keycode  99 press
keycode  99 release

[daia@euler/~]> zgrep 99 /usr/lib/kbd/keymaps/i386/qwerty/defkeymap.map.gz
keycode  99 = Control_backslash
        control keycode  99 = Control_backslash
        alt     keycode  99 = Control_backslash

[daia@euler/~]> stty -a | grep '\^\\'
intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>;
           ^^^^^^^^^

    Surprise: less dies when you send it a SIGQUIT.

    Regards,

    Liviu Daia

--
Dr. Liviu Daia               e-mail:   Liviu.Daia () imar ro
Institute of Mathematics     web page: http://www.imar.ro/~daia
of the Romanian Academy      PGP key:  http://www.imar.ro/~daia/daia.asc



Current thread: