Potential null deref in Clay__RenderDebugLayoutElementsList()
Author: KermalisCreated Jun 30, 2026Updated Jun 30, 2026
https://github.com/nicbarker/clay/blob/main/clay.h#L3307
This method checks if currentElementData is nullptr a few times, but this dereference bool offscreen = Clay__ElementIsOffscreen(¤tElementData->boundingBox); happens before any nullptr check. It should be moved.
Source: nicbarker/clay