• New Defects reported by Coverity Scan for Synchronet

    From scan-admin@coverity.com@1:103/705 to cov-scan@synchro.net on Thu Oct 29 13:36:26 2026

    ----==_mimepart_6ae34bd9ef287_10902cef522df99c9066b
    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.

    4 new defect(s) introduced to Synchronet found with Coverity Scan.
    2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

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


    ** CID 661304: Concurrent data access violations (MISSING_LOCK) /js_socket.cpp: 374 in do_js_close(JSContext *, js_socket_private_t *, bool)()


    _____________________________________________________________________________________________
    *** CID 661304: Concurrent data access violations (MISSING_LOCK) /js_socket.cpp: 374 in do_js_close(JSContext *, js_socket_private_t *, bool)()
    368
    369 static void do_js_close(JSContext *cx, js_socket_private_t *p, bool finalize)
    370 {
    371 size_t i;
    372
    373 if (p->tls_pending) {
    CID 661304: Concurrent data access violations (MISSING_LOCK) >>> Accessing "p->tls_pending->sock" without holding lock "js_socket_tls_pending.mutex". Elsewhere, "js_socket_tls_pending.sock" is written to with "js_socket_tls_pending.mutex" held 1 out of 1 times.
    374 SOCKET sock = p->tls_pending->sock;
    375 // Cancellation precedes closing the notification endpoint.
    376 js_socket_cancel_tls_private(p);
    377 if (p->js_cb)
    378 remove_js_socket_event(cx, p->js_cb, sock);
    379 }

    ** CID 661303: Insecure data handling (INTEGER_OVERFLOW)
    /userdat.c: 1992 in finduserstr_ex()


    _____________________________________________________________________________________________
    *** CID 661303: Insecure data handling (INTEGER_OVERFLOW)
    /userdat.c: 1992 in finduserstr_ex()
    1986 overlapping a record another process holds locked fails; any record
    1987 not read in bulk is then read singly, taking the lock. */
    1988 size_t want = (size_t)count * USER_RECORD_LINE_LEN; 1989 size_t got = 0;
    1990 if (seekuserdat(file, unum)) {
    1991 while (got < want) {
    CID 661303: Insecure data handling (INTEGER_OVERFLOW)
    "want - got", which might have underflowed, is passed to "read(file, buf + got, want - got)".
    1992 ssize_t rd = read(file, buf + got, want - got);
    1993 if (rd <= 0)
    1994 break;
    1995 got += (size_t)rd;
    1996 }
    1997 }

    ** CID 661302: Error handling issues (CHECKED_RETURN)
    /js_socket.cpp: 2648 in js_socket_tls_thread(void *)()


    _____________________________________________________________________________________________
    *** CID 661302: Error handling issues (CHECKED_RETURN)
    /js_socket.cpp: 2648 in js_socket_tls_thread(void *)()
    2642 if (status == CRYPT_OK && !cancelled)
    2643 status = js_socket_activate_tls(pending->session, true, &pending->cert);
    2644 pthread_mutex_lock(&pending->mutex);
    2645 pending->status = status;
    2646 /* The event endpoint remains open until cancellation has set this flag. */
    2647 if (!pending->cancelled)
    CID 661302: Error handling issues (CHECKED_RETURN)
    Calling "send(pending->notify, "x", 1UL, 0)" without checking return value. This library function may fail and return an error code.
    2648 send(pending->notify, "x", 1, 0);
    2649 pthread_mutex_unlock(&pending->mutex);
    2650 js_socket_complete_tls_worker(pending);
    2651 }
    2652
    2653 JSBool js_socket_finish_tls(JSContext *cx, JSObject *obj)

    ** CID 661301: Concurrent data access violations (MISSING_LOCK) /js_socket.cpp: 2636 in js_socket_tls_thread(void *)()


    _____________________________________________________________________________________________
    *** CID 661301: Concurrent data access violations (MISSING_LOCK) /js_socket.cpp: 2636 in js_socket_tls_thread(void *)()
    2630 static void js_socket_tls_thread(void *arg)
    2631 {
    2632 js_socket_tls_pending *pending = static_cast<js_socket_tls_pending *>(arg);
    2633 SetThreadName("sbbs/jsTLS");
    2634 int status = CRYPT_ERROR_NOTINITED;
    2635 if (ssl_sync(pending->cfg, pending->logger)) {
    CID 661301: Concurrent data access violations (MISSING_LOCK) >>> Accessing "pending->session" without holding lock "js_socket_tls_pending.mutex". Elsewhere, "js_socket_tls_pending.session" is written to with "js_socket_tls_pending.mutex" held 1 out of 1 times.
    2636 status = add_private_key(pending->cfg, pending->logger, pending->session);
    2637 pending->key_added = status == CRYPT_OK;
    2638 }
    2639 pthread_mutex_lock(&pending->mutex);
    2640 bool cancelled = pending->cancelled;
    2641 pthread_mutex_unlock(&pending->mutex);


    ________________________________________________________________________________________________________
    To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/synchronet?tab=overview


    ----==_mimepart_6ae34bd9ef287_10902cef522df99c9066b
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>New Defects Reported - Synchronet</title>
    <style>
    body { font-family: Arial, sans-serif; color: #222; line-height: 1.6; }
    .button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    font-size: 16px;
    color: #fff !important;
    background-color: #0056b3;
    text-decoration: none;
    border-radius: 5px;
    }
    pre {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    overflow-x: auto;
    }
    </style>
    </head>
    <body>
    <p>Hi,</p>

    <p>
    Please find the latest report on new defect(s) introduced to <strong>Synchronet</strong>
    found with Coverity Scan.
    </p>

    <ul>
    <li><strong>New Defects Found:</strong> 4</li>
    <li>
    2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
    </li>
    <li><strong>Defects Shown:</strong> Showing 4 of 4 defect(s)</li>
    </ul>

    <h3>Defect Details</h3>
    <pre>
    ** CID 661304: Concurrent data access violations (MISSING_LOCK) /js_socket.cpp: 374 in do_js_close(JSContext *, js_socket_private_t *, bool)()


    _____________________________________________________________________________________________
    *** CID 661304: Concurrent data access violations (MISSING_LOCK) /js_socket.cpp: 374 in do_js_close(JSContext *, js_socket_private_t *, bool)()
    368
    369 static void do_js_close(JSContext *cx, js_socket_private_t *p, bool finalize)
    370 {
    371 size_t i;
    372
    373 if (p-&gt;tls_pending) {
    &gt;&gt;&gt; CID 661304: Concurrent data access violations (MISSING_LOCK)
    &gt;&gt;&gt; Accessing &quot;p-&gt;tls_pending-&gt;sock&quot; without holding lock &quot;js_socket_tls_pending.mutex&quot;. Elsewhere, &quot;js_socket_tls_pending.sock&quot; is written to with &quot;js_socket_tls_pending.mutex&quot; held 1 out of 1 times.
    374 SOCKET sock = p-&gt;tls_pending-&gt;sock;
    375 // Cancellation precedes closing the notification endpoint.
    376 js_socket_cancel_tls_private(p);
    377 if (p-&gt;js_cb)
    378 remove_js_socket_event(cx, p-&gt;js_cb, sock); 379 }

    ** CID 661303: Insecure data handling (INTEGER_OVERFLOW)
    /userdat.c: 1992 in finduserstr_ex()


    _____________________________________________________________________________________________
    *** CID 661303: Insecure data handling (INTEGER_OVERFLOW)
    /userdat.c: 1992 in finduserstr_ex()
    1986 overlapping a record another process holds locked fails; any record
    1987 not read in bulk is then read singly, taking the lock. */
    1988 size_t want = (size_t)count * USER_RECORD_LINE_LEN; 1989 size_t got = 0;
    1990 if (seekuserdat(file, unum)) {
    1991 while (got &lt; want) {
    &gt;&gt;&gt; CID 661303: Insecure data handling (INTEGER_OVERFLOW) &gt;&gt;&gt; &quot;want - got&quot;, which might have underflowed, is passed to &quot;read(file, buf + got, want - got)&quot;.
    1992 ssize_t rd = read(file, buf + got, want - got);
    1993 if (rd &lt;= 0)
    1994 break;
    1995 got += (size_t)rd;
    1996 }
    1997 }

    ** CID 661302: Error handling issues (CHECKED_RETURN)
    /js_socket.cpp: 2648 in js_socket_tls_thread(void *)()


    _____________________________________________________________________________________________
    *** CID 661302: Error handling issues (CHECKED_RETURN)
    /js_socket.cpp: 2648 in js_socket_tls_thread(void *)()
    2642 if (status == CRYPT_OK &amp;&amp; !cancelled)
    2643 status = js_socket_activate_tls(pending-&gt;session, true, &amp;pending-&gt;cert);
    2644 pthread_mutex_lock(&amp;pending-&gt;mutex);
    2645 pending-&gt;status = status;
    2646 /* The event endpoint remains open until cancellation has set this flag. */
    2647 if (!pending-&gt;cancelled)
    &gt;&gt;&gt; CID 661302: Error handling issues (CHECKED_RETURN) &gt;&gt;&gt; Calling &quot;send(pending-&gt;notify, &quot;x&quot;, 1UL, 0)&quot; without checking return value. This library function may fail and return an error code.
    2648 send(pending-&gt;notify, &quot;x&quot;, 1, 0);
    2649 pthread_mutex_unlock(&amp;pending-&gt;mutex);
    2650 js_socket_complete_tls_worker(pending);
    2651 }
    2652
    2653 JSBool js_socket_finish_tls(JSContext *cx, JSObject *obj)

    ** CID 661301: Concurrent data access violations (MISSING_LOCK) /js_socket.cpp: 2636 in js_socket_tls_thread(void *)()


    _____________________________________________________________________________________________
    *** CID 661301: Concurrent data access violations (MISSING_LOCK) /js_socket.cpp: 2636 in js_socket_tls_thread(void *)()
    2630 static void js_socket_tls_thread(void *arg)
    2631 {
    2632 js_socket_tls_pending *pending = static_cast&lt;js_socket_tls_pending *&gt;(arg);
    2633 SetThreadName(&quot;sbbs/jsTLS&quot;);
    2634 int status = CRYPT_ERROR_NOTINITED;
    2635 if (ssl_sync(pending-&gt;cfg, pending-&gt;logger)) { &gt;&gt;&gt; CID 661301: Concurrent data access violations (MISSING_LOCK)
    &gt;&gt;&gt; Accessing &quot;pending-&gt;session&quot; without holding lock &quot;js_socket_tls_pending.mutex&quot;. Elsewhere, &quot;js_socket_tls_pending.session&quot; is written to with &quot;js_socket_tls_pending.mutex&quot; held 1 out of 1 times.
    2636 status = add_private_key(pending-&gt;cfg, pending-&gt;logger, pending-&gt;session);
    2637 pending-&gt;key_added = status == CRYPT_OK;
    2638 }
    2639 pthread_mutex_lock(&amp;pending-&gt;mutex);
    2640 bool cancelled = pending-&gt;cancelled;
    2641 pthread_mutex_unlock(&amp;pending-&gt;mutex);

    </pre>

    <p>
    <a href="https://scan.coverity.com/projects/synchronet?tab=overview" class="button">View Defects in Coverity Scan</a>
    </p>

    <p>Best regards,</p>
    <p>The Coverity Scan Admin Team</p>
    <img class="logo" width="140" src="https://scan.coverity.com/assets/BlackDuckLogo-6697adc63e07340464201a2ad534d3d3e44f95d36edda20b140440d34f05372f.svg" />
    </body>
    </html>
    ----==_mimepart_6ae34bd9ef287_10902cef522df99c9066b--

    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From scan-admin@coverity.com@1:103/705 to All on Sun Nov 1 13:49:54 2026

    ----==_mimepart_6ae743822b53b_5c7a2ccda420599c7397c
    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.
    2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

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


    ** CID 661497: (RESOURCE_LEAK)
    /xtrn.cpp: 1996 in sbbs_t::external(const char *, int, const char *, const char *, const char *)()
    /xtrn.cpp: 1996 in sbbs_t::external(const char *, int, const char *, const char *, const char *)()


    _____________________________________________________________________________________________
    *** CID 661497: (RESOURCE_LEAK)
    /xtrn.cpp: 1996 in sbbs_t::external(const char *, int, const char *, const char *, const char *)()
    1990 dup2(fd, STDOUT_FILENO);
    1991 if (!(mode & EX_NOLOG))
    1992 dup2(fd, STDERR_FILENO);
    1993 if (fd > 2)
    1994 close(fd);
    1995 }
    CID 661497: (RESOURCE_LEAK)
    Handle variable "fd" going out of scope leaks the handle.
    1996 }
    1997
    1998 if (mode & EX_BG) /* background execution, detach child */
    1999 {
    2000 if (daemon(TRUE, FALSE) != 0)
    2001 lprintf(LOG_ERR, "!ERROR %d (%s) daemonizing: %s", errno, strerror(errno), argv[0]);
    /xtrn.cpp: 1996 in sbbs_t::external(const char *, int, const char *, const char *, const char *)()
    1990 dup2(fd, STDOUT_FILENO);
    1991 if (!(mode & EX_NOLOG))
    1992 dup2(fd, STDERR_FILENO);
    1993 if (fd > 2)
    1994 close(fd);
    1995 }
    CID 661497: (RESOURCE_LEAK)
    Handle variable "fd" going out of scope leaks the handle.
    1996 }
    1997
    1998 if (mode & EX_BG) /* background execution, detach child */
    1999 {
    2000 if (daemon(TRUE, FALSE) != 0)
    2001 lprintf(LOG_ERR, "!ERROR %d (%s) daemonizing: %s", errno, strerror(errno), argv[0]);

    ** CID 661496: (CHECKED_RETURN)
    /xtrn_sec.cpp: 1369 in sbbs_t::xtrndat(const char *, const char *, unsigned char, unsigned int, unsigned int, const xtrn_t *)()
    /xtrn_sec.cpp: 1359 in sbbs_t::xtrndat(const char *, const char *, unsigned char, unsigned int, unsigned int, const xtrn_t *)()


    _____________________________________________________________________________________________
    *** CID 661496: (CHECKED_RETURN)
    /xtrn_sec.cpp: 1369 in sbbs_t::xtrndat(const char *, const char *, unsigned char, unsigned int, unsigned int, const xtrn_t *)()
    1363 int chmod_result = CHMOD(str, _S_IREAD);
    1364 #else
    1365 int chmod_result = CHMOD(str, S_IRUSR);
    1366 #endif
    1367 if (chmod_result != 0) {
    1368 errormsg(WHERE, ERR_WRITE, str, errno);
    CID 661496: (CHECKED_RETURN)
    Calling "remove(str)" without checking return value. This library function may fail and return an error code.
    1369 remove(str);
    1370 return false;
    1371 }
    1372 }
    1373
    1374 else if (type == XTRN_DOORDROP) { /* DOORDROP.INI 1.0 */ /xtrn_sec.cpp: 1359 in sbbs_t::xtrndat(const char *, const char *, unsigned char, unsigned int, unsigned int, const xtrn_t *)()
    1353 }
    1354 bool write_ok = bbsdev_write(fp, lines, sizeof(lines) / sizeof(lines[0]));
    1355 if (fclose(fp) != 0)
    1356 write_ok = false;
    1357 if (!write_ok) {
    1358 errormsg(WHERE, ERR_WRITE, str, 0);
    CID 661496: (CHECKED_RETURN)
    Calling "remove(str)" without checking return value. This library function may fail and return an error code.
    1359 remove(str);
    1360 return false;
    1361 }
    1362 #if defined(_WIN32)
    1363 int chmod_result = CHMOD(str, _S_IREAD);
    1364 #else


    ________________________________________________________________________________________________________
    To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/synchronet?tab=overview


    ----==_mimepart_6ae743822b53b_5c7a2ccda420599c7397c
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>New Defects Reported - Synchronet</title>
    <style>
    body { font-family: Arial, sans-serif; color: #222; line-height: 1.6; }
    .button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    font-size: 16px;
    color: #fff !important;
    background-color: #0056b3;
    text-decoration: none;
    border-radius: 5px;
    }
    pre {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    overflow-x: auto;
    }
    </style>
    </head>
    <body>
    <p>Hi,</p>

    <p>
    Please find the latest report on new defect(s) introduced to <strong>Synchronet</strong>
    found with Coverity Scan.
    </p>

    <ul>
    <li><strong>New Defects Found:</strong> 2</li>
    <li>
    2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
    </li>
    <li><strong>Defects Shown:</strong> Showing 2 of 2 defect(s)</li>
    </ul>

    <h3>Defect Details</h3>
    <pre>
    ** CID 661497: (RESOURCE_LEAK)
    /xtrn.cpp: 1996 in sbbs_t::external(const char *, int, const char *, const char *, const char *)()
    /xtrn.cpp: 1996 in sbbs_t::external(const char *, int, const char *, const char *, const char *)()


    _____________________________________________________________________________________________
    *** CID 661497: (RESOURCE_LEAK)
    /xtrn.cpp: 1996 in sbbs_t::external(const char *, int, const char *, const char *, const char *)()
    1990 dup2(fd, STDOUT_FILENO);
    1991 if (!(mode &amp; EX_NOLOG))
    1992 dup2(fd, STDERR_FILENO);
    1993 if (fd &gt; 2)
    1994 close(fd);
    1995 }
    &gt;&gt;&gt; CID 661497: (RESOURCE_LEAK)
    &gt;&gt;&gt; Handle variable &quot;fd&quot; going out of scope leaks the handle.
    1996 }
    1997
    1998 if (mode &amp; EX_BG) /* background execution, detach child */
    1999 {
    2000 if (daemon(TRUE, FALSE) != 0)
    2001 lprintf(LOG_ERR, &quot;!ERROR %d (%s) daemonizing: %s&quot;, errno, strerror(errno), argv[0]);
    /xtrn.cpp: 1996 in sbbs_t::external(const char *, int, const char *, const char *, const char *)()
    1990 dup2(fd, STDOUT_FILENO);
    1991 if (!(mode &amp; EX_NOLOG))
    1992 dup2(fd, STDERR_FILENO);
    1993 if (fd &gt; 2)
    1994 close(fd);
    1995 }
    &gt;&gt;&gt; CID 661497: (RESOURCE_LEAK)
    &gt;&gt;&gt; Handle variable &quot;fd&quot; going out of scope leaks the handle.
    1996 }
    1997
    1998 if (mode &amp; EX_BG) /* background execution, detach child */
    1999 {
    2000 if (daemon(TRUE, FALSE) != 0)
    2001 lprintf(LOG_ERR, &quot;!ERROR %d (%s) daemonizing: %s&quot;, errno, strerror(errno), argv[0]);

    ** CID 661496: (CHECKED_RETURN)
    /xtrn_sec.cpp: 1369 in sbbs_t::xtrndat(const char *, const char *, unsigned char, unsigned int, unsigned int, const xtrn_t *)()
    /xtrn_sec.cpp: 1359 in sbbs_t::xtrndat(const char *, const char *, unsigned char, unsigned int, unsigned int, const xtrn_t *)()


    _____________________________________________________________________________________________
    *** CID 661496: (CHECKED_RETURN)
    /xtrn_sec.cpp: 1369 in sbbs_t::xtrndat(const char *, const char *, unsigned char, unsigned int, unsigned int, const xtrn_t *)()
    1363 int chmod_result = CHMOD(str, _S_IREAD);
    1364 #else
    1365 int chmod_result = CHMOD(str, S_IRUSR);
    1366 #endif
    1367 if (chmod_result != 0) {
    1368 errormsg(WHERE, ERR_WRITE, str, errno); &gt;&gt;&gt; CID 661496: (CHECKED_RETURN)
    &gt;&gt;&gt; Calling &quot;remove(str)&quot; without checking return value. This library function may fail and return an error code.
    1369 remove(str);
    1370 return false;
    1371 }
    1372 }
    1373
    1374 else if (type == XTRN_DOORDROP) { /* DOORDROP.INI 1.0 */ /xtrn_sec.cpp: 1359 in sbbs_t::xtrndat(const char *, const char *, unsigned char, unsigned int, unsigned int, const xtrn_t *)()
    1353 }
    1354 bool write_ok = bbsdev_write(fp, lines, sizeof(lines) / sizeof(lines[0]));
    1355 if (fclose(fp) != 0)
    1356 write_ok = false;
    1357 if (!write_ok) {
    1358 errormsg(WHERE, ERR_WRITE, str, 0); &gt;&gt;&gt; CID 661496: (CHECKED_RETURN)
    &gt;&gt;&gt; Calling &quot;remove(str)&quot; without checking return value. This library function may fail and return an error code.
    1359 remove(str);
    1360 return false;
    1361 }
    1362 #if defined(_WIN32)
    1363 int chmod_result = CHMOD(str, _S_IREAD);
    1364 #else

    </pre>

    <p>
    <a href="https://scan.coverity.com/projects/synchronet?tab=overview" class="button">View Defects in Coverity Scan</a>
    </p>

    <p>Best regards,</p>
    <p>The Coverity Scan Admin Team</p>
    <img class="logo" width="140" src="https://scan.coverity.com/assets/BlackDuckLogo-6697adc63e07340464201a2ad534d3d3e44f95d36edda20b140440d34f05372f.svg" />
    </body>
    </html>
    ----==_mimepart_6ae743822b53b_5c7a2ccda420599c7397c--

    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From scan-admin@coverity.com@1:103/705 to cov-scan@synchro.net on Thu Nov 5 13:47:21 2026

    ----==_mimepart_6aec88e8a3a8a_46aa22ccda420599c739e4
    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.

    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 661670: Insecure data handling (INTEGER_OVERFLOW)
    /js_socket.cpp: 1168 in js_socket_finish_connect(JSContext *, js_event_list *, bool)()


    _____________________________________________________________________________________________
    *** CID 661670: Insecure data handling (INTEGER_OVERFLOW) /js_socket.cpp: 1168 in js_socket_finish_connect(JSContext *, js_event_list *, bool)()
    1162 {
    1163 js_socket_private_t *p = (js_socket_private_t *)JS_GetPrivate(cx, event->cx);
    1164 struct js_connect_result result;
    1165 size_t received = 0;
    1166 jsrefcount rc = JS_SUSPENDREQUEST(cx);
    1167 while (received < sizeof result) {
    CID 661670: Insecure data handling (INTEGER_OVERFLOW)
    "8UL - received", which might have underflowed, is passed to "recv(event->data.connect.sv[0], (char *)&result + received, 8UL - received, 0)".
    1168 int rd = recv(event->data.connect.sv[0], (char *)&result + received, sizeof result - received, 0);
    1169 if (rd == SOCKET_ERROR && SOCKET_ERRNO == EINTR)
    1170 continue;
    1171 if (rd <= 0)
    1172 break;
    1173 received += rd;


    ________________________________________________________________________________________________________
    To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/synchronet?tab=overview


    ----==_mimepart_6aec88e8a3a8a_46aa22ccda420599c739e4
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>New Defects Reported - Synchronet</title>
    <style>
    body { font-family: Arial, sans-serif; color: #222; line-height: 1.6; }
    .button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    font-size: 16px;
    color: #fff !important;
    background-color: #0056b3;
    text-decoration: none;
    border-radius: 5px;
    }
    pre {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    overflow-x: auto;
    }
    </style>
    </head>
    <body>
    <p>Hi,</p>

    <p>
    Please find the latest report on new defect(s) introduced to <strong>Synchronet</strong>
    found with Coverity Scan.
    </p>

    <ul>
    <li><strong>New Defects Found:</strong> 1</li>
    <li><strong>Defects Shown:</strong> Showing 1 of 1 defect(s)</li>
    </ul>

    <h3>Defect Details</h3>
    <pre>
    ** CID 661670: Insecure data handling (INTEGER_OVERFLOW)
    /js_socket.cpp: 1168 in js_socket_finish_connect(JSContext *, js_event_list *, bool)()


    _____________________________________________________________________________________________
    *** CID 661670: Insecure data handling (INTEGER_OVERFLOW) /js_socket.cpp: 1168 in js_socket_finish_connect(JSContext *, js_event_list *, bool)()
    1162 {
    1163 js_socket_private_t *p = (js_socket_private_t *)JS_GetPrivate(cx, event-&gt;cx);
    1164 struct js_connect_result result;
    1165 size_t received = 0;
    1166 jsrefcount rc = JS_SUSPENDREQUEST(cx);
    1167 while (received &lt; sizeof result) {
    &gt;&gt;&gt; CID 661670: Insecure data handling (INTEGER_OVERFLOW) &gt;&gt;&gt; &quot;8UL - received&quot;, which might have underflowed, is passed to &quot;recv(event-&gt;data.connect.sv[0], (char *)&amp;result + received, 8UL - received, 0)&quot;.
    1168 int rd = recv(event-&gt;data.connect.sv[0], (char *)&amp;result + received, sizeof result - received, 0);
    1169 if (rd == SOCKET_ERROR &amp;&amp; SOCKET_ERRNO == EINTR)
    1170 continue;
    1171 if (rd &lt;= 0)
    1172 break;
    1173 received += rd;

    </pre>

    <p>
    <a href="https://scan.coverity.com/projects/synchronet?tab=overview" class="button">View Defects in Coverity Scan</a>
    </p>

    <p>Best regards,</p>
    <p>The Coverity Scan Admin Team</p>
    <img class="logo" width="140" src="https://scan.coverity.com/assets/BlackDuckLogo-6697adc63e07340464201a2ad534d3d3e44f95d36edda20b140440d34f05372f.svg" />
    </body>
    </html>
    ----==_mimepart_6aec88e8a3a8a_46aa22ccda420599c739e4--

    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From scan-admin@coverity.com@1:103/705 to All on Mon Nov 9 13:48:30 2026

    ----==_mimepart_6af1cf2da4e38_865702ccda420599c739f8
    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.

    1 new defect(s) introduced to Synchronet found with Coverity Scan.
    1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

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


    ** CID 661775: Insecure data handling (TAINTED_SCALAR)


    _____________________________________________________________________________________________
    *** CID 661775: Insecure data handling (TAINTED_SCALAR)
    /str.cpp: 655 in sbbs_t::read_sif_dat(char *, char *)()
    649 return;
    650 }
    651 length = read(file, buf, length);
    652 if (length < 0)
    653 length = 0;
    654 close(file);
    CID 661775: Insecure data handling (TAINTED_SCALAR)
    Passing tainted expression "*buf" to "sof", which uses it as an offset. 655 sof(siffile, buf, length);
    656 free(buf);
    657 }
    658
    659 static bool is_template_char(char ch)
    660 {


    ________________________________________________________________________________________________________
    To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/synchronet?tab=overview


    ----==_mimepart_6af1cf2da4e38_865702ccda420599c739f8
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>New Defects Reported - Synchronet</title>
    <style>
    body { font-family: Arial, sans-serif; color: #222; line-height: 1.6; }
    .button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    font-size: 16px;
    color: #fff !important;
    background-color: #0056b3;
    text-decoration: none;
    border-radius: 5px;
    }
    pre {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    overflow-x: auto;
    }
    </style>
    </head>
    <body>
    <p>Hi,</p>

    <p>
    Please find the latest report on new defect(s) introduced to <strong>Synchronet</strong>
    found with Coverity Scan.
    </p>

    <ul>
    <li><strong>New Defects Found:</strong> 1</li>
    <li>
    1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
    </li>
    <li><strong>Defects Shown:</strong> Showing 1 of 1 defect(s)</li>
    </ul>

    <h3>Defect Details</h3>
    <pre>
    ** CID 661775: Insecure data handling (TAINTED_SCALAR)


    _____________________________________________________________________________________________
    *** CID 661775: Insecure data handling (TAINTED_SCALAR)
    /str.cpp: 655 in sbbs_t::read_sif_dat(char *, char *)()
    649 return;
    650 }
    651 length = read(file, buf, length);
    652 if (length &lt; 0)
    653 length = 0;
    654 close(file);
    &gt;&gt;&gt; CID 661775: Insecure data handling (TAINTED_SCALAR) &gt;&gt;&gt; Passing tainted expression &quot;*buf&quot; to &quot;sof&quot;, which uses it as an offset.
    655 sof(siffile, buf, length);
    656 free(buf);
    657 }
    658
    659 static bool is_template_char(char ch)
    660 {

    </pre>

    <p>
    <a href="https://scan.coverity.com/projects/synchronet?tab=overview" class="button">View Defects in Coverity Scan</a>
    </p>

    <p>Best regards,</p>
    <p>The Coverity Scan Admin Team</p>
    <img class="logo" width="140" src="https://scan.coverity.com/assets/BlackDuckLogo-6697adc63e07340464201a2ad534d3d3e44f95d36edda20b140440d34f05372f.svg" />
    </body>
    </html>
    ----==_mimepart_6af1cf2da4e38_865702ccda420599c739f8--

    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From scan-admin@coverity.com@1:103/705 to cov-scan@synchro.net on Sat Nov 14 13:47:18 2026

    ----==_mimepart_6af86665cb6c5_d7e3b2bf2b00919a089246
    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.

    1 new defect(s) introduced to Synchronet found with Coverity Scan.
    2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

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


    ** CID 662148: High impact quality (Y2K38_SAFETY)
    /upload.cpp: 69 in sbbs_t::uploadfile(smbmsg_t *, long)()


    _____________________________________________________________________________________________
    *** CID 662148: High impact quality (Y2K38_SAFETY)
    /upload.cpp: 69 in sbbs_t::uploadfile(smbmsg_t *, long)()
    63 bprintf(text[FileNotReceived], f->name);
    64 llprintf(LOG_NOTICE, "U!", "attempted to upload %s to %s %s (Not received)"
    65 , f->name
    66 , cfg.lib[cfg.dir[f->dir]->lib]->sname, cfg.dir[f->dir]->sname);
    67 return false;
    68 }
    CID 662148: High impact quality (Y2K38_SAFETY)
    A "time_t" value is stored in an integer with too few bits to accommodate it. The expression "fdate(path)" is cast to "uint32_t".
    69 f->hdr.when_written.time = (uint32_t)fdate(path);
    70 for (i = 0; i < cfg.total_ftests; i++)
    71 if (file_type_match(f->name, cfg.ftest[i]->ext)) {
    72 if (!chk_ar(cfg.ftest[i]->ar, &useron, &client))
    73 continue;
    74 attr(LIGHTGRAY);


    ________________________________________________________________________________________________________
    To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/synchronet?tab=overview


    ----==_mimepart_6af86665cb6c5_d7e3b2bf2b00919a089246
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>New Defects Reported - Synchronet</title>
    <style>
    body { font-family: Arial, sans-serif; color: #222; line-height: 1.6; }
    .button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    font-size: 16px;
    color: #fff !important;
    background-color: #0056b3;
    text-decoration: none;
    border-radius: 5px;
    }
    pre {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    overflow-x: auto;
    }
    </style>
    </head>
    <body>
    <p>Hi,</p>

    <p>
    Please find the latest report on new defect(s) introduced to <strong>Synchronet</strong>
    found with Coverity Scan.
    </p>

    <ul>
    <li><strong>New Defects Found:</strong> 1</li>
    <li>
    2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
    </li>
    <li><strong>Defects Shown:</strong> Showing 1 of 1 defect(s)</li>
    </ul>

    <h3>Defect Details</h3>
    <pre>
    ** CID 662148: High impact quality (Y2K38_SAFETY)
    /upload.cpp: 69 in sbbs_t::uploadfile(smbmsg_t *, long)()


    _____________________________________________________________________________________________
    *** CID 662148: High impact quality (Y2K38_SAFETY)
    /upload.cpp: 69 in sbbs_t::uploadfile(smbmsg_t *, long)()
    63 bprintf(text[FileNotReceived], f-&gt;name);
    64 llprintf(LOG_NOTICE, &quot;U!&quot;, &quot;attempted to upload %s to %s %s (Not received)&quot;
    65 , f-&gt;name
    66 , cfg.lib[cfg.dir[f-&gt;dir]-&gt;lib]-&gt;sname, cfg.dir[f-&gt;dir]-&gt;sname);
    67 return false;
    68 }
    &gt;&gt;&gt; CID 662148: High impact quality (Y2K38_SAFETY) &gt;&gt;&gt; A &quot;time_t&quot; value is stored in an integer with too few bits to accommodate it. The expression &quot;fdate(path)&quot; is cast to &quot;uint32_t&quot;.
    69 f-&gt;hdr.when_written.time = (uint32_t)fdate(path);
    70 for (i = 0; i &lt; cfg.total_ftests; i++)
    71 if (file_type_match(f-&gt;name, cfg.ftest[i]-&gt;ext)) {
    72 if (!chk_ar(cfg.ftest[i]-&gt;ar, &amp;useron, &amp;client))
    73 continue;
    74 attr(LIGHTGRAY);

    </pre>

    <p>
    <a href="https://scan.coverity.com/projects/synchronet?tab=overview" class="button">View Defects in Coverity Scan</a>
    </p>

    <p>Best regards,</p>
    <p>The Coverity Scan Admin Team</p>
    <img class="logo" width="140" src="https://scan.coverity.com/assets/BlackDuckLogo-6697adc63e07340464201a2ad534d3d3e44f95d36edda20b140440d34f05372f.svg" />
    </body>
    </html>
    ----==_mimepart_6af86665cb6c5_d7e3b2bf2b00919a089246--

    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From scan-admin@coverity.com@1:103/705 to All on Tue Nov 17 13:48:08 2026

    ----==_mimepart_6afc5b17be9e9_107d1e2bf2b00919a0892b3
    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.

    1 new defect(s) introduced to Synchronet found with Coverity Scan.
    1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

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


    ** CID 662206: Error handling issues (CHECKED_RETURN)
    /js_file.cpp: 2457 in js_file_set(JSContext *, JSObject *, long, int, unsigned long *)()


    _____________________________________________________________________________________________
    *** CID 662206: Error handling issues (CHECKED_RETURN)
    /js_file.cpp: 2457 in js_file_set(JSContext *, JSObject *, long, int, unsigned long *)()
    2451 jsdouble pos;
    2452 if (!JS_ValueToNumber(cx, *vp, &pos)) 2453 return JS_FALSE;
    2454 if (!(pos >= 0))
    2455 pos = 0;
    2456 rc = JS_SUSPENDREQUEST(cx);
    CID 662206: Error handling issues (CHECKED_RETURN)
    Calling "fseeko(p->fp, (off_t)pos, 0)" without checking return value. This library function may fail and return an error code.
    2457 fseeko(p->fp, (off_t)pos, SEEK_SET); 2458 JS_RESUMEREQUEST(cx, rc);
    2459 }
    2460 break;
    2461 case FILE_PROP_DATE:
    2462 if (!JS_ValueToECMAUint32(cx, *vp, &u))


    ________________________________________________________________________________________________________
    To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/synchronet?tab=overview


    ----==_mimepart_6afc5b17be9e9_107d1e2bf2b00919a0892b3
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>New Defects Reported - Synchronet</title>
    <style>
    body { font-family: Arial, sans-serif; color: #222; line-height: 1.6; }
    .button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    font-size: 16px;
    color: #fff !important;
    background-color: #0056b3;
    text-decoration: none;
    border-radius: 5px;
    }
    pre {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    overflow-x: auto;
    }
    </style>
    </head>
    <body>
    <p>Hi,</p>

    <p>
    Please find the latest report on new defect(s) introduced to <strong>Synchronet</strong>
    found with Coverity Scan.
    </p>

    <ul>
    <li><strong>New Defects Found:</strong> 1</li>
    <li>
    1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
    </li>
    <li><strong>Defects Shown:</strong> Showing 1 of 1 defect(s)</li>
    </ul>

    <h3>Defect Details</h3>
    <pre>
    ** CID 662206: Error handling issues (CHECKED_RETURN)
    /js_file.cpp: 2457 in js_file_set(JSContext *, JSObject *, long, int, unsigned long *)()


    _____________________________________________________________________________________________
    *** CID 662206: Error handling issues (CHECKED_RETURN)
    /js_file.cpp: 2457 in js_file_set(JSContext *, JSObject *, long, int, unsigned long *)()
    2451 jsdouble pos;
    2452 if (!JS_ValueToNumber(cx, *vp, &amp;pos))
    2453 return JS_FALSE;
    2454 if (!(pos &gt;= 0))
    2455 pos = 0;
    2456 rc = JS_SUSPENDREQUEST(cx); &gt;&gt;&gt; CID 662206: Error handling issues (CHECKED_RETURN) &gt;&gt;&gt; Calling &quot;fseeko(p-&gt;fp, (off_t)pos, 0)&quot; without checking return value. This library function may fail and return an error code.
    2457 fseeko(p-&gt;fp, (off_t)pos, SEEK_SET); 2458 JS_RESUMEREQUEST(cx, rc);
    2459 }
    2460 break;
    2461 case FILE_PROP_DATE:
    2462 if (!JS_ValueToECMAUint32(cx, *vp, &amp;u))

    </pre>

    <p>
    <a href="https://scan.coverity.com/projects/synchronet?tab=overview" class="button">View Defects in Coverity Scan</a>
    </p>

    <p>Best regards,</p>
    <p>The Coverity Scan Admin Team</p>
    <img class="logo" width="140" src="https://scan.coverity.com/assets/BlackDuckLogo-6697adc63e07340464201a2ad534d3d3e44f95d36edda20b140440d34f05372f.svg" />
    </body>
    </html>
    ----==_mimepart_6afc5b17be9e9_107d1e2bf2b00919a0892b3--

    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From scan-admin@coverity.com@1:103/705 to cov-scan@synchro.net on Sat Nov 21 13:47:08 2026

    ----==_mimepart_6b01a0db5ba1c_1482bb2dc1e9b019a8950cc
    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.

    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 662403: Incorrect expression (SIZEOF_MISMATCH)
    /scfglib1.c: 553 in read_domains_cfg_file()


    _____________________________________________________________________________________________
    *** CID 662403: Incorrect expression (SIZEOF_MISMATCH)
    /scfglib1.c: 553 in read_domains_cfg_file()
    547
    548 SAFEPRINTF2(path, "%s%s", cfg->ctrl_dir, fname);
    549 if ((fp = fnopen(NULL, path, O_RDONLY)) == NULL)
    550 return true;
    551 if ((names = strListInit()) == NULL) {
    552 fclose(fp);
    CID 662403: Incorrect expression (SIZEOF_MISMATCH)
    Passing argument "error" of type "char *" and argument "8UL /* sizeof (char *) */" to function "allocerr" is suspicious.
    553 return allocerr(error, maxerrlen, fname, "domain list", sizeof(char*));
    554 }
    555 while (fgets(line, sizeof line, fp) != NULL) {
    556 if (++lines > DOMAINS_CFG_MAX_LINES) {
    557 snprintf(error, maxerrlen, "%s: only the first %d lines were read", path, DOMAINS_CFG_MAX_LINES);
    558 break;


    ________________________________________________________________________________________________________
    To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/synchronet?tab=overview


    ----==_mimepart_6b01a0db5ba1c_1482bb2dc1e9b019a8950cc
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>New Defects Reported - Synchronet</title>
    <style>
    body { font-family: Arial, sans-serif; color: #222; line-height: 1.6; }
    .button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    font-size: 16px;
    color: #fff !important;
    background-color: #0056b3;
    text-decoration: none;
    border-radius: 5px;
    }
    pre {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    overflow-x: auto;
    }
    </style>
    </head>
    <body>
    <p>Hi,</p>

    <p>
    Please find the latest report on new defect(s) introduced to <strong>Synchronet</strong>
    found with Coverity Scan.
    </p>

    <ul>
    <li><strong>New Defects Found:</strong> 1</li>
    <li><strong>Defects Shown:</strong> Showing 1 of 1 defect(s)</li>
    </ul>

    <h3>Defect Details</h3>
    <pre>
    ** CID 662403: Incorrect expression (SIZEOF_MISMATCH)
    /scfglib1.c: 553 in read_domains_cfg_file()


    _____________________________________________________________________________________________
    *** CID 662403: Incorrect expression (SIZEOF_MISMATCH)
    /scfglib1.c: 553 in read_domains_cfg_file()
    547
    548 SAFEPRINTF2(path, &quot;%s%s&quot;, cfg-&gt;ctrl_dir, fname); 549 if ((fp = fnopen(NULL, path, O_RDONLY)) == NULL)
    550 return true;
    551 if ((names = strListInit()) == NULL) {
    552 fclose(fp);
    &gt;&gt;&gt; CID 662403: Incorrect expression (SIZEOF_MISMATCH) &gt;&gt;&gt; Passing argument &quot;error&quot; of type &quot;char *&quot; and argument &quot;8UL /* sizeof (char *) */&quot; to function &quot;allocerr&quot; is suspicious.
    553 return allocerr(error, maxerrlen, fname, &quot;domain list&quot;, sizeof(char*));
    554 }
    555 while (fgets(line, sizeof line, fp) != NULL) {
    556 if (++lines &gt; DOMAINS_CFG_MAX_LINES) {
    557 snprintf(error, maxerrlen, &quot;%s: only the first %d lines were read&quot;, path, DOMAINS_CFG_MAX_LINES);
    558 break;

    </pre>

    <p>
    <a href="https://scan.coverity.com/projects/synchronet?tab=overview" class="button">View Defects in Coverity Scan</a>
    </p>

    <p>Best regards,</p>
    <p>The Coverity Scan Admin Team</p>
    <img class="logo" width="140" src="https://scan.coverity.com/assets/BlackDuckLogo-6697adc63e07340464201a2ad534d3d3e44f95d36edda20b140440d34f05372f.svg" />
    </body>
    </html>
    ----==_mimepart_6b01a0db5ba1c_1482bb2dc1e9b019a8950cc--

    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From scan-admin@coverity.com@1:103/705 to cov-scan@synchro.net on Sun Nov 22 13:48:06 2026

    ----==_mimepart_6b02f295d9063_15823b2dc1e9b019a8950cd
    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.

    10 new defect(s) introduced to Synchronet found with Coverity Scan.
    6 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

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


    ** CID 662429: Resource leaks (RESOURCE_LEAK)
    /bulkmail.cpp: 194 in sbbs_t::bulkmailhdr(smb_t *, smbmsg_t *, unsigned int, bool *)()


    _____________________________________________________________________________________________
    *** CID 662429: Resource leaks (RESOURCE_LEAK)
    /bulkmail.cpp: 194 in sbbs_t::bulkmailhdr(smb_t *, smbmsg_t *, unsigned int, bool *)()
    188 return 0;
    189 }
    190 local_copy = false;
    191 }
    192
    193 if ((i = smb_copymsgmem(NULL, &newmsg, msg)) != SMB_SUCCESS) >>> CID 662429: Resource leaks (RESOURCE_LEAK)
    Variable "newmsg" going out of scope leaks the storage "newmsg.hfield_dat" points to.
    194 return i;
    195
    196 SAFECOPY(str, user.alias);
    197 smb_hfield_str(&newmsg, RECIPIENT, str);
    198
    199 if (forward) {

    ** CID 662428: Null pointer dereferences (FORWARD_NULL)


    _____________________________________________________________________________________________
    *** CID 662428: Null pointer dereferences (FORWARD_NULL)
    /websrvr.cpp: 6955 in exec_ssjs(http_session_t *, char *)()
    6949 if (session->req.post_data && session->req.post_data[0]) {
    6950 if (session->req.post_len <= MAX_POST_LEN) {
    6951 js_add_request_property(session, "post_data", session->req.post_data, session->req.post_len, /* writeable: */ false);
    6952 js_parse_query(session, session->req.post_data);
    6953 }
    6954 }
    CID 662428: Null pointer dereferences (FORWARD_NULL)
    Passing "session" to "parse_js_headers", which dereferences null "session->js_cookie".
    6955 parse_js_headers(session);
    6956
    6957 do {
    6958 /* RUN SCRIPT */
    6959 JS_ClearPendingException(session->js_cx);
    6960

    ** CID 662427: Resource leaks (RESOURCE_LEAK)
    /bulkmail.cpp: 194 in sbbs_t::bulkmailhdr(smb_t *, smbmsg_t *, unsigned int, bool *)()


    _____________________________________________________________________________________________
    *** CID 662427: Resource leaks (RESOURCE_LEAK)
    /bulkmail.cpp: 194 in sbbs_t::bulkmailhdr(smb_t *, smbmsg_t *, unsigned int, bool *)()
    188 return 0;
    189 }
    190 local_copy = false;
    191 }
    192
    193 if ((i = smb_copymsgmem(NULL, &newmsg, msg)) != SMB_SUCCESS) >>> CID 662427: Resource leaks (RESOURCE_LEAK)
    Variable "newmsg" going out of scope leaks the storage "newmsg.dfield" points to.
    194 return i;
    195
    196 SAFECOPY(str, user.alias);
    197 smb_hfield_str(&newmsg, RECIPIENT, str);
    198
    199 if (forward) {

    ** CID 662426: Insecure data handling (INTEGER_OVERFLOW)
    /getmail.c: 151 in mail_stored_bytes()


    _____________________________________________________________________________________________
    *** CID 662426: Insecure data handling (INTEGER_OVERFLOW)
    /getmail.c: 151 in mail_stored_bytes()
    145 datlen = 0;
    146 for (d = 0; d < hdr.total_dfields; d++) {
    147 if (d < fields)
    148 memcpy(&dfield, buf + sizeof(hdr) + (d * sizeof(dfield)), sizeof dfield);
    149 else {
    150 /* More data fields than the block read holds */
    CID 662426: Insecure data handling (INTEGER_OVERFLOW)
    The cast of "(off_t)list[i].offset + 70UL + d * 10UL" to a signed type could result in a negative number.
    151 if (d == fields
    152 && lseek(file, (off_t)list[i].offset + sizeof(hdr) + (d * sizeof(dfield)), SEEK_SET) == -1)
    153 break;
    154 if (read(file, &dfield, sizeof dfield) != sizeof dfield)
    155 break;
    156 }

    ** CID 662425: Resource leaks (RESOURCE_LEAK)
    /netmail.cpp: 923 in sbbs_t::qwktonetmail(_IO_FILE *, char *, char *, unsigned int)()


    _____________________________________________________________________________________________
    *** CID 662425: Resource leaks (RESOURCE_LEAK)
    /netmail.cpp: 923 in sbbs_t::qwktonetmail(_IO_FILE *, char *, char *, unsigned int)()
    917 errormsg(WHERE, ERR_OPEN, str, O_WRONLY | O_CREAT | O_EXCL);
    918 return;
    919 }
    920 if (write(fido, &hdr, sizeof(hdr)) != sizeof hdr) {
    921 free(qwkbuf);
    922 errormsg(WHERE, ERR_WRITE, str, sizeof hdr);
    CID 662425: Resource leaks (RESOURCE_LEAK)
    Handle variable "fido" going out of scope leaks the handle.
    923 return;
    924 }
    925
    926 pt_zone_kludge(&hdr, fido);
    927
    928 if (cfg.netmail_misc & NMAIL_DIRECT) {

    ** CID 662424: (FORWARD_NULL)


    _____________________________________________________________________________________________
    *** CID 662424: (FORWARD_NULL)
    /websrvr.cpp: 6947 in exec_ssjs(http_session_t *, char *)()
    6941 js_add_request_prop(session, "remote_ip", session->host_ip); 6942 js_add_request_prop(session, "remote_host", session->host_name);
    6943 js_add_request_prop(session, "lib", libnum_is_valid(&scfg, session->libnum) ? scfg.lib[session->libnum]->sname : NULL);
    6944 js_add_request_prop(session, "dir", dirnum_is_valid(&scfg, session->file.dir) ? scfg.dir[session->file.dir]->code : NULL);
    6945 if (session->req.query_str[0]) {
    6946 js_add_request_prop(session, "query_string", session->req.query_str);
    CID 662424: (FORWARD_NULL)
    Passing "session" to "js_parse_query", which dereferences null "session->js_query".
    6947 js_parse_query(session, session->req.query_str);
    6948 }
    6949 if (session->req.post_data && session->req.post_data[0]) {
    6950 if (session->req.post_len <= MAX_POST_LEN) {
    6951 js_add_request_property(session, "post_data", session->req.post_data, session->req.post_len, /* writeable: */ false);
    6952 js_parse_query(session, session->req.post_data);
    /websrvr.cpp: 6952 in exec_ssjs(http_session_t *, char *)()
    6946 js_add_request_prop(session, "query_string", session->req.query_str);
    6947 js_parse_query(session, session->req.query_str);
    6948 }
    6949 if (session->req.post_data && session->req.post_data[0]) {
    6950 if (session->req.post_len <= MAX_POST_LEN) {
    6951 js_add_request_property(session, "post_data", session->req.post_data, session->req.post_len, /* writeable: */ false);
    CID 662424: (FORWARD_NULL)
    Passing "session" to "js_parse_query", which dereferences null "session->js_query".
    6952 js_parse_query(session, session->req.post_data);
    6953 }
    6954 }
    6955 parse_js_headers(session);
    6956
    6957 do {

    ** CID 662423: Resource leaks (RESOURCE_LEAK)
    /bulkmail.cpp: 194 in sbbs_t::bulkmailhdr(smb_t *, smbmsg_t *, unsigned int, bool *)()


    _____________________________________________________________________________________________
    *** CID 662423: Resource leaks (RESOURCE_LEAK)
    /bulkmail.cpp: 194 in sbbs_t::bulkmailhdr(smb_t *, smbmsg_t *, unsigned int, bool *)()
    188 return 0;
    189 }
    190 local_copy = false;
    191 }
    192
    193 if ((i = smb_copymsgmem(NULL, &newmsg, msg)) != SMB_SUCCESS) >>> CID 662423: Resource leaks (RESOURCE_LEAK)
    Variable "newmsg" going out of scope leaks the storage "newmsg.hfield" points to.
    194 return i;
    195
    196 SAFECOPY(str, user.alias);
    197 smb_hfield_str(&newmsg, RECIPIENT, str);
    198
    199 if (forward) {

    ** CID 662422: Performance inefficiencies (COPY_INSTEAD_OF_MOVE)


    _____________________________________________________________________________________________
    *** CID 662422: Performance inefficiencies (COPY_INSTEAD_OF_MOVE) /web_block.hpp: 339 in webBlock::parse(char **, std::vector<webBlock::rule, std::allocator<webBlock::rule>> &)()
    333 r.filter_duration = (uint)iniGetDuration(ini, section, "FilterDuration", 0);
    334 }
    335 if (iniGetExistingValue(ini, section, "FilterSilent", nullptr, nullptr) != nullptr) {
    336 r.has_filter_silent = true;
    337 r.filter_silent = iniGetBool(ini, section, "FilterSilent", false);
    338 }
    CID 662422: Performance inefficiencies (COPY_INSTEAD_OF_MOVE) >>> "r" is copied and then passed-by-reference as parameter to STL insertion function "std::vector<webBlock::rule, std::allocator<webBlock::rule> >::push_back(std::vector<webBlock::rule, std::allocator<webBlock::rule> >::value_type const &)", when it could be moved instead.
    339 loaded.push_back(r);
    340 }
    341 iniFreeStringList(all);
    342 iniFreeStringList(sections);
    343 }
    344 };
    345

    ** CID 662421: Insecure data handling (TAINTED_SCALAR)
    /getmail.c: 146 in mail_stored_bytes()


    _____________________________________________________________________________________________
    *** CID 662421: Insecure data handling (TAINTED_SCALAR)
    /getmail.c: 146 in mail_stored_bytes()
    140 if (memcmp(hdr.msghdr_id, SHD_HEADER_ID, LEN_HEADER_ID) != 0
    141 || hdr.number != list[i].number
    142 || (hdr.attr & MSG_DELETE))
    143 continue;
    144 fields = (uint)((rd - sizeof(hdr)) / sizeof(dfield)); 145 datlen = 0;
    CID 662421: Insecure data handling (TAINTED_SCALAR)
    Using tainted variable "hdr.total_dfields" as a loop boundary.
    146 for (d = 0; d < hdr.total_dfields; d++) {
    147 if (d < fields)
    148 memcpy(&dfield, buf + sizeof(hdr) + (d * sizeof(dfield)), sizeof dfield);
    149 else {
    150 /* More data fields than the block read holds */
    151 if (d == fields

    ** CID 662420: Performance inefficiencies (COPY_INSTEAD_OF_MOVE) /websrvr.cpp: 3057 in forwarded_client(const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> &)()


    _____________________________________________________________________________________________
    *** CID 662420: Performance inefficiencies (COPY_INSTEAD_OF_MOVE) /websrvr.cpp: 3057 in forwarded_client(const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> &)()
    3051 size_t first = addr.find_first_not_of(" \t");
    3052 size_t last = addr.find_last_not_of(" \t");
    3053 addr = (first == std::string::npos) ? "" : addr.substr(first, last - first + 1);
    3054 uint8_t ip_addr[16];
    3055 if (inet_pton(AF_INET, addr.c_str(), ip_addr) != 1 && inet_pton(AF_INET6, addr.c_str(), ip_addr) != 1)
    3056 return std::string();
    CID 662420: Performance inefficiencies (COPY_INSTEAD_OF_MOVE) >>> "addr" is copied and then passed-by-reference as parameter to STL insertion function "std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::push_back(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::value_type const &)", when it could be moved instead.
    3057 addrs.push_back(addr);
    3058 start = end + 1;
    3059 }
    3060 if (strListCount(proxy_trust) < 1)
    3061 return addrs.back();
    3062 for (auto it = addrs.rbegin(); it != addrs.rend(); ++it) {


    ________________________________________________________________________________________________________
    To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/synchronet?tab=overview


    ----==_mimepart_6b02f295d9063_15823b2dc1e9b019a8950cd
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>New Defects Reported - Synchronet</title>
    <style>
    body { font-family: Arial, sans-serif; color: #222; line-height: 1.6; }
    .button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    font-size: 16px;
    color: #fff !important;
    background-color: #0056b3;
    text-decoration: none;
    border-radius: 5px;
    }
    pre {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    overflow-x: auto;
    }
    </style>
    </head>
    <body>
    <p>Hi,</p>

    <p>
    Please find the latest report on new defect(s) introduced to <strong>Synchronet</strong>
    found with Coverity Scan.
    </p>

    <ul>
    <li><strong>New Defects Found:</strong> 10</li>
    <li>
    6 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
    </li>
    <li><strong>Defects Shown:</strong> Showing 10 of 10 defect(s)</li>
    </ul>

    <h3>Defect Details</h3>
    <pre>
    ** CID 662429: Resource leaks (RESOURCE_LEAK)
    /bulkmail.cpp: 194 in sbbs_t::bulkmailhdr(smb_t *, smbmsg_t *, unsigned int, bool *)()


    _____________________________________________________________________________________________
    *** CID 662429: Resource leaks (RESOURCE_LEAK)
    /bulkmail.cpp: 194 in sbbs_t::bulkmailhdr(smb_t *, smbmsg_t *, unsigned int, bool *)()
    188 return 0;
    189 }
    190 local_copy = false;
    191 }
    192
    193 if ((i = smb_copymsgmem(NULL, &amp;newmsg, msg)) != SMB_SUCCESS)
    &gt;&gt;&gt; CID 662429: Resource leaks (RESOURCE_LEAK) &gt;&gt;&gt; Variable &quot;newmsg&quot; going out of scope leaks the storage &quot;newmsg.hfield_dat&quot; points to.
    194 return i;
    195
    196 SAFECOPY(str, user.alias);
    197 smb_hfield_str(&amp;newmsg, RECIPIENT, str);
    198
    199 if (forward) {

    ** CID 662428: Null pointer dereferences (FORWARD_NULL)


    _____________________________________________________________________________________________
    *** CID 662428: Null pointer dereferences (FORWARD_NULL)
    /websrvr.cpp: 6955 in exec_ssjs(http_session_t *, char *)()
    6949 if (session-&gt;req.post_data &amp;&amp; session-&gt;req.post_data[0]) {
    6950 if (session-&gt;req.post_len &lt;= MAX_POST_LEN) {
    6951 js_add_request_property(session, &quot;post_data&quot;, session-&gt;req.post_data, session-&gt;req.post_len, /* writeable: */ false);
    6952 js_parse_query(session, session-&gt;req.post_data);
    6953 }
    6954 }
    &gt;&gt;&gt; CID 662428: Null pointer dereferences (FORWARD_NULL) &gt;&gt;&gt; Passing &quot;session&quot; to &quot;parse_js_headers&quot;, which dereferences null &quot;session-&gt;js_cookie&quot;.
    6955 parse_js_headers(session);
    6956
    6957 do {
    6958 /* RUN SCRIPT */
    6959 JS_ClearPendingException(session-&gt;js_cx);
    6960

    ** CID 662427: Resource leaks (RESOURCE_LEAK)
    /bulkmail.cpp: 194 in sbbs_t::bulkmailhdr(smb_t *, smbmsg_t *, unsigned int, bool *)()


    _____________________________________________________________________________________________
    *** CID 662427: Resource leaks (RESOURCE_LEAK)
    /bulkmail.cpp: 194 in sbbs_t::bulkmailhdr(smb_t *, smbmsg_t *, unsigned int, bool *)()
    188 return 0;
    189 }
    190 local_copy = false;
    191 }
    192
    193 if ((i = smb_copymsgmem(NULL, &amp;newmsg, msg)) != SMB_SUCCESS)
    &gt;&gt;&gt; CID 662427: Resource leaks (RESOURCE_LEAK) &gt;&gt;&gt; Variable &quot;newmsg&quot; going out of scope leaks the storage &quot;newmsg.dfield&quot; points to.
    194 return i;
    195
    196 SAFECOPY(str, user.alias);
    197 smb_hfield_str(&amp;newmsg, RECIPIENT, str);
    198
    199 if (forward) {

    ** CID 662426: Insecure data handling (INTEGER_OVERFLOW)
    /getmail.c: 151 in mail_stored_bytes()


    _____________________________________________________________________________________________
    *** CID 662426: Insecure data handling (INTEGER_OVERFLOW)
    /getmail.c: 151 in mail_stored_bytes()
    145 datlen = 0;
    146 for (d = 0; d &lt; hdr.total_dfields; d++) {
    147 if (d &lt; fields)
    148 memcpy(&amp;dfield, buf + sizeof(hdr) + (d * sizeof(dfield)), sizeof dfield);
    149 else {
    150 /* More data fields than the block read holds */
    &gt;&gt;&gt; CID 662426: Insecure data handling (INTEGER_OVERFLOW) &gt;&gt;&gt; The cast of &quot;(off_t)list[i].offset + 70UL + d * 10UL&quot; to a signed type could result in a negative number.
    151 if (d == fields
    152 &amp;&amp; lseek(file, (off_t)list[i].offset + sizeof(hdr) + (d * sizeof(dfield)), SEEK_SET) == -1)
    153 break;
    154 if (read(file, &amp;dfield, sizeof dfield) != sizeof dfield)
    155 break;
    156 }

    ** CID 662425: Resource leaks (RESOURCE_LEAK)
    /netmail.cpp: 923 in sbbs_t::qwktonetmail(_IO_FILE *, char *, char *, unsigned int)()


    _____________________________________________________________________________________________
    *** CID 662425: Resource leaks (RESOURCE_LEAK)
    /netmail.cpp: 923 in sbbs_t::qwktonetmail(_IO_FILE *, char *, char *, unsigned int)()
    917 errormsg(WHERE, ERR_OPEN, str, O_WRONLY | O_CREAT | O_EXCL);
    918 return;
    919 }
    920 if (write(fido, &amp;hdr, sizeof(hdr)) != sizeof hdr) {
    921 free(qwkbuf);
    922 errormsg(WHERE, ERR_WRITE, str, sizeof hdr); &gt;&gt;&gt; CID 662425: Resource leaks (RESOURCE_LEAK) &gt;&gt;&gt; Handle variable &quot;fido&quot; going out of scope leaks the handle.
    923 return;
    924 }
    925
    926 pt_zone_kludge(&amp;hdr, fido);
    927
    928 if (cfg.netmail_misc &amp; NMAIL_DIRECT) {

    ** CID 662424: (FORWARD_NULL)


    _____________________________________________________________________________________________
    *** CID 662424: (FORWARD_NULL)
    /websrvr.cpp: 6947 in exec_ssjs(http_session_t *, char *)()
    6941 js_add_request_prop(session, &quot;remote_ip&quot;, session-&gt;host_ip);
    6942 js_add_request_prop(session, &quot;remote_host&quot;, session-&gt;host_name);
    6943 js_add_request_prop(session, &quot;lib&quot;, libnum_is_valid(&amp;scfg, session-&gt;libnum) ? scfg.lib[session-&gt;libnum]-&gt;sname : NULL);
    6944 js_add_request_prop(session, &quot;dir&quot;, dirnum_is_valid(&amp;scfg, session-&gt;file.dir) ? scfg.dir[session-&gt;file.dir]-&gt;code : NULL);
    6945 if (session-&gt;req.query_str[0]) {
    6946 js_add_request_prop(session, &quot;query_string&quot;, session-&gt;req.query_str);
    &gt;&gt;&gt; CID 662424: (FORWARD_NULL)
    &gt;&gt;&gt; Passing &quot;session&quot; to &quot;js_parse_query&quot;, which dereferences null &quot;session-&gt;js_query&quot;.
    6947 js_parse_query(session, session-&gt;req.query_str); 6948 }
    6949 if (session-&gt;req.post_data &amp;&amp; session-&gt;req.post_data[0]) {
    6950 if (session-&gt;req.post_len &lt;= MAX_POST_LEN) {
    6951 js_add_request_property(session, &quot;post_data&quot;, session-&gt;req.post_data, session-&gt;req.post_len, /* writeable: */ false);
    6952 js_parse_query(session, session-&gt;req.post_data);
    /websrvr.cpp: 6952 in exec_ssjs(http_session_t *, char *)()
    6946 js_add_request_prop(session, &quot;query_string&quot;, session-&gt;req.query_str);
    6947 js_parse_query(session, session-&gt;req.query_str); 6948 }
    6949 if (session-&gt;req.post_data &amp;&amp; session-&gt;req.post_data[0]) {
    6950 if (session-&gt;req.post_len &lt;= MAX_POST_LEN) {
    6951 js_add_request_property(session, &quot;post_data&quot;, session-&gt;req.post_data, session-&gt;req.post_len, /* writeable: */ false);
    &gt;&gt;&gt; CID 662424: (FORWARD_NULL)
    &gt;&gt;&gt; Passing &quot;session&quot; to &quot;js_parse_query&quot;, which dereferences null &quot;session-&gt;js_query&quot;.
    6952 js_parse_query(session, session-&gt;req.post_data);
    6953 }
    6954 }
    6955 parse_js_headers(session);
    6956
    6957 do {

    ** CID 662423: Resource leaks (RESOURCE_LEAK)
    /bulkmail.cpp: 194 in sbbs_t::bulkmailhdr(smb_t *, smbmsg_t *, unsigned int, bool *)()


    _____________________________________________________________________________________________
    *** CID 662423: Resource leaks (RESOURCE_LEAK)
    /bulkmail.cpp: 194 in sbbs_t::bulkmailhdr(smb_t *, smbmsg_t *, unsigned int, bool *)()
    188 return 0;
    189 }
    190 local_copy = false;
    191 }
    192
    193 if ((i = smb_copymsgmem(NULL, &amp;newmsg, msg)) != SMB_SUCCESS)
    &gt;&gt;&gt; CID 662423: Resource leaks (RESOURCE_LEAK) &gt;&gt;&gt; Variable &quot;newmsg&quot; going out of scope leaks the storage &quot;newmsg.hfield&quot; points to.
    194 return i;
    195
    196 SAFECOPY(str, user.alias);
    197 smb_hfield_str(&amp;newmsg, RECIPIENT, str);
    198
    199 if (forward) {

    ** CID 662422: Performance inefficiencies (COPY_INSTEAD_OF_MOVE)


    _____________________________________________________________________________________________
    *** CID 662422: Performance inefficiencies (COPY_INSTEAD_OF_MOVE) /web_block.hpp: 339 in webBlock::parse(char **, std::vector&lt;webBlock::rule, std::allocator&lt;webBlock::rule&gt;&gt; &amp;)()
    333 r.filter_duration = (uint)iniGetDuration(ini, section, &quot;FilterDuration&quot;, 0);
    334 }
    335 if (iniGetExistingValue(ini, section, &quot;FilterSilent&quot;, nullptr, nullptr) != nullptr) {
    336 r.has_filter_silent = true;
    337 r.filter_silent = iniGetBool(ini, section, &quot;FilterSilent&quot;, false);
    338 }
    &gt;&gt;&gt; CID 662422: Performance inefficiencies (COPY_INSTEAD_OF_MOVE)
    &gt;&gt;&gt; &quot;r&quot; is copied and then passed-by-reference as parameter to STL insertion function &quot;std::vector&lt;webBlock::rule, std::allocator&lt;webBlock::rule&gt; &gt;::push_back(std::vector&lt;webBlock::rule, std::allocator&lt;webBlock::rule&gt; &gt;::value_type const &amp;)&quot;, when it could be moved instead.
    339 loaded.push_back(r);
    340 }
    341 iniFreeStringList(all);
    342 iniFreeStringList(sections);
    343 }
    344 };
    345

    ** CID 662421: Insecure data handling (TAINTED_SCALAR)
    /getmail.c: 146 in mail_stored_bytes()


    _____________________________________________________________________________________________
    *** CID 662421: Insecure data handling (TAINTED_SCALAR)
    /getmail.c: 146 in mail_stored_bytes()
    140 if (memcmp(hdr.msghdr_id, SHD_HEADER_ID, LEN_HEADER_ID) != 0
    141 || hdr.number != list[i].number
    142 || (hdr.attr &amp; MSG_DELETE))
    143 continue;
    144 fields = (uint)((rd - sizeof(hdr)) / sizeof(dfield)); 145 datlen = 0;
    &gt;&gt;&gt; CID 662421: Insecure data handling (TAINTED_SCALAR) &gt;&gt;&gt; Using tainted variable &quot;hdr.total_dfields&quot; as a loop boundary.
    146 for (d = 0; d &lt; hdr.total_dfields; d++) {
    147 if (d &lt; fields)
    148 memcpy(&amp;dfield, buf + sizeof(hdr) + (d * sizeof(dfield)), sizeof dfield);
    149 else {
    150 /* More data fields than the block read holds */
    151 if (d == fields

    ** CID 662420: Performance inefficiencies (COPY_INSTEAD_OF_MOVE) /websrvr.cpp: 3057 in forwarded_client(const std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt;&gt; &amp;)()


    _____________________________________________________________________________________________
    *** CID 662420: Performance inefficiencies (COPY_INSTEAD_OF_MOVE) /websrvr.cpp: 3057 in forwarded_client(const std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt;&gt; &amp;)()
    3051 size_t first = addr.find_first_not_of(&quot; \t&quot;);
    3052 size_t last = addr.find_last_not_of(&quot; \t&quot;);
    3053 addr = (first == std::string::npos) ? &quot;&quot; : addr.substr(first, last - first + 1);
    3054 uint8_t ip_addr[16];
    3055 if (inet_pton(AF_INET, addr.c_str(), ip_addr) != 1 &amp;&amp; inet_pton(AF_INET6, addr.c_str(), ip_addr) != 1)
    3056 return std::string();
    &gt;&gt;&gt; CID 662420: Performance inefficiencies (COPY_INSTEAD_OF_MOVE)
    &gt;&gt;&gt; &quot;addr&quot; is copied and then passed-by-reference as parameter to STL insertion function &quot;std::vector&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::allocator&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt;::push_back(std::vector&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::allocator&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt;::value_type const &amp;)&quot;, when it could be moved instead.
    3057 addrs.push_back(addr);
    3058 start = end + 1;
    3059 }
    3060 if (strListCount(proxy_trust) &lt; 1)
    3061 return addrs.back();
    3062 for (auto it = addrs.rbegin(); it != addrs.rend(); ++it) {

    </pre>

    <p>
    <a href="https://scan.coverity.com/projects/synchronet?tab=overview" class="button">View Defects in Coverity Scan</a>
    </p>

    <p>Best regards,</p>
    <p>The Coverity Scan Admin Team</p>
    <img class="logo" width="140" src="https://scan.coverity.com/assets/BlackDuckLogo-6697adc63e07340464201a2ad534d3d3e44f95d36edda20b140440d34f05372f.svg" />
    </body>
    </html>
    ----==_mimepart_6b02f295d9063_15823b2dc1e9b019a8950cd--

    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From scan-admin@coverity.com@1:103/705 to cov-scan@synchro.net on Mon Nov 23 13:47:47 2026

    ----==_mimepart_6b04440288dad_1682162dc1e9b019a8950fb
    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.

    1 new defect(s) introduced to Synchronet found with Coverity Scan.
    12 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

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


    ** CID 662456: Error handling issues (CHECKED_RETURN)
    /netmail.cpp: 924 in sbbs_t::qwktonetmail(_IO_FILE *, char *, char *, unsigned int)()


    _____________________________________________________________________________________________
    *** CID 662456: Error handling issues (CHECKED_RETURN)
    /netmail.cpp: 924 in sbbs_t::qwktonetmail(_IO_FILE *, char *, char *, unsigned int)()
    918 errormsg(WHERE, ERR_OPEN, str, O_WRONLY | O_CREAT | O_EXCL);
    919 return;
    920 }
    921 if (write(fido, &hdr, sizeof(hdr)) != sizeof hdr) {
    922 free(qwkbuf);
    923 close(fido);
    CID 662456: Error handling issues (CHECKED_RETURN)
    Calling "remove(str)" without checking return value. This library function may fail and return an error code.
    924 remove(str);
    925 errormsg(WHERE, ERR_WRITE, str, sizeof hdr);
    926 return;
    927 }
    928
    929 pt_zone_kludge(&hdr, fido);


    ________________________________________________________________________________________________________
    To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/synchronet?tab=overview


    ----==_mimepart_6b04440288dad_1682162dc1e9b019a8950fb
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>New Defects Reported - Synchronet</title>
    <style>
    body { font-family: Arial, sans-serif; color: #222; line-height: 1.6; }
    .button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    font-size: 16px;
    color: #fff !important;
    background-color: #0056b3;
    text-decoration: none;
    border-radius: 5px;
    }
    pre {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    overflow-x: auto;
    }
    </style>
    </head>
    <body>
    <p>Hi,</p>

    <p>
    Please find the latest report on new defect(s) introduced to <strong>Synchronet</strong>
    found with Coverity Scan.
    </p>

    <ul>
    <li><strong>New Defects Found:</strong> 1</li>
    <li>
    12 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
    </li>
    <li><strong>Defects Shown:</strong> Showing 1 of 1 defect(s)</li>
    </ul>

    <h3>Defect Details</h3>
    <pre>
    ** CID 662456: Error handling issues (CHECKED_RETURN)
    /netmail.cpp: 924 in sbbs_t::qwktonetmail(_IO_FILE *, char *, char *, unsigned int)()


    _____________________________________________________________________________________________
    *** CID 662456: Error handling issues (CHECKED_RETURN)
    /netmail.cpp: 924 in sbbs_t::qwktonetmail(_IO_FILE *, char *, char *, unsigned int)()
    918 errormsg(WHERE, ERR_OPEN, str, O_WRONLY | O_CREAT | O_EXCL);
    919 return;
    920 }
    921 if (write(fido, &amp;hdr, sizeof(hdr)) != sizeof hdr) {
    922 free(qwkbuf);
    923 close(fido);
    &gt;&gt;&gt; CID 662456: Error handling issues (CHECKED_RETURN) &gt;&gt;&gt; Calling &quot;remove(str)&quot; without checking return value. This library function may fail and return an error code.
    924 remove(str);
    925 errormsg(WHERE, ERR_WRITE, str, sizeof hdr);
    926 return;
    927 }
    928
    929 pt_zone_kludge(&amp;hdr, fido);

    </pre>

    <p>
    <a href="https://scan.coverity.com/projects/synchronet?tab=overview" class="button">View Defects in Coverity Scan</a>
    </p>

    <p>Best regards,</p>
    <p>The Coverity Scan Admin Team</p>
    <img class="logo" width="140" src="https://scan.coverity.com/assets/BlackDuckLogo-6697adc63e07340464201a2ad534d3d3e44f95d36edda20b140440d34f05372f.svg" />
    </body>
    </html>
    ----==_mimepart_6b04440288dad_1682162dc1e9b019a8950fb--

    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From scan-admin@coverity.com@1:103/705 to All on Tue Nov 24 13:46:55 2026

    ----==_mimepart_6b05954e7dda1_1789fa2dc1e9b019a895074
    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.
    1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

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


    ** CID 662570: (RESOURCE_LEAK)
    /js_console.cpp: 925 in js_getstr(JSContext *, unsigned int, unsigned long *)()
    /js_console.cpp: 909 in js_getstr(JSContext *, unsigned int, unsigned long *)()
    /js_console.cpp: 919 in js_getstr(JSContext *, unsigned int, unsigned long *)()
    /js_console.cpp: 913 in js_getstr(JSContext *, unsigned int, unsigned long *)()


    _____________________________________________________________________________________________
    *** CID 662570: (RESOURCE_LEAK)
    /js_console.cpp: 925 in js_getstr(JSContext *, unsigned int, unsigned long *)()
    919 return JS_FALSE;
    920 }
    921 else if (JSVAL_IS_OBJECT(argv[i])) {
    922 JSObject* array = JSVAL_TO_OBJECT(argv[i]);
    923 jsuint len = 0;
    924 if (array == NULL || !JS_GetArrayLength(cx, array, &len))
    CID 662570: (RESOURCE_LEAK)
    Variable "history" going out of scope leaks the storage it points to. 925 return JS_FALSE;
    926 strListFree(&history);
    927 if (len >= SIZE_MAX / sizeof(char*)
    928 || (history = (str_list_t)calloc(len + 1, sizeof(char*))) == NULL) {
    929 JS_ReportError(cx, "Error allocating history of %u entries", (unsigned)len);
    930 return JS_FALSE;
    /js_console.cpp: 909 in js_getstr(JSContext *, unsigned int, unsigned long *)()
    903 JS_SET_RVAL(cx, arglist, JSVAL_VOID);
    904
    905 for (i = 0; i < argc; i++) {
    906 if (JSVAL_IS_NUMBER(argv[i])) {
    907 if (maxlen == 0) {
    908 if (!JS_ValueToInt32(cx, argv[i], &maxlen))
    CID 662570: (RESOURCE_LEAK)
    Variable "history" going out of scope leaks the storage it points to. 909 return JS_FALSE;
    910 }
    911 else {
    912 if (!JS_ValueToInt32(cx, argv[i], &mode))
    913 return JS_FALSE;
    914 }
    /js_console.cpp: 919 in js_getstr(JSContext *, unsigned int, unsigned long *)()
    913 return JS_FALSE;
    914 }
    915 }
    916 else if (JSVAL_IS_STRING(argv[i])) {
    917 js_str = JS_ValueToString(cx, argv[i]);
    918 if (!js_str)
    CID 662570: (RESOURCE_LEAK)
    Variable "history" going out of scope leaks the storage it points to. 919 return JS_FALSE;
    920 }
    921 else if (JSVAL_IS_OBJECT(argv[i])) {
    922 JSObject* array = JSVAL_TO_OBJECT(argv[i]);
    923 jsuint len = 0;
    924 if (array == NULL || !JS_GetArrayLength(cx, array, &len))
    /js_console.cpp: 913 in js_getstr(JSContext *, unsigned int, unsigned long *)()
    907 if (maxlen == 0) {
    908 if (!JS_ValueToInt32(cx, argv[i], &maxlen))
    909 return JS_FALSE;
    910 }
    911 else {
    912 if (!JS_ValueToInt32(cx, argv[i], &mode))
    CID 662570: (RESOURCE_LEAK)
    Variable "history" going out of scope leaks the storage it points to. 913 return JS_FALSE;
    914 }
    915 }
    916 else if (JSVAL_IS_STRING(argv[i])) {
    917 js_str = JS_ValueToString(cx, argv[i]);
    918 if (!js_str)

    ** CID 662569: Code maintainability issues (UNUSED_VALUE)
    /scfgsave.c: 914 in write_file_cfg()


    _____________________________________________________________________________________________
    *** CID 662569: Code maintainability issues (UNUSED_VALUE) /scfgsave.c: 914 in write_file_cfg()
    908 md(cfg->dir[i]->data_dir);
    909 }
    910 SAFEPRINTF2(name, "dir:%s:%s"
    911 , cfg->lib[j]->sname, cfg->dir[i]->code_suffix);
    912 str_list_t section = dir_ini_section(cfg, cfg->dir[i], name);
    913 if (section == NULL) {
    CID 662569: Code maintainability issues (UNUSED_VALUE)
    Assigning value "false" to "result" here, but that stored value is overwritten before it can be used.
    914 result = false;
    915 continue;
    916 }
    917 if (cfg->dir[i]->misc & DIR_FCHK) {
    918 SAFECOPY(path, cfg->dir[i]->path);
    919 if (!path[0]) { /* no file storage path specified */


    ________________________________________________________________________________________________________
    To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/synchronet?tab=overview


    ----==_mimepart_6b05954e7dda1_1789fa2dc1e9b019a895074
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>New Defects Reported - Synchronet</title>
    <style>
    body { font-family: Arial, sans-serif; color: #222; line-height: 1.6; }
    .button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    font-size: 16px;
    color: #fff !important;
    background-color: #0056b3;
    text-decoration: none;
    border-radius: 5px;
    }
    pre {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    overflow-x: auto;
    }
    </style>
    </head>
    <body>
    <p>Hi,</p>

    <p>
    Please find the latest report on new defect(s) introduced to <strong>Synchronet</strong>
    found with Coverity Scan.
    </p>

    <ul>
    <li><strong>New Defects Found:</strong> 2</li>
    <li>
    1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
    </li>
    <li><strong>Defects Shown:</strong> Showing 2 of 2 defect(s)</li>
    </ul>

    <h3>Defect Details</h3>
    <pre>
    ** CID 662570: (RESOURCE_LEAK)
    /js_console.cpp: 925 in js_getstr(JSContext *, unsigned int, unsigned long *)()
    /js_console.cpp: 909 in js_getstr(JSContext *, unsigned int, unsigned long *)()
    /js_console.cpp: 919 in js_getstr(JSContext *, unsigned int, unsigned long *)()
    /js_console.cpp: 913 in js_getstr(JSContext *, unsigned int, unsigned long *)()


    _____________________________________________________________________________________________
    *** CID 662570: (RESOURCE_LEAK)
    /js_console.cpp: 925 in js_getstr(JSContext *, unsigned int, unsigned long *)()
    919 return JS_FALSE;
    920 }
    921 else if (JSVAL_IS_OBJECT(argv[i])) {
    922 JSObject* array = JSVAL_TO_OBJECT(argv[i]);
    923 jsuint len = 0;
    924 if (array == NULL || !JS_GetArrayLength(cx, array, &amp;len))
    &gt;&gt;&gt; CID 662570: (RESOURCE_LEAK)
    &gt;&gt;&gt; Variable &quot;history&quot; going out of scope leaks the storage it points to.
    925 return JS_FALSE;
    926 strListFree(&amp;history);
    927 if (len &gt;= SIZE_MAX / sizeof(char*)
    928 || (history = (str_list_t)calloc(len + 1, sizeof(char*))) == NULL) {
    929 JS_ReportError(cx, &quot;Error allocating history of %u entries&quot;, (unsigned)len);
    930 return JS_FALSE;
    /js_console.cpp: 909 in js_getstr(JSContext *, unsigned int, unsigned long *)()
    903 JS_SET_RVAL(cx, arglist, JSVAL_VOID);
    904
    905 for (i = 0; i &lt; argc; i++) {
    906 if (JSVAL_IS_NUMBER(argv[i])) {
    907 if (maxlen == 0) {
    908 if (!JS_ValueToInt32(cx, argv[i], &amp;maxlen))
    &gt;&gt;&gt; CID 662570: (RESOURCE_LEAK)
    &gt;&gt;&gt; Variable &quot;history&quot; going out of scope leaks the storage it points to.
    909 return JS_FALSE;
    910 }
    911 else {
    912 if (!JS_ValueToInt32(cx, argv[i], &amp;mode))
    913 return JS_FALSE;
    914 }
    /js_console.cpp: 919 in js_getstr(JSContext *, unsigned int, unsigned long *)()
    913 return JS_FALSE;
    914 }
    915 }
    916 else if (JSVAL_IS_STRING(argv[i])) {
    917 js_str = JS_ValueToString(cx, argv[i]);
    918 if (!js_str)
    &gt;&gt;&gt; CID 662570: (RESOURCE_LEAK)
    &gt;&gt;&gt; Variable &quot;history&quot; going out of scope leaks the storage it points to.
    919 return JS_FALSE;
    920 }
    921 else if (JSVAL_IS_OBJECT(argv[i])) {
    922 JSObject* array = JSVAL_TO_OBJECT(argv[i]);
    923 jsuint len = 0;
    924 if (array == NULL || !JS_GetArrayLength(cx, array, &amp;len))
    /js_console.cpp: 913 in js_getstr(JSContext *, unsigned int, unsigned long *)()
    907 if (maxlen == 0) {
    908 if (!JS_ValueToInt32(cx, argv[i], &amp;maxlen))
    909 return JS_FALSE;
    910 }
    911 else {
    912 if (!JS_ValueToInt32(cx, argv[i], &amp;mode))
    &gt;&gt;&gt; CID 662570: (RESOURCE_LEAK)
    &gt;&gt;&gt; Variable &quot;history&quot; going out of scope leaks the storage it points to.
    913 return JS_FALSE;
    914 }
    915 }
    916 else if (JSVAL_IS_STRING(argv[i])) {
    917 js_str = JS_ValueToString(cx, argv[i]);
    918 if (!js_str)

    ** CID 662569: Code maintainability issues (UNUSED_VALUE)
    /scfgsave.c: 914 in write_file_cfg()


    _____________________________________________________________________________________________
    *** CID 662569: Code maintainability issues (UNUSED_VALUE) /scfgsave.c: 914 in write_file_cfg()
    908 md(cfg-&gt;dir[i]-&gt;data_dir);
    909 }
    910 SAFEPRINTF2(name, &quot;dir:%s:%s&quot;
    911 , cfg-&gt;lib[j]-&gt;sname, cfg-&gt;dir[i]-&gt;code_suffix);
    912 str_list_t section = dir_ini_section(cfg, cfg-&gt;dir[i], name);
    913 if (section == NULL) {
    &gt;&gt;&gt; CID 662569: Code maintainability issues (UNUSED_VALUE)
    &gt;&gt;&gt; Assigning value &quot;false&quot; to &quot;result&quot; here, but that stored value is overwritten before it can be used.
    914 result = false;
    915 continue;
    916 }
    917 if (cfg-&gt;dir[i]-&gt;misc &amp; DIR_FCHK) { 918 SAFECOPY(path, cfg-&gt;dir[i]-&gt;path);
    919 if (!path[0]) { /* no file storage path specified */

    </pre>

    <p>
    <a href="https://scan.coverity.com/projects/synchronet?tab=overview" class="button">View Defects in Coverity Scan</a>
    </p>

    <p>Best regards,</p>
    <p>The Coverity Scan Admin Team</p>
    <img class="logo" width="140" src="https://scan.coverity.com/assets/BlackDuckLogo-6697adc63e07340464201a2ad534d3d3e44f95d36edda20b140440d34f05372f.svg" />
    </body>
    </html>
    ----==_mimepart_6b05954e7dda1_1789fa2dc1e9b019a895074--

    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From scan-admin@coverity.com@1:103/705 to All on Wed Nov 25 15:19:48 2026

    ----==_mimepart_6b06fc9411a5f_1899212dc1e9b019a8950de
    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.

    1 new defect(s) introduced to Synchronet found with Coverity Scan.
    2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

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


    ** CID 662596: Code maintainability issues (UNUSED_VALUE)
    /scfgsave.c: 545 in write_msgs_cfg()


    _____________________________________________________________________________________________
    *** CID 662596: Code maintainability issues (UNUSED_VALUE) /scfgsave.c: 545 in write_msgs_cfg()
    539 SAFEPRINTF2(path, "%s%s"
    540 , cfg->grp[cfg->sub[i]->grp]->code_prefix
    541 , cfg->sub[i]->code_suffix);
    542 strlwr(path);
    543 SAFECAT(smb.file, path);
    544 if (smb_open(&smb) != SMB_SUCCESS) { >>> CID 662596: Code maintainability issues (UNUSED_VALUE)
    Assigning value "false" to "result" here, but that stored value is overwritten before it can be used.
    545 result = false;
    546 continue;
    547 }
    548 if (!filelength(fileno(smb.shd_fp))) { 549 smb.status.max_crcs = cfg->sub[i]->maxcrcs;
    550 smb.status.max_msgs = cfg->sub[i]->maxmsgs;


    ________________________________________________________________________________________________________
    To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/synchronet?tab=overview


    ----==_mimepart_6b06fc9411a5f_1899212dc1e9b019a8950de
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>New Defects Reported - Synchronet</title>
    <style>
    body { font-family: Arial, sans-serif; color: #222; line-height: 1.6; }
    .button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0;
    font-size: 16px;
    color: #fff !important;
    background-color: #0056b3;
    text-decoration: none;
    border-radius: 5px;
    }
    pre {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    overflow-x: auto;
    }
    </style>
    </head>
    <body>
    <p>Hi,</p>

    <p>
    Please find the latest report on new defect(s) introduced to <strong>Synchronet</strong>
    found with Coverity Scan.
    </p>

    <ul>
    <li><strong>New Defects Found:</strong> 1</li>
    <li>
    2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
    </li>
    <li><strong>Defects Shown:</strong> Showing 1 of 1 defect(s)</li>
    </ul>

    <h3>Defect Details</h3>
    <pre>
    ** CID 662596: Code maintainability issues (UNUSED_VALUE)
    /scfgsave.c: 545 in write_msgs_cfg()


    _____________________________________________________________________________________________
    *** CID 662596: Code maintainability issues (UNUSED_VALUE) /scfgsave.c: 545 in write_msgs_cfg()
    539 SAFEPRINTF2(path, &quot;%s%s&quot;
    540 , cfg-&gt;grp[cfg-&gt;sub[i]-&gt;grp]-&gt;code_prefix
    541 , cfg-&gt;sub[i]-&gt;code_suffix);
    542 strlwr(path);
    543 SAFECAT(smb.file, path);
    544 if (smb_open(&amp;smb) != SMB_SUCCESS) {
    &gt;&gt;&gt; CID 662596: Code maintainability issues (UNUSED_VALUE)
    &gt;&gt;&gt; Assigning value &quot;false&quot; to &quot;result&quot; here, but that stored value is overwritten before it can be used.
    545 result = false;
    546 continue;
    547 }
    548 if (!filelength(fileno(smb.shd_fp))) { 549 smb.status.max_crcs = cfg-&gt;sub[i]-&gt;maxcrcs;
    550 smb.status.max_msgs = cfg-&gt;sub[i]-&gt;maxmsgs;

    </pre>

    <p>
    <a href="https://scan.coverity.com/projects/synchronet?tab=overview" class="button">View Defects in Coverity Scan</a>
    </p>

    <p>Best regards,</p>
    <p>The Coverity Scan Admin Team</p>
    <img class="logo" width="140" src="https://scan.coverity.com/assets/BlackDuckLogo-6697adc63e07340464201a2ad534d3d3e44f95d36edda20b140440d34f05372f.svg" />
    </body>
    </html>
    ----==_mimepart_6b06fc9411a5f_1899212dc1e9b019a8950de--

    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)