<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <span dir="auto"><<a href="mailto:scan-admin@coverity.com">scan-admin@coverity.com</a>></span><br>Date: Wed, Jun 22, 2022, 1:54 AM<br>Subject: New Defects reported by Coverity Scan for RTEMS<br>To:  <<a href="mailto:build@rtems.org">build@rtems.org</a>><br></div><br><br>Hi,<br>
<br>
Please find the latest report on new defect(s) introduced to RTEMS found with Coverity Scan.<br>
<br>
2 new defect(s) introduced to RTEMS found with Coverity Scan.<br>
2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.<br>
<br>
New defect(s) Reported-by: Coverity Scan<br>
Showing 2 of 2 defect(s)<br>
<br>
<br>
** CID 1506523:  Error handling issues  (CHECKED_RETURN)<br>
/cpukit/libfs/src/ftpfs/tftpDriver.c: 727 in process_data_packet()<br>
<br>
<br>
________________________________________________________________________________________________________<br>
*** CID 1506523:  Error handling issues  (CHECKED_RETURN)<br>
/cpukit/libfs/src/ftpfs/tftpDriver.c: 727 in process_data_packet()<br>
721         if (tp->at_eof) {<br>
722             plen = prepare_ack_packet_for_sending (tp, true, &send_buf, NULL, NULL);<br>
723     <br>
724             /*<br>
725              * Send it. Errors during send will not matter for this last ACK.<br>
726              */<br>
>>>     CID 1506523:  Error handling issues  (CHECKED_RETURN)<br>
>>>     Calling "sendto(tp->socket, send_buf, plen, 0, (struct sockaddr *)&tp->farAddress, 16U)" without checking return value. This library function may fail and return an error code.<br>
727             sendto (<br>
728                 tp->socket,<br>
729                 send_buf,<br>
730                 plen,<br>
731                 0,<br>
732                 (struct sockaddr *) &tp->farAddress,<br>
<br>
** CID 1506522:  Error handling issues  (CHECKED_RETURN)<br>
/cpukit/libfs/src/ftpfs/tftpDriver.c: 529 in send_error()<br>
<br>
<br>
________________________________________________________________________________________________________<br>
*** CID 1506522:  Error handling issues  (CHECKED_RETURN)<br>
/cpukit/libfs/src/ftpfs/tftpDriver.c: 529 in send_error()<br>
523         }<br>
524         len += sizeof (msg.opcode) + sizeof (msg.errorCode) + 1;<br>
525     <br>
526         /*<br>
527          * Send it<br>
528          */<br>
>>>     CID 1506522:  Error handling issues  (CHECKED_RETURN)<br>
>>>     Calling "sendto(tp->socket, (char *)&msg, len, 0, (struct sockaddr *)to, 16U)" without checking return value. This library function may fail and return an error code.<br>
529         sendto (tp->socket, (char *)&msg, len, 0, (struct sockaddr *)to, sizeof *to);<br>
530     }<br>
531     <br>
532     /*<br>
533      * Send a message to make the other end shut up<br>
534      */<br>
<br>
<br>
________________________________________________________________________________________________________<br>
To view the defects in Coverity Scan visit, <a href="https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypUUzi-2FdSNmuyRB7BEFT8xQ4-2B8hpujh0hTgQljRGId4Dg-3D-3DYDHO_EU3W9teASMK00lBXX9WT4lsogDrkCcNZLvg-2FVxwAXMrH8dAzPlWwiDYV1U-2F8xymjxfhXw64FmQzC9v0sejwWoxbemyTlKty07VAeUEneYgIIfMdwjCEXcgn0Re6oeOSfglcSXS8UfePUftOOg0aPvHZGZ-2FivjJ4qNrmfe53lCcuzTJT3zjQOLsqCN9TcK7sxd1vR1mMgE-2BjmivxhPcovrA-3D-3D" rel="noreferrer noreferrer" target="_blank">https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypUUzi-2FdSNmuyRB7BEFT8xQ4-2B8hpujh0hTgQljRGId4Dg-3D-3DYDHO_EU3W9teASMK00lBXX9WT4lsogDrkCcNZLvg-2FVxwAXMrH8dAzPlWwiDYV1U-2F8xymjxfhXw64FmQzC9v0sejwWoxbemyTlKty07VAeUEneYgIIfMdwjCEXcgn0Re6oeOSfglcSXS8UfePUftOOg0aPvHZGZ-2FivjJ4qNrmfe53lCcuzTJT3zjQOLsqCN9TcK7sxd1vR1mMgE-2BjmivxhPcovrA-3D-3D</a><br>
<br>
_______________________________________________<br>
build mailing list<br>
<a href="mailto:build@rtems.org" target="_blank" rel="noreferrer">build@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/build" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/build</a><br>
</div></div></div>