]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/mangle: check for the NULL string argument
authorGaël PORTAY <gael.portay@collabora.com>
Fri, 20 Mar 2020 20:21:58 +0000 (16:21 -0400)
committerKarel Zak <kzak@redhat.com>
Fri, 15 May 2020 09:58:57 +0000 (11:58 +0200)
commita41254b8f7e74a6c14f357af8b7ea9a457dffa89
tree12fe570b51a493a7d391576c0cd054d7581650eb
parent08f7c4d55fdc334d250750386119ff0ede994ffc
lib/mangle: check for the NULL string argument

This patch prevents to call the function strlen() with a NULL string
argument that leads to a segmentation fault.

Signed-off-by: Gaël PORTAY <gael.portay@collabora.com>
include/mangle.h