]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: fix crash triggered by an empty filter expression
authorMasatake YAMATO <yamato@redhat.com>
Thu, 28 Jul 2022 03:56:52 +0000 (12:56 +0900)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Aug 2022 08:59:59 +0000 (10:59 +0200)
commit16ca7d6a0c3d03ecc39cf1e8835f94ff4f026e85
treeaf7483cdf21eddc7ff37c84230048890de122d92
parent789450d42d4d94fb5b8e40b5aad63d065e40d5fd
lsfd: fix crash triggered by an empty filter expression

  $ lsfd -Q ''

or

  $ lsfd --filter ''

made lsfd process crash.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-filter.c
tests/expected/lsfd/option-filter-broken-exp [new file with mode: 0644]
tests/ts/lsfd/option-filter-broken-exp [new file with mode: 0755]