Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit 9e0dc7b5 authored by Rob Swindell's avatar Rob Swindell 💬

Fix potential NULL-ptr dereference caught by Coverity

Appear to have been possible (to crash) by using a malformed text.dat file.
parent 39c0b830
......@@ -68,7 +68,8 @@ char *readtext(long *line,FILE *stream,long dflt)
if(p != NULL)
*p = '\0';
for(i=1,j=0;i<k && j<sizeof(str)-1;j++) {
if(buf[i]=='\\') { /* escape */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment