Skip to contentSkip to conversation

New Defects reported by Coverity Scan for ceph

DISCUSSION [email protected] 2 participants 2 messages Oct 30, 2014

lore
Share & tools
lore
#0 lore raw

Hi,

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

1 new defect(s) introduced to ceph found with Coverity Scan.
25 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

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

** CID 1250262: Dereference after null check (FORWARD_NULL) /osdc/Objecter.cc: 2062 in Objecter::_calc_target(Objecter::op_target_t *, bool)()

________________________________________________________________________________________________________
*** CID 1250262: Dereference after null check (FORWARD_NULL) /osdc/Objecter.cc: 2062 in Objecter::_calc_target(Objecter::op_target_t *, bool)()
2056 if (ret == -ENOENT) {
2057 t->osd = -1;
2058 return RECALC_OP_TARGET_POOL_DNE;
2059 }
2060 }
2061

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

CID 1250262: Dereference after null check (FORWARD_NULL) Dereferencing null pointer "pi".

2062       int min_size = pi->min_size;
2063       unsigned pg_num = pi->get_pg_num();
2064       int up_primary, acting_primary;
2065       vector<int> up, acting;
2066       osdmap->pg_to_up_acting_osds(pgid, &up, &up_primary,

2067 &acting, &acting_primary);

________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, http://scan.coverity.com/projects/25?tab=overview

To unsubscribe from the email notification for new defects, http://scan5.coverity.com/cgi-bin/unsubscribe.py

#1 lore raw
Quoted 25 lines · On Thu, 30 Oct 2014, [email protected] wrote:

Hi,

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

1 new defect(s) introduced to ceph found with Coverity Scan.
25 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

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

** CID 1250262: Dereference after null check (FORWARD_NULL) /osdc/Objecter.cc: 2062 in Objecter::_calc_target(Objecter::op_target_t *, bool)()

________________________________________________________________________________________________________
*** CID 1250262: Dereference after null check (FORWARD_NULL) /osdc/Objecter.cc: 2062 in Objecter::_calc_target(Objecter::op_target_t *, bool)()
2056 if (ret == -ENOENT) {
2057 t->osd = -1;
2058 return RECALC_OP_TARGET_POOL_DNE;
2059 }
2060 }
2061

Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

CID 1250262: Dereference after null check (FORWARD_NULL) Dereferencing null pointer "pi".

2062       int min_size = pi->min_size;
2063       unsigned pg_num = pi->get_pg_num();
2064       int up_primary, acting_primary;
2065       vector<int> up, acting;
2066       osdmap->pg_to_up_acting_osds(pgid, &up, &up_primary,

2067 &acting, &acting_primary);

opened #9944