New Defects reported by Coverity Scan for freerangerouting/frr
scan-admin at coverity.com
scan-admin at coverity.com
Wed Nov 15 00:21:56 UTC 2023
Hi,
Please find the latest report on new defect(s) introduced to freerangerouting/frr found with Coverity Scan.
1 new defect(s) introduced to freerangerouting/frr 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 1571038: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 1571038: Null pointer dereferences (FORWARD_NULL)
/bgpd/bgp_bmp.c: 351 in bmp_per_peer_hdr()
345 /* set router-id but for LOC-RIB INSTANCE (RFC 9069) put the instance
346 * router-id if available or 0
347 */
348 struct in_addr *bgp_id =
349 !is_locrib ? &peer->remote_id : bgp ? &bgp->router_id : NULL;
350
>>> CID 1571038: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "bgp_id" to "stream_put_in_addr", which dereferences it.
351 stream_put_in_addr(s, bgp_id);
352
353 /* Timestamp */
354 if (tv) {
355 stream_putl(s, tv->tv_sec);
356 stream_putl(s, tv->tv_usec);
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yrtN2DGUU98GYhjd55wXsXtw53zRK70R0agdV-2Fb7c45-2BoAJF92cCodBN9BBnDbw-2FFg-3DT2pA_O0IDF7c8sUs2B6kWTeWwAJZqriD5fgsfL8PAN30oQTygbrTbTjsLyhm-2BlLRIW8P24evFdCOFsnndPLhkWPgO68-2BX4pzL5mD5Cz0zUvt9zdIsg1ylXSH1a6ZEIMk8PAPSaiXnLdpm-2FqeykSgX1WO37Kns6pukZHY-2BzRxdtYBuE49bS-2FpFuuJs4CxjZUbm765wz-2FOX5rgM9Hu0-2BchedkJRig-3D-3D
More information about the dev
mailing list