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

scan-admin at coverity.com scan-admin at coverity.com
Fri Jun 9 14:39:57 EDT 2017


Hi,

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

2 new defect(s) introduced to freerangerouting/frr found with Coverity Scan.


New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)


** CID 1440982:  Null pointer dereferences  (NULL_RETURNS)


________________________________________________________________________________________________________
*** CID 1440982:  Null pointer dereferences  (NULL_RETURNS)
/bgpd/bgp_routemap.c: 3700 in set_label_index()
3694            "set label-index (0-1048560)",
3695            SET_STR
3696            "Label index to associate with the prefix\n"
3697            "Label index value\n")
3698     {
3699       int idx_number = 2;
>>>     CID 1440982:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a pointer that might be null "(struct route_map_index *)qobj_get_typed(vty->qobj_index, &qobj_t_route_map_index)" when calling "generic_set_add".
3700       return generic_set_add (vty, VTY_GET_CONTEXT(route_map_index), "label-index",
3701                               argv[idx_number]->arg);
3702     }
3703     
3704     DEFUN (no_set_label_index,
3705            no_set_label_index_cmd,

** CID 1440981:    (NULL_RETURNS)


________________________________________________________________________________________________________
*** CID 1440981:    (NULL_RETURNS)
/bgpd/bgp_routemap.c: 3714 in no_set_label_index()
3708            SET_STR
3709            "Label index to associate with the prefix\n"
3710            "Label index value\n")
3711     {
3712       int idx_label_index = 3;
3713       if (argc <= idx_label_index)
>>>     CID 1440981:    (NULL_RETURNS)
>>>     Dereferencing a pointer that might be null "(struct route_map_index *)qobj_get_typed(vty->qobj_index, &qobj_t_route_map_index)" when calling "generic_set_delete".
3714         return generic_set_delete (vty, VTY_GET_CONTEXT(route_map_index),
3715                                    "label-index", NULL);
3716       return generic_set_delete (vty, VTY_GET_CONTEXT(route_map_index), "label-index",
3717                                  argv[idx_label_index]->arg);
3718     }
3719     
/bgpd/bgp_routemap.c: 3716 in no_set_label_index()
3710            "Label index value\n")
3711     {
3712       int idx_label_index = 3;
3713       if (argc <= idx_label_index)
3714         return generic_set_delete (vty, VTY_GET_CONTEXT(route_map_index),
3715                                    "label-index", NULL);
>>>     CID 1440981:    (NULL_RETURNS)
>>>     Dereferencing a pointer that might be null "(struct route_map_index *)qobj_get_typed(vty->qobj_index, &qobj_t_route_map_index)" when calling "generic_set_delete".
3716       return generic_set_delete (vty, VTY_GET_CONTEXT(route_map_index), "label-index",
3717                                  argv[idx_label_index]->arg);
3718     }
3719     
3720     DEFUN (set_aspath_prepend_asn,
3721            set_aspath_prepend_asn_cmd,


________________________________________________________________________________________________________
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-2FJlITd3LAR0j-2F3BuSJ9mCJSEpiY0Pw2Qj8LF3ku5QBcCfUzNs9J5rtmJhP214qdAifmuMC4zY-2Bb655FooFZ0WzqS-2F3jJSspf44Dxrzys2wGvRHaH1DMkVJ-2FkG5Fe1oKiq-2F57Q-2BiWpyuK4z0dhuG9Ma2YfdWXciHqlwUpCwbQxz7ETQ-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-2FJlITd3LAR0j-2F3BuSJ9mCJSEuKd-2FIFE5wCX8D4EVOw2D5NL-2B4o-2Bk4a5zEHA1pxKDeulj-2B8MnfiiEkEwSUJLYh0p-2F7iEMC8rm0Mcyv9DgNeUyWcCvL1cHc-2B5gLcxkr0gnYbuIZccAjTWKnrtSkbFHwt8j9TGlj0Uy3gEO1p8D7je2vg-3D-3D




More information about the dev mailing list