[dev] New Defects reported by Coverity Scan for freerangerouting/frr
scan-admin at coverity.com
scan-admin at coverity.com
Thu Sep 28 19:11:30 EDT 2017
Hi,
Please find the latest report on new defect(s) introduced to freerangerouting/frr found with Coverity Scan.
5 new defect(s) introduced to freerangerouting/frr found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 5 of 5 defect(s)
** CID 1457194: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_vty_clippy.c: 102 in ip_route_blackhole()
________________________________________________________________________________________________________
*** CID 1457194: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_vty_clippy.c: 102 in ip_route_blackhole()
96 #if 8 /* anything to parse? */
97 int _i;
98 #if 1 /* anything that can fail? */
99 unsigned _fail = 0, _failcnt = 0;
100 #endif
101 const char *no = NULL;
>>> CID 1457194: Null pointer dereferences (FORWARD_NULL)
>>> Assigning: "prefix" = "NULL".
102 const char *prefix = NULL;
103 struct in_addr mask = { INADDR_ANY };
104 const char *mask_str = NULL;
105 const char *flag = NULL;
106 long tag = 0;
107 const char *tag_str = NULL;
** CID 1457193: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_vty_clippy.c: 489 in ipv6_route_address_interface()
________________________________________________________________________________________________________
*** CID 1457193: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_vty_clippy.c: 489 in ipv6_route_address_interface()
483 int _i;
484 #if 1 /* anything that can fail? */
485 unsigned _fail = 0, _failcnt = 0;
486 #endif
487 const char *no = NULL;
488 struct prefix_ipv6 prefix = { };
>>> CID 1457193: Null pointer dereferences (FORWARD_NULL)
>>> Assigning: "prefix_str" = "NULL".
489 const char *prefix_str = NULL;
490 struct prefix_ipv6 from = { };
491 const char *from_str = NULL;
492 struct in6_addr gate = IN6ADDR_ANY_INIT;
493 const char *gate_str = NULL;
494 const char *ifname = NULL;
** CID 1457192: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_vty_clippy.c: 195 in ip_route_address_interface()
________________________________________________________________________________________________________
*** CID 1457192: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_vty_clippy.c: 195 in ip_route_address_interface()
189 #if 9 /* anything to parse? */
190 int _i;
191 #if 1 /* anything that can fail? */
192 unsigned _fail = 0, _failcnt = 0;
193 #endif
194 const char *no = NULL;
>>> CID 1457192: Null pointer dereferences (FORWARD_NULL)
>>> Assigning: "prefix" = "NULL".
195 const char *prefix = NULL;
196 struct in_addr mask = { INADDR_ANY };
197 const char *mask_str = NULL;
198 struct in_addr gate = { INADDR_ANY };
199 const char *gate_str = NULL;
200 const char *ifname = NULL;
** CID 1457191: Uninitialized variables (UNINIT)
/pimd/pim_cmd.c: 6505 in interface_no_ip_pim_boundary_oil()
________________________________________________________________________________________________________
*** CID 1457191: Uninitialized variables (UNINIT)
/pimd/pim_cmd.c: 6505 in interface_no_ip_pim_boundary_oil()
6499 "Define multicast boundary\n"
6500 "Filter OIL by group using prefix list\n"
6501 "Prefix list to filter OIL with")
6502 {
6503 VTY_DECLVAR_CONTEXT(interface, iif);
6504 struct pim_interface *pim_ifp;
>>> CID 1457191: Uninitialized variables (UNINIT)
>>> Declaring variable "idx" without initializer.
6505 int idx;
6506
6507 argv_find(argv, argc, "WORD", &idx);
6508
6509 PIM_GET_PIM_INTERFACE(pim_ifp, iif);
6510
** CID 1457190: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_vty_clippy.c: 393 in ipv6_route_blackhole()
________________________________________________________________________________________________________
*** CID 1457190: Null pointer dereferences (FORWARD_NULL)
/zebra/zebra_vty_clippy.c: 393 in ipv6_route_blackhole()
387 int _i;
388 #if 1 /* anything that can fail? */
389 unsigned _fail = 0, _failcnt = 0;
390 #endif
391 const char *no = NULL;
392 struct prefix_ipv6 prefix = { };
>>> CID 1457190: Null pointer dereferences (FORWARD_NULL)
>>> Assigning: "prefix_str" = "NULL".
393 const char *prefix_str = NULL;
394 struct prefix_ipv6 from = { };
395 const char *from_str = NULL;
396 const char *flag = NULL;
397 long tag = 0;
398 const char *tag_str = NULL;
________________________________________________________________________________________________________
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-2FJnqSEbhGuzmuTPpfzBGN7Nmobqn1i2CsK4DCaOFF29y0vJwiJ37CIUNnXK80zMkOu48UnrMQ0Y8bpzude7Qb4eZ0n4XROYN6NgJav1KOR-2B5lSh4PMbL0A5kPYh1PrQ-2F6WK0PsbOIlsumGr-2FSKMhyLEhIEUzAB4eUrbFOoJN7cV07g-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-2FJnqSEbhGuzmuTPpfzBGN7NmNoVQlO19g-2B34ujeXdVosBEaPHDNWtHwYMcmsWYOrtgjs5Xz244w2Twj8qv3RyCQF6x2mjGhKC8WJqI2onB03doAEMfgJ13rloXa-2FZ7yIfUnmRI-2FekZGEdVXANtAS3Xbooww-2BTdRAr37x6Ofh4kWNag-3D-3D
More information about the dev
mailing list