summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/DisplayEngineDxe
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2015-05-19 09:26:25 +0000
committerydong10 <ydong10@Edk2>2015-05-19 09:26:25 +0000
commitaee257db53c87e5657b9e2c8aa558b58c4ec0fb4 (patch)
tree2b57bb967c981a7dc8537900a42799ff421a6860 /MdeModulePkg/Universal/DisplayEngineDxe
parent5f25ead991ad34f5d11b6b7f5f6a50479142934f (diff)
downloadedk2-platforms-aee257db53c87e5657b9e2c8aa558b58c4ec0fb4.tar.xz
MdeModulePkg: Fix potential buffer overflow issues.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17472 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/DisplayEngineDxe')
-rw-r--r--MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.h b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.h
index eeb9b2f318..063e94c6bc 100644
--- a/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.h
+++ b/MdeModulePkg/Universal/DisplayEngineDxe/FormDisplay.h
@@ -113,8 +113,9 @@ extern BOOLEAN gMisMatch;
//
// It take 23 characters including the NULL to print a 64 bits number with "[" and "]".
// pow(2, 64) = [18446744073709551616]
+// with extra '-' flat, set the width to 24.
//
-#define MAX_NUMERIC_INPUT_WIDTH 23
+#define MAX_NUMERIC_INPUT_WIDTH 24
#define EFI_HII_EXPRESSION_INCONSISTENT_IF 0
#define EFI_HII_EXPRESSION_NO_SUBMIT_IF 1