Hacker News new | ask | show | jobs
by h_anna_h 1980 days ago
> g_list_free (slist); /* corruption: sizeof (GSList) != sizeof (GList) */

Catching this error at runtime would be extremely trivial. Just add a magic number on top of the GSList and GList structs.