Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#639·clay

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(&currentElementData->boundingBox); happens before any nullptr check. It should be moved.

Source: nicbarker/clay

View original on GitHubView discussion on GitHub