Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Staging:A
star
star-1.5.1-bufferoverflow.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File star-1.5.1-bufferoverflow.patch of Package star
--- star-1.5/star/longnames.c +++ star-1.5/star/longnames.c @@ -154,7 +154,7 @@ name_to_tcb(info, ptb) if (add) strcatl(ptb->dbuf.t_name, name, "/", (char *)NULL); else - strcpy(ptb->dbuf.t_name, name); + strncpy(ptb->dbuf.t_name, name, props.pr_maxsname); return (TRUE); } @@ -197,7 +197,7 @@ name_to_tcb(info, ptb) if (add) strcatl(ptb->dbuf.t_name, &np[1], "/", (char *)NULL); else - strcpy(ptb->dbuf.t_name, &np[1]); + strncpy(ptb->dbuf.t_name, &np[1], props.pr_maxsname); strncpy(ptb->dbuf.t_prefix, name, np - name); info->f_flags |= F_SPLIT_NAME; return (TRUE);
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