TIP: Click on subject to list as thread! ANSI
echo: sync_programming
to: cov-scan@synchro.net
from: scan-admin@coverity.com
date: 2024-11-02 12:39: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.


New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 512127:    (Y2K38_SAFETY)
/scfg/scfgsys.c: 1367 in edit_sys_date_verbal()
/scfg/scfgsys.c: 1368 in edit_sys_date_verbal()


________________________________________________________________________________________________________
*** CID 512127:    (Y2K38_SAFETY)
/scfg/scfgsys.c: 1367 in edit_sys_date_verbal()
1361
1362     int edit_sys_date_verbal(int page, int total)
1363     {
1364     	int mode = WIN_SAV | WIN_MID;
1365     	int i = cfg.sys_date_verbal;
1366     	time_t t = time(NULL);
>>>     CID 512127:    (Y2K38_SAFETY)
>>>     A "time_t" value is stored in an integer with too few bits to accommodate it.  The expression "t" is cast to "time32_t".
1367     	snprintf(opt[0],MAX_OPLN,"Numeric (e.g. %s)", unixtodstr(&cfg, (time32_t)t, tmp));
1368     	snprintf(opt[1],MAX_OPLN,"Verbal  (e.g. %s)", verbal_datestr(&cfg, (time32_t)t, tmp));
1369     	opt[2][0] = '\0';
1370     	uifc.helpbuf=
1371     		"`Short Date Display Format:`\n"
1372     		"\n"
/scfg/scfgsys.c: 1368 in edit_sys_date_verbal()
1362     int edit_sys_date_verbal(int page, int total)
1363     {
1364     	int mode = WIN_SAV | WIN_MID;
1365     	int i = cfg.sys_date_verbal;
1366     	time_t t = time(NULL);
1367     	snprintf(opt[0],MAX_OPLN,"Numeric (e.g. %s)", unixtodstr(&cfg, (time32_t)t, tmp));
>>>     CID 512127:    (Y2K38_SAFETY)
>>>     A "time_t" value is stored in an integer with too few bits to accommodate it.  The expression "t" is cast to "time32_t".
1368     	snprintf(opt[1],MAX_OPLN,"Verbal  (e.g. %s)", verbal_datestr(&cfg, (time32_t)t, tmp));
1369     	opt[2][0] = '\0';
1370     	uifc.helpbuf=
1371     		"`Short Date Display Format:`\n"
1372     		"\n"
1373     		"If you would like short (8 character) dates to be displayed using verbal\n"


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=u001.AxU2LYlgjL6eX23u9ErQy-2BKADyCpvUKOL6EWmZljiu4gdQbQRNsarCbK0jIoVQSWT2zCPijRqaed4AhLiEI9Z7MR9SJQ09ot5XPbn9SW-2F14-3DIT5o_7FYjIqE8olEh4k02KWtt1r1LGSyuXVEtCuKuJCXgAQavH6tAPUwXIDKUPRKBZGiRgKLj76Ij0uFpD4UCNwTCVen1QmVBk6yGbzTBSC2-2BxBE0GJfAoW-2B-2BWaxWl51M-2B9mp1hicInwTEKrQ8chQM9yGDR81PWtwXM-2Bq2j5YCl48NKAoGGKYo0R42EciGZugnM0LqGuohrShDzTlibesBwTavw-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™.