efi_selftest: check length reported by GetNextVariableName()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 20 Mar 2020 18:20:17 +0000 (19:20 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 22 Mar 2020 10:06:23 +0000 (11:06 +0100)
commite1089765b5964f35a426f3abe29ba164422f4165
treec9b43b7a6ad54a4bd3d4eedfd2a1245e314096ef
parent4d7f5af841c4622fb6c5d155e31c1072f3b052df
efi_selftest: check length reported by GetNextVariableName()

GetNextVariableName should report the length of the variable including the
final 0x0000 in bytes.

Check this in the unit test.

Increase the buffer size for variable names. 40 bytes is too short.

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