[dev] New Defects reported by Coverity Scan for freerangerouting/frr
scan-admin at coverity.com
scan-admin at coverity.com
Thu Oct 11 21:57:17 EDT 2018
Hi,
Please find the latest report on new defect(s) introduced to freerangerouting/frr found with Coverity Scan.
12 new defect(s) introduced to freerangerouting/frr found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 12 of 12 defect(s)
** CID 1474183: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 1474183: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_routemap_clippy.c: 190 in ipv6_protocol()
184 }
185 #if 0 /* anything that can fail? */
186 if (_failcnt)
187 return CMD_WARNING;
188 #endif
189 #endif
>>> CID 1474183: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "rmap" to "ipv6_protocol_magic", which dereferences it.
190 return ipv6_protocol_magic(self, vty, argc, argv, proto, rmap);
191 }
192
193 /* no_ipv6_protocol => "no ipv6 protocol RR_IP6_PROTOCOL_MAP_STR_ZEBR $proto [route-map ROUTE-MAP$rmap]" */
194 DEFUN_CMD_FUNC_DECL(no_ipv6_protocol)
195 #define funcdecl_no_ipv6_protocol static int no_ipv6_protocol_magic(\
** CID 1474182: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 1474182: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_routemap_clippy.c: 478 in ipv6_protocol_nht_rmap()
472 }
473 #if 0 /* anything that can fail? */
474 if (_failcnt)
475 return CMD_WARNING;
476 #endif
477 #endif
>>> CID 1474182: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "rmap" to "ipv6_protocol_nht_rmap_magic", which dereferences it.
478 return ipv6_protocol_nht_rmap_magic(self, vty, argc, argv, proto, rmap);
479 }
480
481 /* no_ipv6_protocol_nht_rmap => "no ipv6 nht RR_IP6_PROTOCOL_MAP_STR_ZEBR $proto [route-map ROUTE-MAP$rmap]" */
482 DEFUN_CMD_FUNC_DECL(no_ipv6_protocol_nht_rmap)
483 #define funcdecl_no_ipv6_protocol_nht_rmap static int no_ipv6_protocol_nht_rmap_magic(\
** CID 1474181: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 1474181: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_routemap_clippy.c: 334 in ip_protocol_nht_rmap()
328 }
329 #if 0 /* anything that can fail? */
330 if (_failcnt)
331 return CMD_WARNING;
332 #endif
333 #endif
>>> CID 1474181: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "proto" to "ip_protocol_nht_rmap_magic", which dereferences it.
334 return ip_protocol_nht_rmap_magic(self, vty, argc, argv, proto, rmap);
335 }
336
337 /* no_ip_protocol_nht_rmap => "no ip nht RR_IP_PROTOCOL_MAP_STR_ZEBR $proto route-map [ROUTE-MAP$rmap]" */
338 DEFUN_CMD_FUNC_DECL(no_ip_protocol_nht_rmap)
339 #define funcdecl_no_ip_protocol_nht_rmap static int no_ip_protocol_nht_rmap_magic(\
** CID 1474180: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 1474180: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_routemap_clippy.c: 46 in ip_protocol()
40 }
41 #if 0 /* anything that can fail? */
42 if (_failcnt)
43 return CMD_WARNING;
44 #endif
45 #endif
>>> CID 1474180: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "rmap" to "ip_protocol_magic", which dereferences it.
46 return ip_protocol_magic(self, vty, argc, argv, proto, rmap);
47 }
48
49 /* no_ip_protocol => "no ip protocol RR_IP_PROTOCOL_MAP_STR_ZEBR $proto [route-map ROUTE-MAP$rmap]" */
50 DEFUN_CMD_FUNC_DECL(no_ip_protocol)
51 #define funcdecl_no_ip_protocol static int no_ip_protocol_magic(\
** CID 1474179: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 1474179: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_routemap_clippy.c: 94 in no_ip_protocol()
88 }
89 #if 0 /* anything that can fail? */
90 if (_failcnt)
91 return CMD_WARNING;
92 #endif
93 #endif
>>> CID 1474179: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "proto" to "no_ip_protocol_magic", which dereferences it.
94 return no_ip_protocol_magic(self, vty, argc, argv, proto, rmap);
95 }
96
97 /* show_ip_protocol => "show ip protocol [vrf <NAME$vrf_name|all$vrf_all>]" */
98 DEFUN_CMD_FUNC_DECL(show_ip_protocol)
99 #define funcdecl_show_ip_protocol static int show_ip_protocol_magic(\
** CID 1474178: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 1474178: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_routemap_clippy.c: 334 in ip_protocol_nht_rmap()
328 }
329 #if 0 /* anything that can fail? */
330 if (_failcnt)
331 return CMD_WARNING;
332 #endif
333 #endif
>>> CID 1474178: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "rmap" to "ip_protocol_nht_rmap_magic", which dereferences it.
334 return ip_protocol_nht_rmap_magic(self, vty, argc, argv, proto, rmap);
335 }
336
337 /* no_ip_protocol_nht_rmap => "no ip nht RR_IP_PROTOCOL_MAP_STR_ZEBR $proto route-map [ROUTE-MAP$rmap]" */
338 DEFUN_CMD_FUNC_DECL(no_ip_protocol_nht_rmap)
339 #define funcdecl_no_ip_protocol_nht_rmap static int no_ip_protocol_nht_rmap_magic(\
** CID 1474177: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 1474177: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_routemap_clippy.c: 46 in ip_protocol()
40 }
41 #if 0 /* anything that can fail? */
42 if (_failcnt)
43 return CMD_WARNING;
44 #endif
45 #endif
>>> CID 1474177: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "proto" to "ip_protocol_magic", which dereferences it.
46 return ip_protocol_magic(self, vty, argc, argv, proto, rmap);
47 }
48
49 /* no_ip_protocol => "no ip protocol RR_IP_PROTOCOL_MAP_STR_ZEBR $proto [route-map ROUTE-MAP$rmap]" */
50 DEFUN_CMD_FUNC_DECL(no_ip_protocol)
51 #define funcdecl_no_ip_protocol static int no_ip_protocol_magic(\
** CID 1474176: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 1474176: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_routemap_clippy.c: 526 in no_ipv6_protocol_nht_rmap()
520 }
521 #if 0 /* anything that can fail? */
522 if (_failcnt)
523 return CMD_WARNING;
524 #endif
525 #endif
>>> CID 1474176: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "proto" to "no_ipv6_protocol_nht_rmap_magic", which dereferences it.
526 return no_ipv6_protocol_nht_rmap_magic(self, vty, argc, argv, proto, rmap);
527 }
528
529 /* show_ipv6_protocol_nht => "show ipv6 nht route-map [vrf <NAME$vrf_name|all$vrf_all>]" */
530 DEFUN_CMD_FUNC_DECL(show_ipv6_protocol_nht)
531 #define funcdecl_show_ipv6_protocol_nht static int show_ipv6_protocol_nht_magic(\
** CID 1474175: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 1474175: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_routemap_clippy.c: 478 in ipv6_protocol_nht_rmap()
472 }
473 #if 0 /* anything that can fail? */
474 if (_failcnt)
475 return CMD_WARNING;
476 #endif
477 #endif
>>> CID 1474175: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "proto" to "ipv6_protocol_nht_rmap_magic", which dereferences it.
478 return ipv6_protocol_nht_rmap_magic(self, vty, argc, argv, proto, rmap);
479 }
480
481 /* no_ipv6_protocol_nht_rmap => "no ipv6 nht RR_IP6_PROTOCOL_MAP_STR_ZEBR $proto [route-map ROUTE-MAP$rmap]" */
482 DEFUN_CMD_FUNC_DECL(no_ipv6_protocol_nht_rmap)
483 #define funcdecl_no_ipv6_protocol_nht_rmap static int no_ipv6_protocol_nht_rmap_magic(\
** CID 1474174: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 1474174: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_routemap_clippy.c: 238 in no_ipv6_protocol()
232 }
233 #if 0 /* anything that can fail? */
234 if (_failcnt)
235 return CMD_WARNING;
236 #endif
237 #endif
>>> CID 1474174: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "proto" to "no_ipv6_protocol_magic", which dereferences it.
238 return no_ipv6_protocol_magic(self, vty, argc, argv, proto, rmap);
239 }
240
241 /* show_ipv6_protocol => "show ipv6 protocol [vrf <NAME$vrf_name|all$vrf_all>]" */
242 DEFUN_CMD_FUNC_DECL(show_ipv6_protocol)
243 #define funcdecl_show_ipv6_protocol static int show_ipv6_protocol_magic(\
** CID 1474173: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 1474173: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_routemap_clippy.c: 382 in no_ip_protocol_nht_rmap()
376 }
377 #if 0 /* anything that can fail? */
378 if (_failcnt)
379 return CMD_WARNING;
380 #endif
381 #endif
>>> CID 1474173: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "proto" to "no_ip_protocol_nht_rmap_magic", which dereferences it.
382 return no_ip_protocol_nht_rmap_magic(self, vty, argc, argv, proto, rmap);
383 }
384
385 /* show_ip_protocol_nht => "show ip nht route-map [vrf <NAME$vrf_name|all$vrf_all>]" */
386 DEFUN_CMD_FUNC_DECL(show_ip_protocol_nht)
387 #define funcdecl_show_ip_protocol_nht static int show_ip_protocol_nht_magic(\
** CID 1474172: Null pointer dereferences (FORWARD_NULL)
________________________________________________________________________________________________________
*** CID 1474172: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_routemap_clippy.c: 190 in ipv6_protocol()
184 }
185 #if 0 /* anything that can fail? */
186 if (_failcnt)
187 return CMD_WARNING;
188 #endif
189 #endif
>>> CID 1474172: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "proto" to "ipv6_protocol_magic", which dereferences it.
190 return ipv6_protocol_magic(self, vty, argc, argv, proto, rmap);
191 }
192
193 /* no_ipv6_protocol => "no ipv6 protocol RR_IP6_PROTOCOL_MAP_STR_ZEBR $proto [route-map ROUTE-MAP$rmap]" */
194 DEFUN_CMD_FUNC_DECL(no_ipv6_protocol)
195 #define funcdecl_no_ipv6_protocol static int no_ipv6_protocol_magic(\
________________________________________________________________________________________________________
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-2FJlggfUc78oM5xSHISVI15m4TQVGA7PvWHv694-2FbpJczc9-2FBlW8li-2FbhyyZvpGBLido1V6GmwD7rZCDLDojvvzUy61micf4BF-2FU1-2BxGVIiYK279h2dPZ4GuY9Re-2BWvlswHrPsYp9p4LtYcz-2BgF8XpQcHvYJM6ERa720GhmsRPz7yDw-3D-3D
More information about the dev
mailing list