mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02: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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user