Go to file
christos 5f47d9bd72 A very simple, non-intrusive patch to fix a segfault (and a
functional error) in c_gets(), file chared.c.

Run any program using libedit in the default way.  At the el_[w]gets()
prompt, invoke ed-command (for example, in emacs mode, press the
escape key, then type the letter 'x').  You should see a ": " prompt.
Type the letter 'x' again.  Now press the backspace key a few times,
looking at the screen after each key press:

 - The 1st BS deletes the 'x'.
 - The 2nd BS deletes the blank after the prompt.
 - The 3rd BS deletes the colon of the prompt.
 - The 4th BS moves the cursor up one line.
 - The 5th BS gives me "Segmentation fault (core dumped)".

Depending on your platform, it might take a few more or a few less
backspaces for the buffer underrun to trigger the segfault, but
you should be able to hit it sooner or later no matter what.

Run the same program again, connect again and invoke ed-command again.
Now type: 'b', backspace, 'i', backspace, 'n', backspace, 'd', enter.
The "bind" command gets executed, even though you deleted what you
typed before hitting enter.

From Ingo Schwatze.
2016-02-24 14:29:21 +00:00
bin name the long option after the ksh name (trackall) to indicate the intended 2016-02-23 18:30:16 +00:00
common whitespace 2016-02-08 05:27:24 +00:00
compat remove the xfree86 reachover makefiles and the vast majority of 2015-07-23 08:03:24 +00:00
crypto PR/50815: David Binderman: Remove dup test 2016-02-17 20:11:17 +00:00
dist/pf Fix obviously broken condition. 2015-08-28 12:17:41 +00:00
distrib add t_option 2016-02-23 16:21:55 +00:00
doc Note import of openresolv-3.7.3 2016-02-22 10:10:15 +00:00
etc Drop almost unnecessary devices for floppy to shrink sysinst.fs. 2016-01-29 18:03:16 +00:00
external Add one more clean file 2016-02-23 22:32:48 +00:00
extsrc
games PR/50411: Rin Okuyama: fix two bugs: 2015-11-06 19:53:37 +00:00
gnu has moved to external/gpl3 2016-01-16 18:41:12 +00:00
include Add relatime. 2016-02-21 22:45:25 +00:00
lib A very simple, non-intrusive patch to fix a segfault (and a 2016-02-24 14:29:21 +00:00
libexec where is already void * 2016-02-20 15:20:23 +00:00
regress moved to tests/net/in_cksum. 2015-01-05 22:39:29 +00:00
rescue Remove rtsol(8) and rtsold(8) as their functionality is in dhcpcd(8). 2014-09-11 13:10:03 +00:00
sbin Add MOPT_{REL,NO}ATIME as supported by the underlying filesystems. 2016-02-21 22:51:29 +00:00
share switch sparc to new binutils 2016-02-23 18:03:31 +00:00
sys Provide a ugen_clear_endpoints declaration 2016-02-22 08:06:47 +00:00
tests Add t_option, from kre (with minor edits from me) 2016-02-23 16:20:42 +00:00
tools Sort using mkheaderlist.sh:1.3 2016-02-23 11:43:57 +00:00
usr.bin White space police. 2016-02-24 13:31:54 +00:00
usr.sbin Kill confusable use of SIN_PROXY 2016-02-24 08:01:09 +00:00
build.sh Make evbarm64 (little endian) the default for aarch64. 2015-06-27 06:00:28 +00:00
BUILDING Document MKREPRO_TIMESTAMP. 2016-01-29 13:51:13 +00:00
Makefile fix direct reference to texinfo, bleh 2016-01-14 02:51:25 +00:00
Makefile.inc
UPDATING Note that update builds are broken if MKDTRACE got enabled for your 2016-01-25 09:24:29 +00:00