You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no protection against null pointers in the Pcp.NodeRef implementation, making it easy to cause a crash with python code. Even worse, there is not any way to detect a null pointer in the python code, so there is no way to avoid the crash even if you are aware of the potential danger.
Steps to Reproduce
Run the following code in a python shell with USD libraries available:
from pxr import Usd, UsdGeom
s = Usd.Stage.CreateInMemory()
p = UsdGeom.Xform.Define(s, "/foo").GetPrim()
n = p.GetAttributes()[0].GetResolveInfo().GetNode()
At this point, n refers to a null PcpNodeRef. But bool(n) returns True and n.layerStack will crash the process.
System Information (OS, Hardware)
Windows, Linux
Package Versions
23.08+, but I believe this has always been the case.
The text was updated successfully, but these errors were encountered:
Description of Issue
There is no protection against null pointers in the Pcp.NodeRef implementation, making it easy to cause a crash with python code. Even worse, there is not any way to detect a null pointer in the python code, so there is no way to avoid the crash even if you are aware of the potential danger.
Steps to Reproduce
bool(n)
returnsTrue
andn.layerStack
will crash the process.System Information (OS, Hardware)
Windows, Linux
Package Versions
23.08+, but I believe this has always been the case.
The text was updated successfully, but these errors were encountered: