TIP: Click on subject to list as thread! ANSI
echo: sync_programming
to: cov-scan@synchro.net
from: scan-admin@coverity.com
date: 2022-03-28 12:55: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.
11 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 351271:  Null pointer dereferences  (REVERSE_INULL)
/tmp/sbbs-Mar-28-2022/src/xpdev/dirwrap.c: 319 in globi()


________________________________________________________________________________________________________
*** CID 351271:  Null pointer dereferences  (REVERSE_INULL)
/tmp/sbbs-Mar-28-2022/src/xpdev/dirwrap.c: 319 in globi()
313     	glob_t *g)
314     {
315     	char pattern[MAX_PATH * 2] = "";
316     	int len = 0;
317     	char* fname = getfname(p);
318
>>>     CID 351271:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "p" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
319     	if(p != NULL) {
320     		while(*p != '\0' && len < MAX_PATH) {
321     			if(p >= fname && IS_ALPHA(*p))
322     				len += sprintf(pattern + len, "[%c%c]", toupper(*p), tolower(*p));
323     			else
324     				pattern[len++] = *p;


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yp-2FP9gGRhvFklLaQKuBylUrkMFB3WMR2p7qIYKYTZrh4BbWTBf-2B-2Fi5ZUVF-2Fo-2B6flxo-3D3MQr_g4j7BHlu96plUOfCQsO0yRjoWZCZl8YGnZ-2FUtT39hrBHCLgLiAqWvsdsSvMvtYRCVKtxNV9b8XfYRQl1Ph-2BqJxQ0Ygv34l5-2Fu4fQtvx42Zh-2BRqVcRiGi7S56cijYNtVbyD93ITXFymk8m5C7-2FMScQUBSp3YH64ZEI9TV8-2FzGIfTTZKmGolrhJJ9NnUb4cpVgmkjY8SxgJG-2BJjiOIj1S6-2F1wje55yIH-2FtPFPTWUFvz7Y-3D


--- SBBSecho 3.15-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™.