Subj : New Defects reported by C To : cov-scan@synchro.net From : scan-admin@coverity.com Date : Sat Nov 02 2024 12:39:00 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 --- þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net .