Subject: lib/12963: Bug in libedit
To: None <email@example.com>
From: None <firstname.lastname@example.org>
Date: 05/16/2001 16:34:03
>Synopsis: Bug in libedit
>Arrival-Date: Wed May 16 16:33:00 PDT 2001
>Originator: Jason Waterman
In tty.c,v 1.14 in libedit, the function tty_bind_char() has a bug.
Line 766 should be changed from:
char new, old;
unsigned char new, old;
This is because new and old are used as an index to a command
array, defined in map.c, and gets assignments from an unsigned char.
When 255 gets assigned to them, it gets converted to -1 which is out
I noticed this by getting a segfault running test.c from libedit. This
was on an OpenBSD system, so test.c might seem to run fine here.