My allcation fail
I’ve stumbled upon a nasty bug recently.
The bug was completely my fault and I was surprised that the compiler didn’t protected me by issuing an error or warning.
I bug was nasty because it seemed like a libc function was corrupting a structure I allocated ealier.
Our codebase is fairly large and it took some tries to reproduce it with a smaller example, but I managed to make it happen, so here’s the code:
```c
#include