PointInstancer transform helpers dereference null output pointers
Specula found a public contract violation at OpenUSD dev commit fc590b38e24770408e31b56442d31b8029729ee7.
UsdGeomPointInstancer::ComputeInstanceTransformsAtTime() documents that a null xforms pointer returns false and leaves output untouched. The single-sample implementation performs its work and unconditionally assigns through *xforms at pointInstancer.cpp:771. The multi-sample implementation similarly assigns through *xformsArray at line 915. Neither entry point checks its output pointer.
T0: a native caller passes a null output pointer
T1: the implementation computes transforms
T2: it unconditionally dereferences the null pointer
T3: behavior is undefined instead of returning falseThe proposed fix validates the output pointer before any work, emits the normal coding diagnostic, and returns false without modifying caller state.
T0: a caller passes a null output pointer
T1: the method validates the pointer
T2: it diagnoses the invalid argument
T3: it returns false with output untouchedStatic contract checks passed three source controls and failed both required guard checks. A native C++ reproduction could not be compiled because the available USD wheel omits generated development headers; the issue is therefore source-proven rather than runtime reproduced.
@kelly-wang was selected as the most likely owner through blame of the current implementation refactor. Please reassign if another owner is closer.
Source: PixarAnimationStudios/OpenUSD