Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP5:GA
apr
gcc8-integer-overflow.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gcc8-integer-overflow.patch of Package apr
diff --git a/test/teststr.c b/test/teststr.c index d9a505475..7c945886d 100644 --- a/test/teststr.c +++ b/test/teststr.c @@ -307,7 +307,8 @@ static void overflow_strfsize(abts_case *tc, void *data) for (; off < 999999999; off += 999) { apr_strfsize(off, buf); } - for (off = 1; off < LONG_MAX && off > 0; off *= 2) { + /* Be carefull about integer overflow. */ + for (off = 1; off < (LONG_MAX / 4) && off > 0; off *= 2) { apr_strfsize(off, buf); apr_strfsize(off + 1, buf); apr_strfsize(off - 1, buf);
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