Hi,
Please find the latest report on new defect(s) introduced to Synchronet found with Coverity Scan.
1 new defect(s) introduced to Synchronet found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 486477: Error handling issues (CHECKED_RETURN)
/writemsg.cpp: 416 in sbbs_t::writemsg(const char *, const char *, char *, int, int, const char *, const char *, const char **, const char **)()
________________________________________________________________________________________________________
*** CID 486477: Error handling issues (CHECKED_RETURN)
/writemsg.cpp: 416 in sbbs_t::writemsg(const char *, const char *, char *, int, int, const char *, const char *, const char **, const char **)()
410 free(buf);
411 return(false);
412 }
413 if(!i && linesquoted)
414 break;
415 if(!i || quote[0]==all_key()) { /* Quote all */
>>> CID 486477: Error handling issues (CHECKED_RETURN)
>>> Calling "fseek(stream, l, 0)" without checking return value. This library function may fail and return an error code.
416 fseek(stream,l,SEEK_SET);
417 while(!feof(stream) && !ferror(stream)) {
418 if(!fgets(str,sizeof(str),stream))
419 break;
420 quotestr(str);
421 SAFEPRINTF2(tmp,quote_fmt,cols-4,str);
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yp-2FP9gGRhvFklLaQKuBylUrkMFB3WMR2p7qIYKYTZrh4E6fW2ok94RcmG1J20ETIf4-3D2gqt_g4j7BHlu96plUOfCQsO0yRjoWZCZl8YGnZ-2FUtT39hrDyBxF-2BuedSB2oLaNTy6psp3Cor4F0rz-2B4SwaIkEVyFE7FwRjEukPY43bM1L1Hi7YMYgyrb0V1krz3N47RLZR8GIqMuk2Z3RqE2OO4o9y0KvmmLDJLp5jbtMBebo-2FmfheUw1RP41SRg-2FK16Oi1OoUubPmh6iPKTPVX1V81t13b6sA-3D-3D
--- SBBSecho 3.20-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
|