UEFI getnextvariablename get EFI_INVALID_PARAMETER instead of EFI_BUFFER_TOO_SMALL
Bug #1593597 reported by
Ivan Hu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Firmware Test Suite |
Fix Released
|
Low
|
Ivan Hu |
Bug Description
Some firmwares (mostly on AMI Bios), the implementation limitation was seen that the VariableNameSize of the GetNextVariableName should lager or equal to 2. They believe that it should at least have a Null-terminated(2 bytes) for the name buffer.
So test getnextvariablename with VariableNameSize 0 and 1 will get the EFI_INVALID_
For the fwts getnextvariablename buffer too small test(getnextvar
1. add the VariableNameSize 2 for the test, if VariableNameSize 2 without returning EFI_BUFFER_
2. if VariableNameSize is 0 or 1, allow the extra return EFI_INVALID_
Changed in fwts: | |
assignee: | nobody → Ivan Hu (ivan.hu) |
status: | New → In Progress |
importance: | Undecided → Low |
To post a comment you must log in.
Patch had release on fwts V16.06.00