Subj : New Defects reported by Coverity Scan for Synchronet To : cov-scan@synchro.net From : scan-admin@coverity.com Date : Mon Jan 30 2023 01:36 pm Hi, Please find the latest report on new defect(s) introduced to Synchronet found with Coverity Scan. 2 new defect(s) introduced to Synchronet found with Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 2 of 2 defect(s) ** CID 435652: High impact quality (Y2K38_SAFETY) /logfile.cpp: 46 in hacklog() ________________________________________________________________________________________________________ *** CID 435652: High impact quality (Y2K38_SAFETY) /logfile.cpp: 46 in hacklog() 40 return false; 41 42 inet_addrtop(addr, ip, sizeof(ip)); 43 fprintf(fp,"SUSPECTED %s HACK ATTEMPT for user '%s' on %.24s%sUsing port %u at %s [%s]%s" 44 ,prot 45 ,user >>> CID 435652: High impact quality (Y2K38_SAFETY) >>> A "time_t" value is stored in an integer with too few bits to accommodate it. The expression "now" is cast to "time32_t". 46 ,timestr(cfg, (time32_t)now, tstr) 47 ,log_line_ending 48 ,inet_addrport(addr) 49 ,host 50 ,ip 51 ,log_line_ending ** CID 435651: High impact quality (Y2K38_SAFETY) /logfile.cpp: 102 in spamlog() ________________________________________________________________________________________________________ *** CID 435651: High impact quality (Y2K38_SAFETY) /logfile.cpp: 102 in spamlog() 96 if(from==NULL) 97 from=host; 98 99 fprintf(fp, "SUSPECTED %s SPAM %s on %.24s%sHost: %s [%s]%sFrom: %.128s %s%s" 100 ,prot 101 ,action >>> CID 435651: High impact quality (Y2K38_SAFETY) >>> A "time_t" value is stored in an integer with too few bits to accommodate it. The expression "now" is cast to "time32_t". 102 ,timestr(cfg, (time32_t)now, tstr) 103 ,log_line_ending 104 ,host 105 ,ip_addr 106 ,log_line_ending 107 ,from ________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yp-2FP9gGRhvFklLaQKuBylUrkMFB3WMR2p7qIYKYTZrh4BbWTBf-2B-2Fi5ZUVF-2Fo-2B6flxo-3DrmwL_g4j7BHlu96plUOfCQsO0yRjoWZCZl8YGnZ-2FUtT39hrD1h-2BJFDuaPIzN3MjUxXvYYHQg-2Fq-2FfU-2Fa0iL0wmBIUr-2BFn-2Bh5d5qL-2FdY2FQedxymvZp-2Fl55lN-2BSO3rsaz-2BpIvPpEo8wZX8gGIoIufwknwcoNkG-2FC8e4PiByeZMHapM18xVRoUJvvlaXk0sHvmcwKAwJTorTghaXM6HlUMk6GBouCg-3D-3D .