diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2023-03-11 11:31:51 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-03-13 22:11:55 +0000 |
commit | e4c1d8d2317984bd9cb447eba916956841063ec4 (patch) | |
tree | f62faf000feeda5676f6a8b1de08fb40b28ccd14 /ShellPkg/Library/UefiShellLevel2CommandsLib | |
parent | d2bfe289668e32940cca5da12bc201bf9b6c84d8 (diff) | |
download | edk2-e4c1d8d2317984bd9cb447eba916956841063ec4.tar.gz edk2-e4c1d8d2317984bd9cb447eba916956841063ec4.tar.bz2 edk2-e4c1d8d2317984bd9cb447eba916956841063ec4.zip |
ShellPkg/Library: Fix 32-bit truncation of pointer values
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4366
Update C and UNI files that are incorrectly using %x or %08x
instead of %p for pointer values. On 64-bit systems, this is
truncating pointer values above 4GB.
In reviewing ShellPkg for this issue some unused UNI strings
with incorrect format specifiers were removed instead of being
fixed.
Cc: Ray Ni <ray.ni@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Diffstat (limited to 'ShellPkg/Library/UefiShellLevel2CommandsLib')
-rw-r--r-- | ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.uni | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.uni b/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.uni index 8ce015746f..0a0cd3090e 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.uni +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.uni @@ -134,7 +134,7 @@ #string STR_LOAD_NOT_IMAGE #language en-US "Image '%s' is not an image.\r\n"
#string STR_LOAD_NOT_DRIVER #language en-US "Image '%s' is not a driver.\r\n"
-#string STR_LOAD_LOADED #language en-US "Image '%s' loaded at %x - %r\r\n"
+#string STR_LOAD_LOADED #language en-US "Image '%s' loaded at %p - %r\r\n"
#string STR_LOAD_ERROR #language en-US "Image '%s' error in StartImage: %r\r\n"
#string STR_LS_LINE_START_ALL #language en-US "%t %5s %1c % ,L11d "
@@ -1076,4 +1076,3 @@ " SHELL_SECURITY_VIOLATION This function was not performed due to a security\r\n"
" violation.\r\n"
" SHELL_NOT_FOUND The target file-system was not found.\r\n"
-
|