Revision: 17779
          http://sourceforge.net/p/edk2/code/17779
Author:   shenshushi
Date:     2015-07-01 08:14:36 +0000 (Wed, 01 Jul 2015)
Log Message:
-----------
MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode: Use safe string functions 
to refine code.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin....@intel.com>
Reviewed-by: Liming Gao <liming....@intel.com>

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c

Modified: 
trunk/edk2/MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c
===================================================================
--- trunk/edk2/MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c   
2015-07-01 08:05:00 UTC (rev 17778)
+++ trunk/edk2/MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/DebugLib.c   
2015-07-01 08:14:36 UTC (rev 17779)
@@ -115,7 +115,7 @@
   //
   // Copy the Format string into the record
   //
-  AsciiStrCpy (FormatString, Format);
+  AsciiStrCpyS (FormatString, sizeof(Buffer) - (4 + sizeof(EFI_DEBUG_INFO) + 
12 * sizeof(UINT64)), Format);
 
   //
   // The first 12 * sizeof (UINT64) bytes following EFI_DEBUG_INFO are for 
variable arguments


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to