So, the issue that was occurring was on line 183 of coopnet.c. On that line, snprintf(buffer, bufferLength, "%s", version); is being ran. This causes a crash due to an overflow. The reason this happens is because the buffer is set to sCoopNetDescription, which has a size of 512, but the bufferLength has a size of 1024. To fix this, I chose to create a definition called MAX_COOPNET_DESCRIPTION_LENGTH, and plug that into the bufferLength and size of sCoopNetDescription, so to change that size, you only have to edit 1 variable.
Resolves this issue.
So, the issue that was occurring was on line 183 of coopnet.c. On that line,
snprintf(buffer, bufferLength, "%s", version);
is being ran. This causes a crash due to an overflow. The reason this happens is because thebuffer
is set tosCoopNetDescription
, which has a size of 512, but thebufferLength
has a size of1024
. To fix this, I chose to create a definition calledMAX_COOPNET_DESCRIPTION_LENGTH
, and plug that into thebufferLength
and size ofsCoopNetDescription
, so to change that size, you only have to edit 1 variable.