TIP: Click on subject to list as thread! ANSI
echo: sync_programming
to: cov-scan@synchro.net
from: scan-admin@coverity.com
date: 2024-03-03 13:41: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.
3 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 487672:  Null pointer dereferences  (NULL_RETURNS)
/tmp/sbbs-Mar-03-2024/src/xpdev/datewrap.c: 36 in checktime()


________________________________________________________________________________________________________
*** CID 487672:  Null pointer dereferences  (NULL_RETURNS)
/tmp/sbbs-Mar-03-2024/src/xpdev/datewrap.c: 36 in checktime()
30     	struct tm	gmt;
31     	struct tm	tm;
32
33     	memset(&tm,0,sizeof(tm));
34     	tm.tm_year=94;
35     	tm.tm_mday=1;
>>>     CID 487672:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a pointer that might be "NULL" "gmtime_r(&t, &gmt)" when calling "mktime".
36     	return mktime(&tm) - mktime(gmtime_r(&t,&gmt));
37     }
38
39     /* Compensates for struct tm "weirdness" */
40     time_t sane_mktime(struct tm* tm)
41     {


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=u001.AxU2LYlgjL6eX23u9ErQy-2BKADyCpvUKOL6EWmZljiu4gdQbQRNsarCbK0jIoVQSWT2zCPijRqaed4AhLiEI9Z7MR9SJQ09ot5XPbn9SW-2F14-3D-9vV_7FYjIqE8olEh4k02KWtt1r1LGSyuXVEtCuKuJCXgAQbdS62iBETJxCjfqof1M6S95WSy-2FViK1FGVTyAQx6ozqlGvN9awUs6gtEF2eXLxZfTJjLLUyT0fwRFvEc99-2BOQhjAl2O2TUGD1ycgVDsPOsObe7L7LzV-2FFPKXyVz9z9YuZdACZlhk3hv8V4jfGont8ig4eUY-2FGqtqgGqZWYwmWkLQ-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™.