New Defects reported by Coverity Scan for freerangerouting/frr
scan-admin at coverity.com
scan-admin at coverity.com
Fri Jan 12 00:21:47 UTC 2024
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.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1575595: Null pointer dereferences (REVERSE_INULL)
/lib/northbound_oper.c: 521 in nb_op_ys_init_node_infos()
________________________________________________________________________________________________________
*** CID 1575595: Null pointer dereferences (REVERSE_INULL)
/lib/northbound_oper.c: 521 in nb_op_ys_init_node_infos()
515
516 /* Move up to the container if on a leaf currently. */
517 if (node &&
518 !CHECK_FLAG(node->schema->nodetype, LYS_CONTAINER | LYS_LIST))
519 node = &node->parent->node;
520 assert(CHECK_FLAG(node->schema->nodetype, LYS_CONTAINER | LYS_LIST));
>>> CID 1575595: Null pointer dereferences (REVERSE_INULL)
>>> Null-checking "node" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
521 if (!node)
522 return NB_ERR_NOT_FOUND;
523
524 inner = node;
525 for (len = 1; inner->parent; len++)
526 inner = &inner->parent->node;
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yrtN2DGUU98GYhjd55wXsXtw53zRK70R0agdV-2Fb7c45-2BoAJF92cCodBN9BBnDbw-2FFg-3D0jv7_O0IDF7c8sUs2B6kWTeWwAJZqriD5fgsfL8PAN30oQTzcHrDBHZNOuiA7MTOKG0gKqU29x8H1pwnHjd68KCVg-2Bt82WPpVUaLtcGhT2PV33Vv6-2FWNvQ4xkaek4Ti4YTWYFNqGAZG9sbedURR-2FHmohwJ04WWvUtJ1HHEWiVcy5RQQXI8jZkl-2BfoAKCHf1r-2BAJJhd-2BXF4htaNDX3hnhL8QkwJw-3D-3D
More information about the dev
mailing list