Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Rings:1-MinimalX
gpart
gpart-0.1h-array_overflow.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gpart-0.1h-array_overflow.diff of Package gpart
--- src/gpart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: src/gpart.c =================================================================== --- src/gpart.c.orig +++ src/gpart.c @@ -602,11 +602,11 @@ static void print_ext_partitions(disk_de for ( ; pt; pt = pt->t_ext) { pr(MSG,PM_EXTPART); - for (p = pt->t_parts; p < &pt->t_parts[NDOSPARTS + 1]; p++) + for (p = pt->t_parts; p <= &pt->t_parts[NDOSPARTS - 1]; p++) if (is_real_parttype(p)) print_partition(d,p,1,offset + extst); - for (p = pt->t_parts; p < &pt->t_parts[NDOSPARTS + 1]; p++) + for (p = pt->t_parts; p <= &pt->t_parts[NDOSPARTS - 1]; p++) if (is_ext_parttype(p)) extst = p->p_start; }
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