Hello community,

here is the log from the commit of package dosfstools for openSUSE:11.3
checked in at Wed Mar 16 17:35:05 CET 2011.



--------
--- old-versions/11.3/all/dosfstools/dosfstools.changes 2010-02-01 
10:39:25.000000000 +0100
+++ 11.3/dosfstools/dosfstools.changes  2011-03-14 13:25:04.000000000 +0100
@@ -1,0 +2,5 @@
+Mon Mar 14 10:53:33 CET 2011 - pgaj...@suse.cz
+
+- fixed fsck.vfat crashing [bnc#677236]
+
+-------------------------------------------------------------------

Package does not exist at destination yet. Using Fallback 
old-versions/11.3/all/dosfstools
Destination is old-versions/11.3/UPDATES/all/dosfstools
calling whatdependson for 11.3-i586


New:
----
  dosfstools-filename-buffer-overflow.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ dosfstools.spec ++++++
--- /var/tmp/diff_new_pack.3pWeZD/_old  2011-03-16 17:19:38.000000000 +0100
+++ /var/tmp/diff_new_pack.3pWeZD/_new  2011-03-16 17:19:38.000000000 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package dosfstools (Version 3.0.9)
+# spec file for package dosfstools
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,10 +25,11 @@
 AutoReqProv:    on
 Summary:        Utilities for Making and Checking MS-DOS FAT File Systems on 
Linux
 Version:        3.0.9
-Release:        1
+Release:        4.<RELEASE2>
 Url:            http://freshmeat.net/projects/dosfstools
 Source:         %{name}_%{version}.orig.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Patch0:         dosfstools-filename-buffer-overflow.patch
 Supplements:    filesystem(vfat)
 
 %description
@@ -46,6 +47,7 @@
 
 %prep
 %setup
+%patch0 -p1
 
 %build
 make OPTFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $RPM_OPT_FLAGS"

++++++ dosfstools-filename-buffer-overflow.patch ++++++
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))

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to