#639·clay

Clay__RenderDebugLayoutElementsList() 中存在潜在的空指针解引用问题

作者: Kermalis创建于 2026年6月30日更新于 2026年6月30日

https://GitHub.com/nicbarker/clay/blob/main/clay.h#L3307 此方法多次检查 `currentElementData` 是否为 nullptr,但在任何 nullptr 检查之前都会执行 `bool offscreen = Clay__ElementIsOffscreen(&currentElementData->boundingBox);` 这个解引用操作。应该将其移动。