Accepting request 64080 from Base:System
Accepted submit request 64080 from user pgajdos OBS-URL: https://build.opensuse.org/request/show/64080 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dosfstools?expand=0&rev=21
This commit is contained in:
commit
52e7fe7461
16
dosfstools-filename-buffer-overflow.patch
Normal file
16
dosfstools-filename-buffer-overflow.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
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))
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 8 18:13:53 CET 2011 - pgajdos@suse.cz
|
||||||
|
|
||||||
|
- fixed fsck.vfat crashing [bnc#677236]
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 20 15:12:52 CET 2010 - pgajdos@suse.cz
|
Mon Dec 20 15:12:52 CET 2010 - pgajdos@suse.cz
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ Source: %{name}_%{version}.orig.tar.bz2
|
|||||||
Patch0: %{name}-suse-dirs.patch
|
Patch0: %{name}-suse-dirs.patch
|
||||||
Patch1: %{name}-mdraid-partition.patch
|
Patch1: %{name}-mdraid-partition.patch
|
||||||
Patch2: %{name}-label.patch
|
Patch2: %{name}-label.patch
|
||||||
|
Patch3: %{name}-filename-buffer-overflow.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Supplements: filesystem(vfat)
|
Supplements: filesystem(vfat)
|
||||||
|
|
||||||
@ -52,6 +53,7 @@ Authors:
|
|||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1
|
%patch1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
|
%patch3 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make OPTFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $RPM_OPT_FLAGS"
|
make OPTFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $RPM_OPT_FLAGS"
|
||||||
|
Loading…
Reference in New Issue
Block a user