]> git.ipfire.org Git - thirdparty/util-linux.git/commit
more: fix null-pointer dereference
authorKarel Zak <kzak@redhat.com>
Wed, 23 Jun 2021 09:37:31 +0000 (11:37 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 23 Jun 2021 09:37:31 +0000 (11:37 +0200)
commit86f05d3946193c447bc8f9120d7046f92da54209
tree94911296646d224e1b50a2f1905848e982b96d7a
parentb4533177aeac287e0b0563cd1b9ee61bce29ee88
more: fix null-pointer dereference

The command allows executing arbitrary shell commands while viewing a file by
entering '!' followed by the command. Entering a command that contains a '%',
'!', or '\' causes a segmentation violation.

The same more(1) function has a problem when not file is specified (cat
/etc/passwd | more) on command line.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1975153
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/more.c