sizeof(struct web_server) != sizeof(struct web_server)
Brought to you by:
stdio
The struct web_server in server.h (used by server.c)
has a member stat which is commented in the struct
web_server defined in web_server.h. Therefore every
time the library modifies the contents of this
stat-struct the memory behind the web_server-struct
gets modified.
See the attached example for a demonstration.
bug-demonstration (c-source)