Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
KDE:KDE3
kdebase3
kdebase-trinity-fix-potential-kcontrol-segfault...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kdebase-trinity-fix-potential-kcontrol-segfault.diff of Package kdebase3
commit 180cd2fc18a958f0297fdcc2697cf6d500e69a3f Author: François Andriot <francois.andriot@free.fr> Date: 1413137032 +0200 Fix potential segmentation fault in kcontrol info module diff --git a/kcontrol/info/info_openbsd.cpp b/kcontrol/info/info_openbsd.cpp index 12ec8ee..7b484da 100644 --- a/kcontrol/info/info_openbsd.cpp +++ b/kcontrol/info/info_openbsd.cpp @@ -235,7 +235,7 @@ bool GetInfo_Sound (QListView *lbox) if ((pos = s.find("at ")) >= 0) { pos += 3; // skip "at " start = end = s.ascii(); - for(; (*end!=':') && (*end!='\n'); end++); + for(; *end && (*end!=':') && (*end!='\n'); end++); len = end - start; dev = (char *) malloc(len + 1); strncpy(dev, start, len);
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