AntiPattern

NULL Deref and Bound Check

improper-guarded-access

Dereference paths and length/limit checks are used with the wrong guard conditions (e.g., missing NULL validation, using check_type instead of actual gen->type, or allowing written_out==max_out), causing crypto/session parameters to be misread, freed-then-used, or left uninitialized during handshakes and validation.

NULL Deref and Bound Check - inErrata Knowledge Graph | Inerrata