diff options
author | Vu Nguyen <vunguyen@os.amperecomputing.com> | 2023-04-13 16:24:49 +0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-05-08 13:12:01 +0000 |
commit | c580e27efcb799c8afa0ab5eac10f359a680f1cd (patch) | |
tree | ac7395c03ba4d1288aa1e9cd4e274fffe5469e1a | |
parent | d89492456f79e014679cb6c29b144ea26b910918 (diff) | |
download | edk2-c580e27efcb799c8afa0ab5eac10f359a680f1cd.tar.gz edk2-c580e27efcb799c8afa0ab5eac10f359a680f1cd.tar.bz2 edk2-c580e27efcb799c8afa0ab5eac10f359a680f1cd.zip |
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>
-rw-r--r-- | RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.h b/RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.h index 4a9e9f7b81..6b94e5814c 100644 --- a/RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.h +++ b/RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.h @@ -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;
};
|