]> git.ipfire.org Git - thirdparty/util-linux.git/commit
more: fix repeat search crash
authorSami Kerola <kerolasa@iki.fi>
Tue, 27 Jan 2015 22:28:57 +0000 (22:28 +0000)
committerKarel Zak <kzak@redhat.com>
Wed, 28 Jan 2015 07:27:45 +0000 (08:27 +0100)
commitbc1ed338814f69473629b04c5e9efae5d7db3b72
treea97c6a36630031ea0cd998c3cdeb2178be15e29c
parentb2b5b502d2bba01ebacc049e9640b301c0155027
more: fix repeat search crash

Repeating a search for a pattern that did not found made more(1) to
crash.  To reproduce 'more /etc/services' and search for 'doom'; you will
find a service in port 666 - pressing '.' after that result used to cause
core dump.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/more.c