Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:allau:LxDE
gftp
gftp-2.0.18-overflow.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gftp-2.0.18-overflow.patch of Package gftp
--- lib/fsplib/fsplib.c +++ lib/fsplib/fsplib.c @@ -614,7 +614,7 @@ if (fentry.namlen > MAXNAMLEN) { - entry->d_name[MAXNAMLEN + 1 ] = '\0'; + entry->d_name[MAXNAMLEN] = '\0'; #ifdef HAVE_NAMLEN entry->d_namlen = MAXNAMLEN; } else @@ -680,7 +680,7 @@ /* skip file date and file size */ dir->dirpos += 9; /* read file name */ - entry->name[255 + 1] = '\0'; + entry->name[255] = '\0'; strncpy(entry->name,(char *)( dir->data + dir->dirpos ),MAXNAMLEN); namelen = strlen( (char *) dir->data+dir->dirpos); /* skip over file name */
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