mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
efi_loader: parameter check OutputString
Check the parameters against NULL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
acee965263
commit
b31ca6bf84
1 changed files with 5 additions and 0 deletions
|
@ -136,6 +136,11 @@ static efi_status_t EFIAPI efi_cout_output_string(
|
|||
|
||||
EFI_ENTRY("%p, %p", this, string);
|
||||
|
||||
if (!this || !string) {
|
||||
ret = EFI_INVALID_PARAMETER;
|
||||
goto out;
|
||||
}
|
||||
|
||||
buf = malloc(utf16_utf8_strlen(string) + 1);
|
||||
if (!buf) {
|
||||
ret = EFI_OUT_OF_RESOURCES;
|
||||
|
|
Loading…
Add table
Reference in a new issue