TIP: Click on subject to list as thread! ANSI
echo: sync_programming
to: cov-scan@synchro.net
from: scan-admin@coverity.com
date: 2023-07-21 12:39:00
subject: New Defects reported by C

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 462777:  Error handling issues  (CHECKED_RETURN)
/sbbsecho.c: 1796 in alter_areas()


________________________________________________________________________________________________________
*** CID 462777:  Error handling issues  (CHECKED_RETURN)
/sbbsecho.c: 1796 in alter_areas()
1790     			chmod(outpath, st.st_mode);
1791     		if(cfg.areafile_backups == 0 || !backup(cfg.areafile, cfg.areafile_backups, /* ren: */TRUE))
1792     			delfile(cfg.areafile, __LINE__);					/* Delete AREAS.BBS */
1793     		if(rename(outpath,cfg.areafile))		   /* Rename new AREAS.BBS file */
1794     			lprintf(LOG_ERR,"ERROR line %d renaming %s to %s",__LINE__,outpath,cfg.areafile);
1795     	}
>>>     CID 462777:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "remove(outpath)" without checking return value. This library function may fail and return an error code.
1796     	remove(outpath); // expected to fail (file does not exist) much of the time
1797     }
1798
1799     bool add_sub_to_arealist(sub_t* sub, fidoaddr_t uplink)
1800     {
1801     	FILE* fp = NULL;


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yp-2FP9gGRhvFklLaQKuBylUrkMFB3WMR2p7qIYKYTZrh4BbWTBf-2B-2Fi5ZUVF-2Fo-2B6flxo-3D9Jsa_g4j7BHlu96plUOfCQsO0yRjoWZCZl8YGnZ-2FUtT39hrBb4277PBgEvmZlC-2F75f6Wn0OW7OlFk2c1B-2BHtshOYvFkBSQP9EqEdk2ezaBaEw-2BucLGwfFouHIfPe-2Fyudqe7-2BvtImpG7nG3GNHNovDhmEdP7PSdTfD3wACCQeKNpizxWyAzNP4xAGsoa5IGtqS3OShzACd7MFIxkk2Y7iSTOvrLw-3D-3D


--- SBBSecho 3.20-Linux
                                                                                 
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.