Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1
OpenImageIO
oiio-clusterfit-boundscheck.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File oiio-clusterfit-boundscheck.patch of Package OpenImageIO
--- src/dds.imageio/squish/clusterfit.cpp +++ src/dds.imageio/squish/clusterfit.cpp @@ -66,14 +66,14 @@ // build the list of dot products float dps[16]; u8* order = ( u8* )m_order + 16*iteration; - for( int i = 0; i < count; ++i ) + for( int i = 0; i < count && i < 16; ++i ) { dps[i] = Dot( values[i], axis ); order[i] = ( u8 )i; } // stable sort using them - for( int i = 0; i < count; ++i ) + for( int i = 0; i < count && i < 16; ++i ) { for( int j = i; j > 0 && dps[j] < dps[j - 1]; --j ) {
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