PointInstancer 转换辅助程序解引用为空输出指针
作者: dvasquezlopez创建于 2026年9月23日更新于 2026年9月27日
Specula 在 OpenUSD 开发提交 `fc590b38e24770408e31b56442d31b8029729ee7` 中发现了一项公开合约违规行为。`UsdGeomPointInstancer::ComputeInstanceTransformsAtTime()` 文档中指出,如果 `xforms` 指针为空,则返回 `false` 并保留输出不变。单样本实现执行其工作,并在 `pointInstancer.cpp:771` 中无条件地通过 `*xforms` 进行赋值。多样本实现类似地在第 915 行通过 `*xformsArray` 进行赋值。两个入口点都不检查其输出指针。
内容来源: PixarAnimationStudios/OpenUSD