[frr] New Defects reported by Coverity Scan for freerangerouting/frr

scan-admin at coverity.com scan-admin at coverity.com
Tue Mar 21 12:07:30 EDT 2017


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 1420253:  Null pointer dereferences  (NULL_RETURNS)


________________________________________________________________________________________________________
*** CID 1420253:  Null pointer dereferences  (NULL_RETURNS)
/pimd/pim_zlookup.c: 256 in zclient_read_nexthop()
250           ++num_ifindex;
251           break;
252         case NEXTHOP_TYPE_IPV6_IFINDEX:
253           nexthop_tab[num_ifindex].nexthop_addr.family = AF_INET6;
254           stream_get (&nexthop_tab[num_ifindex].nexthop_addr.u.prefix6, s, 16);
255           nexthop_tab[num_ifindex].ifindex = stream_getl (s);
>>>     CID 1420253:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a pointer that might be null "if_lookup_by_index((nexthop_tab + num_ifindex).ifindex, 0)" when calling "pim_neighbor_find_if".
256           nbr = pim_neighbor_find_if (if_lookup_by_index (nexthop_tab[num_ifindex].ifindex, VRF_DEFAULT));
257           if (nbr)
258             {
259               nexthop_tab[num_ifindex].nexthop_addr.family = AF_INET;
260               nexthop_tab[num_ifindex].nexthop_addr.u.prefix4 = nbr->source_addr;
261             }


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRa7dJ8klHLUFWVd2fqpS-2B-2FHaN43B-2FQ11ntcKmbKat2WeHs8691VOJpZofPkpp-2BRBqc-3D_d-2Fi2nRutHp-2FDWtw8JRg-2Bc1m9CS4-2B5uVbodfDyLsp-2FJmHTCM-2BbKpuDGLerwr7GuSfRkbDJF0j7kMOnyd0WBrD4QElAz8rgVTazBrY133K3W7UulGRZvbBcgeKrgcPVm4NxsMMrbJd5l9Kz-2Bx2BTQwfSGjXpdOT7pTEzB-2BmhDYaIBbbKOnnCe8pNY0lcinawfLTYeWkhVcL2WTH0gYSvW2Zw-3D-3D

To manage Coverity Scan email notifications for "frr at lists.nox.tf", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4lcTWm1Zma8LQDNpOYqrETKrqBiM18kcBcL8b08LzBPOYJYGySZ4Vv7d5QYcnSbGxl3QyORKgEmDxh-2BE2mj6dp1V4JSs2jbMZuLnEQJOW0Z0-3D_d-2Fi2nRutHp-2FDWtw8JRg-2Bc1m9CS4-2B5uVbodfDyLsp-2FJmHTCM-2BbKpuDGLerwr7GuSf9cEj02wqq9fF2EUauEFGxYMYSbtVVBlTz4yWwh2S5DiFfum2BqmSNPmd-2FQOV6BqVzk7LwgfgTyKe-2F3-2FetBa9mujzWvCHGeHtfyOKrtfzlHsCxSRHlljSeqhk-2FG7L7HjRzAqO-2BzWFgErCid-2FyxUEJ5A-3D-3D





More information about the dev mailing list