summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2012-02-03 07:43:00 +0000
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2012-02-03 07:43:00 +0000
commit2d97e71f17e00ec2fe955e2649cbb86db2929464 (patch)
treeb4ad6652296e0743e8a83e1cb3dde2ef702a685a /MdeModulePkg
parent74fa83fda6be6277044619276d0f1391e72e54a2 (diff)
downloadedk2-platforms-2d97e71f17e00ec2fe955e2649cbb86db2929464.tar.xz
Change StrLen from UINT8 to UINTN to fix the potential infinite loop issue.
Signed-off-by: lzeng14 Reviewed-by: li-elvin git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12982 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c b/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c
index 053e7a4984..2d0be7cd51 100644
--- a/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c
+++ b/MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c
@@ -2,7 +2,7 @@
This code produces the Smbios protocol. It also responsible for constructing
SMBIOS table into system table.
-Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -127,7 +127,7 @@ GetSmbiosStructureSize (
)
{
UINTN FullSize;
- UINT8 StrLen;
+ UINTN StrLen;
INT8* CharInStr;
if (Size == NULL || NumberOfStrings == NULL) {