New Defects reported by Coverity Scan for sbabic/swupdate

7 views
Skip to first unread message

scan-...@coverity.com

unread,
Aug 22, 2025, 9:25:35 AMAug 22
to swup...@googlegroups.com

Hi,

Please find the latest report on new defect(s) introduced to sbabic/swupdate found with Coverity Scan.

  • New Defects Found: 1
  • 1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
  • Defects Shown: Showing 1 of 1 defect(s)

Defect Details

** CID 584128:       Error handling issues  (CHECKED_RETURN)
/mongoose/mongoose.c: 8854           in mg_multicast_add()


_____________________________________________________________________________________________
*** CID 584128:         Error handling issues  (CHECKED_RETURN)
/mongoose/mongoose.c: 8854             in mg_multicast_add()
8848     #if defined(__ZEPHYR__) && ZEPHYR_VERSION_CODE < 0x40000
8849       MG_ERROR(("struct ip_mreq not defined"));
8850     #else
8851       struct ip_mreq mreq;
8852       mreq.imr_multiaddr.s_addr = inet_addr(ip);
8853       mreq.imr_interface.s_addr = mg_htonl(INADDR_ANY);
>>>     CID 584128:         Error handling issues  (CHECKED_RETURN)
>>>     Calling "setsockopt((int)(size_t)c->fd, IPPROTO_IP, 35, (char *)&mreq, 8U)" without checking return value. This library function may fail and return an error code.
8854       setsockopt(FD(c), IPPROTO_IP, IP_ADD_MEMBERSHIP, (char *) &mreq, sizeof(mreq));
8855     #endif // !Zephyr
8856     #endif // !lwIP
8857     #endif
8858     }
8859     

  

View Defects in Coverity Scan

Best regards,

The Coverity Scan Admin Team

Reply all
Reply to author
Forward
0 new messages