]> git.ozlabs.org Git - petitboot/commit
discover/platform-powerpc: Reject bootdevs with empty UUIDs
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Mon, 21 Nov 2016 05:28:35 +0000 (16:28 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Thu, 24 Nov 2016 02:30:01 +0000 (13:30 +1100)
commita23c3271090ddb9004678b8ede3b2ba8f83d7acf
treef1d4d149381a7ba4db89ed023f4568c8a6b75db5
parent9f29eb2eff09d7bf74905b1fef8eaf4f7934219e
discover/platform-powerpc: Reject bootdevs with empty UUIDs

If a "uuid:" label is set in the petitboot,bootdevs or petitboot,bootdev
parameters without a matching UUID, the UUID is unintentionally accepted
and set to NULL. This can cause a segfault in nc-config when device
UUIDs are compared against the autoboot option. Instead treat options
like this as malformed.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
discover/platform-powerpc.c