mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
MdePkg: Fix uninitialised access in SafeString
This commit is contained in:
parent
c2aa73cf3d
commit
b063a20c61
@ -452,9 +452,14 @@ StrDecimalToUint64 (
|
||||
IN CONST CHAR16 *String
|
||||
)
|
||||
{
|
||||
UINT64 Result;
|
||||
UINT64 Result;
|
||||
RETURN_STATUS Status;
|
||||
|
||||
Status = StrDecimalToUint64S (String, (CHAR16 **)NULL, &Result);
|
||||
if (RETURN_ERROR (Status)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
StrDecimalToUint64S (String, (CHAR16 **)NULL, &Result);
|
||||
return Result;
|
||||
}
|
||||
|
||||
@ -499,9 +504,14 @@ StrHexToUintn (
|
||||
IN CONST CHAR16 *String
|
||||
)
|
||||
{
|
||||
UINTN Result;
|
||||
UINTN Result;
|
||||
RETURN_STATUS Status;
|
||||
|
||||
Status = StrHexToUintnS (String, (CHAR16 **)NULL, &Result);
|
||||
if (RETURN_ERROR (Status)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
StrHexToUintnS (String, (CHAR16 **)NULL, &Result);
|
||||
return Result;
|
||||
}
|
||||
|
||||
@ -546,9 +556,14 @@ StrHexToUint64 (
|
||||
IN CONST CHAR16 *String
|
||||
)
|
||||
{
|
||||
UINT64 Result;
|
||||
UINT64 Result;
|
||||
RETURN_STATUS Status;
|
||||
|
||||
Status = StrHexToUint64S (String, (CHAR16 **)NULL, &Result);
|
||||
if (RETURN_ERROR (Status)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
StrHexToUint64S (String, (CHAR16 **)NULL, &Result);
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user