efi_loader: parameter check in GetNextVariableName()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 19 Nov 2020 18:40:08 +0000 (19:40 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 21 Nov 2020 06:26:16 +0000 (07:26 +0100)
commit7e5875a85689d762bde58a587a7d531667358ee4
treee1e9bf9854aea4f4fd851f779555a42ef51f7f01
parent9aeb380277aa5fd962c7b39e52dd56a2a6e06754
efi_loader: parameter check in GetNextVariableName()

If GetNextVariableName() is called with a non-existing combination of
VariableName and VendorGuid, return EFI_INVALID_PARAMETER.

If GetNextVariableName() is called with a string that is not zero
terminated, return EFI_INVALID_PARAMETER.

Reformat a line over 80 characters.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_var_mem.c