]> 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>
Tue, 20 Jul 2021 09:50:52 +0000 (11:50 +0200)
commitcd969e8908ddd59accc5f84f19dcac20c82645d8
tree514cc6ef609cef71789982b1e823d8fadce72a9c
parentc0617de5a4a888325d7ae9efe12a69fe46579549
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