Revision: 14999
          http://sourceforge.net/p/edk2/code/14999
Author:   ydong10
Date:     2013-12-18 03:02:52 +0000 (Wed, 18 Dec 2013)
Log Message:
-----------
Update code to avoid using potential NULL pointer.

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

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c

Modified: trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
===================================================================
--- trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c        
2013-12-17 22:23:05 UTC (rev 14998)
+++ trunk/edk2/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c        
2013-12-18 03:02:52 UTC (rev 14999)
@@ -2366,7 +2366,7 @@
       //
       // Parent statement end tag found, update ParentStatement info.
       //
-      if (IsStatementOpCode(ScopeOpCode) && ParentStatement->Operand == 
ScopeOpCode) {
+      if (IsStatementOpCode(ScopeOpCode) && (ParentStatement != NULL) && 
(ParentStatement->Operand == ScopeOpCode)) {
         ParentStatement  = ParentStatement->ParentStatement;
       }
 

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


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to