1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-24 15:04:13 +00:00
cde/src/cmd/ksh93/edit
Martijn Dekker 9ccb9572f3 emacs: fix crash due to read before start of buffer
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.
2021-02-20 21:09:01 +00:00
..
completion.c Fix compile/regress fails on compiling without SHOPT_* options 2021-02-08 22:02:45 +00:00
edit.c Fix many spelling errors and word repetitions (#188) 2021-02-20 03:22:24 +00:00
emacs.c emacs: fix crash due to read before start of buffer 2021-02-20 21:09:01 +00:00
hexpand.c Fix 80 typos in comments 2020-06-12 01:45:12 +02:00
history.c rm redundant getpid(2) syscalls (re: 9de65210) 2020-09-23 04:19:02 +02:00
vi.c Add new 'nobackslashctrl' shell option; other minor editor tweaks 2021-02-16 01:29:00 +00:00