lvm commands running with an invalid arguments causes a segfault.
Issue
- When running lvm commands with an invalid object/argument name causes a segfault instead of only throwing an error message.
$ lvs '#'
Volume group name "#" has invalid characters.
Segmentation fault (core dumped)
$ vgremove foo[
Volume group name "foo[" has invalid characters.
Segmentation fault (core dumped)
Environment
- Red Hat Enterprise Linux 8.
- lvm2 version < lvm2-2.03.08-3.el8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.