The following issues were found
modules/core/perf/perf_split.cpp
1 issues
Line: 10
typedef tuple<Size, MatType, int> Size_Depth_Channels_t;
typedef perf::TestBaseWithParam<Size_Depth_Channels_t> Size_Depth_Channels;
PERF_TEST_P( Size_Depth_Channels, split,
testing::Combine
(
testing::Values(TYPICAL_MAT_SIZES),
testing::Values(CV_8U, CV_16S, CV_32F, CV_64F),
testing::Values(2, 3, 4)
Reported by Cppcheck.
modules/core/perf/perf_stat.cpp
1 issues
Line: 7
{
using namespace perf;
PERF_TEST_P(Size_MatType, sum, TYPICAL_MATS)
{
Size sz = get<0>(GetParam());
int type = get<1>(GetParam());
Mat arr(sz, type);
Reported by Cppcheck.
modules/core/perf/perf_umat.cpp
1 issues
Line: 33
typedef TestBaseWithParam< tuple<Size, bool, int> > UMatTest;
OCL_PERF_TEST_P(UMatTest, CustomPtr, Combine(Values(sz1080p, sz2160p), Bool(), ::testing::Values(4, 64, 4096)))
{
OpenCLState s(get<1>(GetParam()));
int type = CV_8UC1;
cv::Size size = get<0>(GetParam());
Reported by Cppcheck.
modules/core/src/convert.simd.hpp
1 issues
Line: 100
} // namespace cv::hal
// cv::
CV_CPU_OPTIMIZATION_NAMESPACE_BEGIN
template<typename _Ts, typename _Td, typename _Twvec> static inline void
cvt_( const _Ts* src, size_t sstep, _Td* dst, size_t dstep, Size size )
{
sstep /= sizeof(src[0]);
Reported by Cppcheck.
modules/core/src/opencl/reduce.cl
1 issues
Line: 186
FUNC(accumulator, temp)
#endif
#else
#define PROCESS_ELEMS \
dstT temp = convertToDT(loadpix(srcptr + src_index)); \
FUNC(accumulator, temp)
#endif
#ifdef HAVE_MASK
Reported by Cppcheck.
modules/core/src/opencl/runtime/opencl_core.cpp
1 issues
Line: 377
CWE codes:
476
if (!func)
{
throw cv::Exception(cv::Error::OpenCLApiCallError,
cv::format("OpenCL function is not available: [%s]", e->fnName),
CV_Func, __FILE__, __LINE__);
}
*(e->ppFn) = func;
return func;
}
Reported by Cppcheck.
modules/core/src/system.cpp
1 issues
Line: 923
const String& getBuildInformation()
{
static String build_info =
#include "version_string.inc"
;
return build_info;
}
Reported by Cppcheck.
modules/core/test/ocl/test_arithm.cpp
1 issues
Line: 99
}
};
OCL_TEST_P(Lut, Mat)
{
for (int j = 0; j < test_loop_times; j++)
{
generateTestData();
Reported by Cppcheck.
modules/core/test/ocl/test_channels.cpp
1 issues
Line: 133
}
};
OCL_TEST_P(Merge, Accuracy)
{
for(int j = 0; j < test_loop_times; j++)
{
generateTestData();
Reported by Cppcheck.
modules/core/test/ocl/test_dft.cpp
1 issues
Line: 107
}
};
OCL_TEST_P(Dft, Mat)
{
generateTestData();
int nonzero_rows = hint ? src.rows - randomInt(1, src.rows-1) : 0;
OCL_OFF(cv::dft(src, dst, dft_flags, nonzero_rows));
Reported by Cppcheck.