Skip to content

Rule: Pointed-to struct changed size

Canonical rule slug: leaf-struct-through-pointer. ← back to all rules

A struct only ever handled through a pointer changes size, which still breaks consumers that allocate or index it.

Canonical demonstration