Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
pinfo
pinfo-0.6.9-nul-strings.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pinfo-0.6.9-nul-strings.patch of Package pinfo
--- src/filehandling_functions.c +++ src/filehandling_functions.c @@ -311,6 +311,11 @@ i--; } } + if (!Buf[Lines][0]) { + /* skip those ^@^H[index lines (^@ = NUL) */ + xfree(Buf[Lines]); + Lines--; + } } while (Buf[Lines][0] != INFO_TAG); /* repeat until new node mark is found */ --- src/video.c +++ src/video.c @@ -91,6 +91,12 @@ if (!message[i]) continue; int tmp = strlen(message[i]) - 1; + if (tmp < 0) { + fprintf(stderr, + "%s:%d: BUG: strlen(message[%d]) == 0; please report!\n", + __FILE__, __LINE__, i); + tmp = 0; + } message[i][tmp] = 0; if (tmp>column) mvaddstr(i + 1 - pos, 0, message[i]+column);
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