[digikam] [Bug 366621] Crash when performing Transformation resize operation

via KDE Bugzilla bugzilla_noreply at kde.org
Wed Aug 17 11:08:17 BST 2016


https://bugs.kde.org/show_bug.cgi?id=366621

--- Comment #20 from caulier.gilles at gmail.com ---
Maik, 
Coverity scan report a problem with your last patch. See below :

** CID 1369583:  Integer handling issues  (CONSTANT_EXPRESSION_RESULT)
/home/gilles/Devel/5.x/core/libs/dimg/loaders/dimgloader.cpp: 166 in
Digikam::DImgLoader::checkAllocation(long long)()


________________________________________________________________________________________________________
*** CID 1369583:  Integer handling issues  (CONSTANT_EXPRESSION_RESULT)
/home/gilles/Devel/5.x/core/libs/dimg/loaders/dimgloader.cpp: 166 in
Digikam::DImgLoader::checkAllocation(long long)()
160         m_image->m_priv->width  = 0;
161         m_image->m_priv->height = 0;
162     }
163
164     qint64 DImgLoader::checkAllocation(qint64 fullSize)
165     {
>>>     CID 1369583:  Integer handling issues  (CONSTANT_EXPRESSION_RESULT)
>>>     "(quint64)fullSize > 18446744073709551615ULL /* std::numeric_limits<unsigned long>::max() */" is always false regardless of the values of its operands. This occurs as the logical operand of if.
166         if ((quint64)fullSize > std::numeric_limits<size_t>::max())
167         {
168             qCWarning(DIGIKAM_DIMG_LOG) << "Cannot allocate buffer of size"
<< fullSize;
169             return 0;
170         }
171

Gilles

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list