Subj : New Defects reported by Coverity Scan for Synchronet To : cov-scan@synchro.net From : scan-admin@coverity.com Date : Wed Jan 08 2025 13:40:58 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 529977: Incorrect expression (SIZEOF_MISMATCH) /atcodes.cpp: 2311 in sbbs_t::atcode(const char *, char *, unsigned long, int *, bool, JSObject *)() ________________________________________________________________________________________________________ *** CID 529977: Incorrect expression (SIZEOF_MISMATCH) /atcodes.cpp: 2311 in sbbs_t::atcode(const char *, char *, unsigned long, int *, bool, JSObject *)() 2305 : (current_file->from == nullptr ? nulstr : current_file->from); 2306 if(strcmp(sp, "FILE_BYTES") == 0) { 2307 safe_snprintf(str, maxlen, "%ld", (long)current_file->size); 2308 return str; 2309 } 2310 if(strcmp(sp, "FILE_SIZE") == 0) >>> CID 529977: Incorrect expression (SIZEOF_MISMATCH) >>> Passing argument "str" of type "char *" and argument "8UL /* sizeof (str) */" to function "byte_estimate_to_str" is suspicious. 2311 return byte_estimate_to_str(current_file->size, str, sizeof str, /* units: */1024, /* precision: */1); 2312 if(strcmp(sp, "FILE_CREDITS") == 0) { 2313 safe_snprintf(str, maxlen, "%" PRIu64, current_file->cost); 2314 return str; 2315 } 2316 if(strcmp(sp, "FILE_CRC32") == 0) { ________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, http://url2497.blackduck.com/ls/click?upn=u001.Ji18sHaXCxZb7Rfw8sC51j9Suwl84vq-2FeHTSxCm409PbgTgYEdi2VnuaQNlDgcb5JjALxNeaZf2yWZEMA-2FE6JEQm092Z-2B02AUi7Sp54Z-2B6I-3DjXBk_7FYjIqE8olEh4k02KWtt1r1LGSyuXVEtCuKuJCXgAQZ-2BccbwOBuD5ui7v9trYaUtAyk5nXDg6l2xX3MkPoD01xhpnfT-2Fkg6ap91bIfb4XqTQXNlxWOzjRjRNOVMZ2H7I9Q-2BXHowhaav-2B3SVUHs-2B21No7COFVbHUcCKKxzwKovyWxOeYInAxTYvAJs43a5sYtCMrwgWJgXbztBD8zm37Rwg-3D-3D --- þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net .