Skip to content

QRCode: use of initialized values (valgrind 2022-12-17) #22978

@alalek

Description

@alalek

Valring report: http://pullrequest.opencv.org/buildbot/builders/master_valgrind-lin64-debug/builds/100001

[ RUN      ] Objdetect_QRCode_decodeMulti.check_output_parameters_type_19363
==16847== Conditional jump or move depends on uninitialised value(s)
==16847==    at 0x4EBF79D: cv::QRDecode::versionDefinition() (qrcode.cpp:2561)
==16847==    by 0x4EC0209: cv::QRDecode::straightDecodingProcess() (qrcode.cpp:2752)
==16847==    by 0x4EC0A82: cv::ParallelDecodeProcess::operator()(cv::Range const&) const (qrcode.cpp:3850)
==16847==    by 0x661F298: cv::(anonymous namespace)::ParallelLoopBodyWrapper::operator()(cv::Range const&) const (parallel.cpp:352)
==16847==    by 0x66359F0: execute (parallel_impl.cpp:330)
==16847==    by 0x66359F0: cv::ThreadPool::run(cv::Range const&, cv::ParallelLoopBody const&, double) (parallel_impl.cpp:645)
==16847==    by 0x6635D8A: cv::parallel_for_pthreads(cv::Range const&, cv::ParallelLoopBody const&, double) (parallel_impl.cpp:748)
==16847==    by 0x661F885: parallel_for_impl (parallel.cpp:609)
==16847== Conditional jump or move depends on uninitialised value(s)
==16847==    at 0x522A644: cv::LMSolverImpl::run(cv::_InputOutputArray const&) const (levmarq.cpp:140)
==16847==    by 0x52179D2: cv::findHomography(cv::_InputArray const&, cv::_InputArray const&, int, double, cv::_OutputArray const&, int, double) (fundam.cpp:423)
==16847==    by 0x4EADA58: cv::QRDecode::detectAlignment() (qrcode.cpp:2654)
==16847==    by 0x4EC0237: cv::QRDecode::straightDecodingProcess() (qrcode.cpp:2754)
==16847==    by 0x4EC0A82: cv::ParallelDecodeProcess::operator()(cv::Range const&) const (qrcode.cpp:3850)
==16847==    by 0x661F298: cv::(anonymous namespace)::ParallelLoopBodyWrapper::operator()(cv::Range const&) const (parallel.cpp:352)
==16847==    by 0x66359F0: execute (parallel_impl.cpp:330)
==16847==    by 0x66359F0: cv::ThreadPool::run(cv::Range const&, cv::ParallelLoopBody const&, double) (parallel_impl.cpp:645)
==16847==    by 0x6635D8A: cv::parallel_for_pthreads(cv::Range const&, cv::ParallelLoopBody const&, double) (parallel_impl.cpp:748)
==16847==    by 0x661F885: parallel_for_impl (parallel.cpp:609)
==16847==    by 0x661F885: cv::parallel_for_(cv::Range const&, cv::ParallelLoopBody const&, double) (parallel.cpp:520)
==16847==    by 0x4EC86F1: cv::QRCodeDetector::decodeMulti(cv::_InputArray const&, cv::_InputArray const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, cv::_OutputArray const&) const (qrcode.cpp:3921)
==16847==    by 0x4EC889A: cv::QRCodeDetector::detectAndDecodeMulti(cv::_InputArray const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, cv::_OutputArray const&, cv::_OutputArray const&) const (qrcode.cpp:3984)
==16847==    by 0x14D8EB: opencv_test::(anonymous namespace)::Objdetect_QRCode_decodeMulti_decode_9_qrcodes_version7_Test::Body() (test_qrcode.cpp:776)
==16847== Conditional jump or move depends on uninitialised value(s)
==16847==    at 0x4EA7383: __fill_n_a<int*, long unsigned int, int> (stl_algobase.h:753)
==16847==    by 0x4EA7383: fill_n<int*, long unsigned int, int> (stl_algobase.h:789)
==16847==    by 0x4EA7383: __uninit_fill_n<int*, long unsigned int, int> (stl_uninitialized.h:228)
==16847==    by 0x4EA7383: uninitialized_fill_n<int*, long unsigned int, int> (stl_uninitialized.h:255)
==16847==    by 0x4EA7383: __uninitialized_fill_n_a<int*, long unsigned int, int, int> (stl_uninitialized.h:366)
==16847==    by 0x4EA7383: _M_fill_initialize (stl_vector.h:1342)
==16847==    by 0x4EA7383: vector (stl_vector.h:298)
==16847==    by 0x4EA7383: cv::QRDecode::samplingForVersion() (qrcode.cpp:2684)
==16847==    by 0x4EC021D: cv::QRDecode::straightDecodingProcess() (qrcode.cpp:2755)
==16847==    by 0x4EC0A82: cv::ParallelDecodeProcess::operator()(cv::Range const&) const (qrcode.cpp:3850)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions