Subj : New Defects reported by Coverity Scan for Synchronet To : All From : scan-admin@coverity.com Date : Thu Aug 20 2026 12:49:16 ----==_mimepart_6a86f7cb759c0_1065402c19123819ac73024 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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. 2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 1 of 1 defect(s) ** CID 653403: Insecure data handling (INTEGER_OVERFLOW) /userdat.c: 214 in total_users() _____________________________________________________________________________________________ *** CID 653403: Insecure data handling (INTEGER_OVERFLOW) /userdat.c: 214 in total_users() 208 lock is a synchronous round-trip that dominates the cost of this scan 209 when the data directory is network-mounted, and no amount of locking 210 makes the result more current than the snapshot it already is. */ 211 do { 212 got = 0; 213 while (got < bufsize) { >>> CID 653403: Insecure data handling (INTEGER_OVERFLOW) >>> "64000UL - got", which might have underflowed, is passed to "read(file, buf + got, 64000UL - got)". 214 ssize_t rd = read(file, buf + got, bufsize - got); 215 if (rd <= 0) 216 break; 217 got += (size_t)rd; 218 } 219 for (size_t offset = 0; offset + USER_RECORD_LINE_LEN <= got; offset += USER_RECORD_LINE_LEN) { ________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/synchronet?tab=overview ----==_mimepart_6a86f7cb759c0_1065402c19123819ac73024 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit New Defects Reported - Synchronet

Hi,

Please find the latest report on new defect(s) introduced to Synchronet found with Coverity Scan.

Defect Details

** CID 653403:       Insecure data handling  (INTEGER_OVERFLOW)
/userdat.c: 214           in total_users()


_____________________________________________________________________________________________
*** CID 653403:         Insecure data handling  (INTEGER_OVERFLOW)
/userdat.c: 214             in total_users()
208     	   lock is a synchronous round-trip that dominates the cost of this scan
209     	   when the data directory is network-mounted, and no amount of locking
210     	   makes the result more current than the snapshot it already is. */
211     	do {
212     		got = 0;
213     		while (got < bufsize) {
>>>     CID 653403:         Insecure data handling  (INTEGER_OVERFLOW)
>>>     "64000UL - got", which might have underflowed, is passed to "read(file, buf + got, 64000UL - got)".
214     			ssize_t rd = read(file, buf + got, bufsize - got);
215     			if (rd <= 0)
216     				break;
217     			got += (size_t)rd;
218     		}
219     		for (size_t offset = 0; offset + USER_RECORD_LINE_LEN <= got; offset += USER_RECORD_LINE_LEN) {

  

View Defects in Coverity Scan

Best regards,

The Coverity Scan Admin Team

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