Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Maintenance:1787
dosfstools.openSUSE_12.2_Update
dosfstools-filename-buffer-overflow.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dosfstools-filename-buffer-overflow.patch of Package dosfstools.openSUSE_12.2_Update
Index: dosfstools-3.0.10/src/check.c =================================================================== --- dosfstools-3.0.10.orig/src/check.c +++ dosfstools-3.0.10/src/check.c @@ -174,7 +174,10 @@ loff_t alloc_rootdir_entry(DOS_FS *fs, D offset = fs->root_start+next_free*sizeof(DIR_ENT); memset(de,0,sizeof(DIR_ENT)); while (1) { - sprintf(de->name,pattern,curr_num); + char expanded[12]; + sprintf(expanded, pattern, curr_num); + memcpy(de->name, expanded, 8); + memcpy(de->ext, expanded+8, 3); for (scan = 0; scan < fs->root_entries; scan++) if (scan != next_free && !strncmp(root[scan].name,de->name,MSDOS_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