Subj : New Defects reported by Coverity Scan for Synchronet To : All From : scan-admin@coverity.com Date : Sun Jul 20 2025 12:45:55 ----==_mimepart_687ce502ba0a3_2748642bf92199999045dc Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 582443: High impact quality (Y2K38_SAFETY) /sexyz.c: 1356 in receive_files() _____________________________________________________________________________________________ *** CID 582443: High impact quality (Y2K38_SAFETY) /sexyz.c: 1356 in receive_files() 1350 if (!t) 1351 t = 1; 1352 if (zm.file_skipped) 1353 lprintf(LOG_WARNING, "File Skipped"); 1354 else if (success) 1355 lprintf(LOG_INFO, "Successful - Time: %s CPS: %lu" >>> CID 582443: High impact quality (Y2K38_SAFETY) >>> A "time_t" value is stored in an integer with too few bits to accommodate it. The expression "t" is cast to "uint". 1356 , seconds_to_str((uint)t, tmp), (ulong)(file_bytes / t)); 1357 else 1358 lprintf(LOG_ERR, "File Transfer %s" 1359 , zm.local_abort ? "Aborted": zm.cancelled ? "Cancelled":"Failure"); 1360 1361 if (!(mode & XMODEM) && ftime) ** CID 582442: (Y2K38_SAFETY) /sexyz.c: 994 in send_files() /sexyz.c: 1069 in send_files() _____________________________________________________________________________________________ *** CID 582442: (Y2K38_SAFETY) /sexyz.c: 994 in send_files() 988 xm.sent_files++; 989 xm.sent_bytes += fsize; 990 if (zm.file_skipped) 991 lprintf(LOG_WARNING, "File Skipped"); 992 else 993 lprintf(LOG_INFO, "Successful - Time: %s CPS: %u" >>> CID 582442: (Y2K38_SAFETY) >>> A "time_t" value is stored in an integer with too few bits to accommodate it. The expression "t" is cast to "uint". 994 , seconds_to_str((uint)t, tmp) 995 , cps); 996 997 if (xm.total_files - xm.sent_files) 998 lprintf(LOG_INFO, "Remaining - Time: %s Files: %lu KBytes: %" PRId64 999 , seconds_to_str((uint)((xm.total_bytes - xm.sent_bytes) / cps), tmp) /sexyz.c: 1069 in send_files() 1063 } 1064 if (xm.total_files > 1) { 1065 t = time(NULL) - startall; 1066 if (!t) 1067 t = 1; 1068 lprintf(LOG_INFO, "Overall - Time %s KBytes: %" PRId64 " CPS: %lu" >>> CID 582442: (Y2K38_SAFETY) >>> A "time_t" value is stored in an integer with too few bits to accommodate it. The expression "t" is cast to "uint". 1069 , seconds_to_str((uint)t, tmp) 1070 , total_bytes / 1024, total_bytes / t); 1071 } 1072 return 0; /* success */ 1073 } 1074 ________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/synchronet?tab=overview ----==_mimepart_687ce502ba0a3_2748642bf92199999045dc Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit
Hi,
Please find the latest report on new defect(s) introduced to Synchronet found with Coverity Scan.
** CID 582443: High impact quality (Y2K38_SAFETY)
/sexyz.c: 1356 in receive_files()
_____________________________________________________________________________________________
*** CID 582443: High impact quality (Y2K38_SAFETY)
/sexyz.c: 1356 in receive_files()
1350 if (!t)
1351 t = 1;
1352 if (zm.file_skipped)
1353 lprintf(LOG_WARNING, "File Skipped");
1354 else if (success)
1355 lprintf(LOG_INFO, "Successful - Time: %s CPS: %lu"
>>> CID 582443: High impact quality (Y2K38_SAFETY)
>>> A "time_t" value is stored in an integer with too few bits to accommodate it. The expression "t" is cast to "uint".
1356 , seconds_to_str((uint)t, tmp), (ulong)(file_bytes / t));
1357 else
1358 lprintf(LOG_ERR, "File Transfer %s"
1359 , zm.local_abort ? "Aborted": zm.cancelled ? "Cancelled":"Failure");
1360
1361 if (!(mode & XMODEM) && ftime)
** CID 582442: (Y2K38_SAFETY)
/sexyz.c: 994 in send_files()
/sexyz.c: 1069 in send_files()
_____________________________________________________________________________________________
*** CID 582442: (Y2K38_SAFETY)
/sexyz.c: 994 in send_files()
988 xm.sent_files++;
989 xm.sent_bytes += fsize;
990 if (zm.file_skipped)
991 lprintf(LOG_WARNING, "File Skipped");
992 else
993 lprintf(LOG_INFO, "Successful - Time: %s CPS: %u"
>>> CID 582442: (Y2K38_SAFETY)
>>> A "time_t" value is stored in an integer with too few bits to accommodate it. The expression "t" is cast to "uint".
994 , seconds_to_str((uint)t, tmp)
995 , cps);
996
997 if (xm.total_files - xm.sent_files)
998 lprintf(LOG_INFO, "Remaining - Time: %s Files: %lu KBytes: %" PRId64
999 , seconds_to_str((uint)((xm.total_bytes - xm.sent_bytes) / cps), tmp)
/sexyz.c: 1069 in send_files()
1063 }
1064 if (xm.total_files > 1) {
1065 t = time(NULL) - startall;
1066 if (!t)
1067 t = 1;
1068 lprintf(LOG_INFO, "Overall - Time %s KBytes: %" PRId64 " CPS: %lu"
>>> CID 582442: (Y2K38_SAFETY)
>>> A "time_t" value is stored in an integer with too few bits to accommodate it. The expression "t" is cast to "uint".
1069 , seconds_to_str((uint)t, tmp)
1070 , total_bytes / 1024, total_bytes / t);
1071 }
1072 return 0; /* success */
1073 }
1074
Best regards,
The Coverity Scan Admin Team