Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Staging:A
opencv
opencv-imgproc-fix-bounds-check.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File opencv-imgproc-fix-bounds-check.patch of Package opencv
diff --git a/modules/imgcodecs/src/grfmt_hdr.cpp b/modules/imgcodecs/src/grfmt_hdr.cpp index f795120..f52e76e 100644 --- a/modules/imgcodecs/src/grfmt_hdr.cpp +++ b/modules/imgcodecs/src/grfmt_hdr.cpp @@ -101,10 +101,10 @@ bool HdrDecoder::readData(Mat& _img) bool HdrDecoder::checkSignature( const String& signature ) const { - if(signature.size() >= m_signature.size() && - (!memcmp(signature.c_str(), m_signature.c_str(), m_signature.size()) || - !memcmp(signature.c_str(), m_signature_alt.c_str(), m_signature_alt.size()))) - return true; + if ( signature.size() >= m_signature.size() && 0 == memcmp(signature.c_str(), m_signature.c_str(), m_signature.size()) ) + return true; + if ( signature.size() >= m_signature_alt.size() && 0 == memcmp(signature.c_str(), m_signature_alt.c_str(), m_signature_alt.size()) ) + return true; return false; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor