]> 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)
committerGaël PORTAY <gael.portay@collabora.com>
Fri, 20 Mar 2020 20:28:49 +0000 (16:28 -0400)
commite368d0ad5da392d35afdff8699089346e824d7ac
tree6e4f2668dec82fd49c04fd1827e6abcb45f360ec
parent3468dda9c34b1860d4b64f590651aab718b0cc5e
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