mirror of https://github.com/acidanthera/audk.git
RedfishPkg: Correct variable type to prevent memory corruption
Id will be casted by CoreOpenProtocol, declare this variable with a wrong type might result in the corruption of other local variables. Signed-off-by: Minh Nguyen <minhnguyen1@os.amperecomputing.com> Cc: Abner Chang <abner.chang@amd.com> Cc: Igor Kulchytskyy <igork@ami.com> Cc: Nick Ramirez <nramirez@nvidia.com> Reviewed-by: Nickle Wang <nicklew@nvidia.com>
This commit is contained in:
parent
d89492456f
commit
c580e27efc
|
@ -3,6 +3,7 @@
|
|||
|
||||
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
|
||||
(C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
|
||||
Copyright (c) 2023, Ampere Computing LLC. All rights reserved.<BR>
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
|
@ -84,7 +85,7 @@ struct _RESTEX_SERVICE {
|
|||
//
|
||||
EFI_HANDLE HttpChildHandle;
|
||||
|
||||
UINT32 Id;
|
||||
UINT32 *Id;
|
||||
|
||||
EFI_REST_EX_SERVICE_INFO RestExServiceInfo;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue