--- Begin Message ---
Hi,
Please find the latest report on new defect(s) introduced to ceph found with Coverity Scan.
Defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1223276: Division or modulo by zero (DIVIDE_BY_ZERO)
/tools/rados/rados.cc: 1368 in rados_tool_common(const std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> &, std::vector<const char *, std::allocator<const char *>> &)()
________________________________________________________________________________________________________
*** CID 1223276: Division or modulo by zero (DIVIDE_BY_ZERO)
/tools/rados/rados.cc: 1368 in rados_tool_common(const std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> &, std::vector<const char *, std::allocator<const char *>> &)()
1362 }
1363
1364 // align op_size
1365 if (io_ctx.pool_requires_alignment()) {
1366 const uint64_t align = io_ctx.pool_required_alignment();
1367 const bool wrn = (op_size != (1<<22));
>>> CID 1223276: Division or modulo by zero (DIVIDE_BY_ZERO)
>>> In expression "(op_size + align - 1UL) / align", division by expression "align" which may be zero has undefined behavior.
1368 op_size = uint64_t((op_size + align - 1) / align) * align;
1369 if (wrn)
1370 cerr << "INFO: op_size has been rounded to " << op_size << std::endl;
1371 }
1372
1373 // snapname?
________________________________________________________________________________________________________
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
--- End Message ---