]> git.ipfire.org Git - thirdparty/mdadm.git/commit
FIX: NULL pointer to strdup() can be passed
authorAdam Kwolek <adam.kwolek@intel.com>
Tue, 7 Feb 2012 14:03:03 +0000 (15:03 +0100)
committerNeilBrown <neilb@suse.de>
Thu, 9 Feb 2012 01:20:51 +0000 (12:20 +1100)
commit92d49ecfaabcd015cf9957a0863996eaa5755747
treebf209bd220cc4818ebb9001f6a9f31547dec4e7d
parentb10c663ea941fccd80ff8ace69ae4ffc0bdfbcd3
FIX: NULL pointer to strdup() can be passed

When result from strchr() is NULL and it is assigned to subarray,
NULL pointer can be passed to strdup() function and coredump file
is generated.

Subarray is checked for NULL pointer, so it is assumed that it can
be NULL at this moment.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
util.c