Revision: 13712
          http://edk2.svn.sourceforge.net/edk2/?rev=13712&view=rev
Author:   ydong10
Date:     2012-09-10 09:35:43 +0000 (Mon, 10 Sep 2012)
Log Message:
-----------
Refine code to make it more safely.

Signed-off-by: Eric Dong <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c

Modified: trunk/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c
===================================================================
--- trunk/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c   
2012-09-10 08:29:32 UTC (rev 13711)
+++ trunk/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c   
2012-09-10 09:35:43 UTC (rev 13712)
@@ -59,7 +59,7 @@
     RetString = StrnCatGrow(&RetString, &BufLen, L"Invalid", 0);
   }
 
-  if (RetString[0] == L'+') {
+  if ((RetString != NULL) && (RetString[0] == L'+')) {
     CopyMem(RetString, RetString + 1, StrSize(RetString + 1));
   }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to