BBS:      TELESC.NET.BR
Assunto:  New Defects reported by Coverity Scan for Synchronet
De:       scan-admin@coverity.com
Data:     Fri, 13 Mar 2026 13:00:05 +0000
-----------------------------------------------------------
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 644892:       Resource leaks  (RESOURCE_LEAK)
/smbutil.c: 836           in maint()


_____________________________________________________________________________________________
*** CID 644892:         Resource leaks  (RESOURCE_LEAK)
/smbutil.c: 836             in maint()
830     	l = fread(idxbuf, idxreclen, smb.status.total_msgs, smb.sid_fp);
831
832     	printf("\nDone.\n\n");
833     	printf("Scanning for pre-flagged messages...\n");
834     	for (m = 0; m < l; m++) {
835     		if (terminated)
>>>     CID 644892:         Resource leaks  (RESOURCE_LEAK)
>>>     Variable "idxbuf" going out of scope leaks the storage it points to.
836     			return;
837     		idx = (idxrec_t*)(idxbuf + (m * idxreclen));
838     //		printf("\r%2lu%%",m ? (long)(100.0/((float)l/m)) : 0);
839     		if (idx->attr & MSG_DELETE)
840     			flagged++;
841     	}


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/synchronet?tab=overview


n
---
 * mSynchronetn * hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]