Posts Tagged ‘ memcpy ’
I ran into a strange bug this week in the code to the C project I’ve been working on. Seemingly randomly, I was encountering a segfault in a call to malloc() while allocating memory for a new struct. The problem had me completely baffled, and web searches turned up no useful information, since most people [ READ MORE ]