Title: [293000] branches/safari-613-branch/Source/ThirdParty/ANGLE
Revision
293000
Author
[email protected]
Date
2022-04-18 17:50:18 -0700 (Mon, 18 Apr 2022)

Log Message

Cherry-pick r292743. rdar://problem/91437430

    This WebGL example crashes
    https://bugs.webkit.org/show_bug.cgi?id=238953

    Null-check subnodes while performing a deep copy for
    loops, and branches. These nodes can be null in some cases

    Reviewed by Dean Jackson.

    * src/compiler/translator/IntermNode.cpp:
    (sh::TIntermBranch::TIntermBranch):
    (sh::TIntermLoop::TIntermLoop):

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@292743 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-613-branch/Source/ThirdParty/ANGLE/ChangeLog (292999 => 293000)


--- branches/safari-613-branch/Source/ThirdParty/ANGLE/ChangeLog	2022-04-19 00:50:15 UTC (rev 292999)
+++ branches/safari-613-branch/Source/ThirdParty/ANGLE/ChangeLog	2022-04-19 00:50:18 UTC (rev 293000)
@@ -1,3 +1,36 @@
+2022-04-18  Kocsen Chung  <[email protected]>
+
+        Cherry-pick r292743. rdar://problem/91437430
+
+    This WebGL example crashes
+    https://bugs.webkit.org/show_bug.cgi?id=238953
+    
+    Null-check subnodes while performing a deep copy for
+    loops, and branches. These nodes can be null in some cases
+    
+    Reviewed by Dean Jackson.
+    
+    * src/compiler/translator/IntermNode.cpp:
+    (sh::TIntermBranch::TIntermBranch):
+    (sh::TIntermLoop::TIntermLoop):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@292743 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2022-04-11  Kyle Piddington  <[email protected]>
+
+            This WebGL example crashes
+            https://bugs.webkit.org/show_bug.cgi?id=238953
+
+            Null-check subnodes while performing a deep copy for
+            loops, and branches. These nodes can be null in some cases
+
+            Reviewed by Dean Jackson.
+
+            * src/compiler/translator/IntermNode.cpp:
+            (sh::TIntermBranch::TIntermBranch):
+            (sh::TIntermLoop::TIntermLoop):
+
 2022-03-23  Kenneth Russell  <[email protected]>
 
         Roll ANGLE to 2022-03-22 (e7f29440f02514126f30350dcd7132b68f7954d7)

Modified: branches/safari-613-branch/Source/ThirdParty/ANGLE/src/compiler/translator/IntermNode.cpp (292999 => 293000)


--- branches/safari-613-branch/Source/ThirdParty/ANGLE/src/compiler/translator/IntermNode.cpp	2022-04-19 00:50:15 UTC (rev 292999)
+++ branches/safari-613-branch/Source/ThirdParty/ANGLE/src/compiler/translator/IntermNode.cpp	2022-04-19 00:50:18 UTC (rev 293000)
@@ -279,7 +279,7 @@
 }
 
 TIntermBranch::TIntermBranch(const TIntermBranch &node)
-    : TIntermBranch(node.mFlowOp, node.mExpression->deepCopy())
+    : TIntermBranch(node.mFlowOp, node.mExpression ? node.mExpression->deepCopy() : nullptr)
 {}
 
 size_t TIntermBranch::getChildCount() const
@@ -1601,10 +1601,10 @@
 
 TIntermLoop::TIntermLoop(const TIntermLoop &node)
     : TIntermLoop(node.mType,
-                  node.mInit->deepCopy(),
-                  node.mCond->deepCopy(),
-                  node.mExpr->deepCopy(),
-                  node.mBody->deepCopy())
+                  node.mInit ? node.mInit->deepCopy() : nullptr,
+                  node.mCond ? node.mCond->deepCopy() : nullptr,
+                  node.mExpr ? node.mExpr->deepCopy() : nullptr,
+                  node.mBody ? node.mBody->deepCopy() : nullptr)
 {}
 
 TIntermIfElse::TIntermIfElse(TIntermTyped *cond, TIntermBlock *trueB, TIntermBlock *falseB)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to