Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:Rings:1-MinimalX
procps
procps-ng-4.0.4-w-array-bounds.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File procps-ng-4.0.4-w-array-bounds.patch of Package procps
Index: procps-ng-4.0.4/src/w.c =================================================================== --- procps-ng-4.0.4.orig/src/w.c +++ procps-ng-4.0.4/src/w.c @@ -532,12 +532,14 @@ static void showinfo( char *sd_tty; if (sd_session_get_tty(session, &sd_tty) >= 0) { - for (i = 0; i < strlen (sd_tty); i++) + for (i = 0; i < UT_LINESIZE; i++) { + if (sd_tty[i] == '\0') break; /* clean up tty if garbled */ if (isalnum(sd_tty[i]) || (sd_tty[i] == '/')) tty[i + 5] = sd_tty[i]; else tty[i + 5] = '\0'; + } free(sd_tty); } } else {
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