mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-24 15:04:13 +00:00
It's amazing what can happen when you compile ksh using standard malloc (i.e. with AST vmalloc disabled) on OpenBSD. Its security hardening provokes crashes that reveal decades-old unsolved bugs. This one is an attempt to access one byte before the beginning of the command line buffer when the cursor is at the beginning of it. On this system configuration, it provoked an instant crash whenever you moved the cursor back to the beginning of the command line, e.g. with ^A or the cursor keys. src/cmd/ksh93/edit/emacs.c: draw(): - Check that the cursor is actually past the first position of the command line buffer before trying to read the position immediately before it. If not, zero the value. |
||
---|---|---|
.. | ||
completion.c | ||
edit.c | ||
emacs.c | ||
hexpand.c | ||
history.c | ||
vi.c |