Subj : New Defects reported by Coverity Scan for Synchronet To : All From : scan-admin@coverity.com Date : Wed Sep 24 2025 12:45:25 ----==_mimepart_68d3e7e5d7b6_b44382cc43c0b59a0513eb 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 630343: (ATOMICITY) /tmp/sbbs-Sep-24-2025/src/conio/bitmap_con.c: 1581 in bitmap_setfont() /tmp/sbbs-Sep-24-2025/src/conio/bitmap_con.c: 1577 in bitmap_setfont() _____________________________________________________________________________________________ *** CID 630343: (ATOMICITY) /tmp/sbbs-Sep-24-2025/src/conio/bitmap_con.c: 1581 in bitmap_setfont() 1575 new=malloc(ti.screenwidth*ti.screenheight*sizeof(*new)); 1576 if(!new) { 1577 free(old); 1578 assert_rwlock_unlock(&vstatlock); 1579 return 0; 1580 } >>> CID 630343: (ATOMICITY) >>> Using an unreliable value of "old" inside the second locked section. If the data that "old" depends on was changed by another thread, this use might be incorrect. 1581 pold=old; 1582 pnew=new; 1583 for(row=0; row>> CID 630343: (ATOMICITY) >>> Using an unreliable value of "old" inside the second locked section. If the data that "old" depends on was changed by another thread, this use might be incorrect. 1577 free(old); 1578 assert_rwlock_unlock(&vstatlock); 1579 return 0; 1580 } 1581 pold=old; 1582 pnew=new; ________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/synchronet?tab=overview ----==_mimepart_68d3e7e5d7b6_b44382cc43c0b59a0513eb 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 630343:         (ATOMICITY)
/tmp/sbbs-Sep-24-2025/src/conio/bitmap_con.c: 1581           in bitmap_setfont()
/tmp/sbbs-Sep-24-2025/src/conio/bitmap_con.c: 1577           in bitmap_setfont()


_____________________________________________________________________________________________
*** CID 630343:           (ATOMICITY)
/tmp/sbbs-Sep-24-2025/src/conio/bitmap_con.c: 1581             in bitmap_setfont()
1575     			new=malloc(ti.screenwidth*ti.screenheight*sizeof(*new));
1576     			if(!new) {
1577     				free(old);
1578     				assert_rwlock_unlock(&vstatlock);
1579     				return 0;
1580     			}
>>>     CID 630343:           (ATOMICITY)
>>>     Using an unreliable value of "old" inside the second locked section. If the data that "old" depends on was changed by another thread, this use might be incorrect.
1581     			pold=old;
1582     			pnew=new;
1583     			for(row=0; row<ti.screenheight; row++) {
1584     				for(col=0; col<ti.screenwidth; col++) {
1585     					if(row < oh) {
1586     						if(col < ow) {
/tmp/sbbs-Sep-24-2025/src/conio/bitmap_con.c: 1577             in bitmap_setfont()
1571     			bitmap_vmem_gettext_locked(1,1,ow,oh,old);
1572     			assert_rwlock_unlock(&vstatlock);
1573     			textmode(newmode);
1574     			assert_rwlock_wrlock(&vstatlock);
1575     			new=malloc(ti.screenwidth*ti.screenheight*sizeof(*new));
1576     			if(!new) {
>>>     CID 630343:           (ATOMICITY)
>>>     Using an unreliable value of "old" inside the second locked section. If the data that "old" depends on was changed by another thread, this use might be incorrect.
1577     				free(old);
1578     				assert_rwlock_unlock(&vstatlock);
1579     				return 0;
1580     			}
1581     			pold=old;
1582     			pnew=new;

  

View Defects in Coverity Scan

Best regards,

The Coverity Scan Admin Team

----==_mimepart_68d3e7e5d7b6_b44382cc43c0b59a0513eb-- --- þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net .