Hello community, here is the log from the commit of package dosfstools for openSUSE:11.2 checked in at Wed Mar 16 17:19:23 CET 2011.
-------- --- old-versions/11.2/all/dosfstools/dosfstools.changes 2008-06-24 15:17:48.000000000 +0200 +++ 11.2/dosfstools/dosfstools.changes 2011-03-14 11:16:56.000000000 +0100 @@ -1,0 +2,5 @@ +Mon Mar 14 11:06:10 CET 2011 - pgaj...@suse.cz + +- fixed fsck.vfat crashing [bnc#677236] + +------------------------------------------------------------------- Package does not exist at destination yet. Using Fallback old-versions/11.2/all/dosfstools Destination is old-versions/11.2/UPDATES/all/dosfstools calling whatdependson for 11.2-i586 New: ---- dosfstools-2.11-filename-buffer-overflow.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dosfstools.spec ++++++ --- /var/tmp/diff_new_pack.N0Sws0/_old 2011-03-16 17:12:58.000000000 +0100 +++ /var/tmp/diff_new_pack.N0Sws0/_new 2011-03-16 17:12:58.000000000 +0100 @@ -1,7 +1,7 @@ # -# spec file for package dosfstools (Version 2.11) +# spec file for package dosfstools # -# Copyright (c) 2009 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 @@ -20,12 +20,12 @@ Name: dosfstools Provides: mkdosfs dosfsck -License: GPL v2 or later +License: GPLv2+ Group: System/Filesystems AutoReqProv: on Summary: Utilities for Making and Checking MS-DOS FAT File Systems on Linux Version: 2.11 -Release: 145 +Release: 146.<RELEASE4> Url: ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools Source: %{name}-%{version}.src.tar.bz2 Patch0: %{name}-%{version}-linuxfs.patch @@ -35,6 +35,7 @@ Patch4: %{name}-%{version}-mkdosfs-geo0.diff Patch5: %{name}-%{version}_determine-sector-size.patch Patch6: %{name}-%{version}-unsupported-sector-size.patch +Patch7: %{name}-%{version}-filename-buffer-overflow.patch Obsoletes: mkdosfs dosfsck dosfstls BuildRoot: %{_tmppath}/%{name}-%{version}-build Supplements: filesystem(vfat) @@ -61,6 +62,7 @@ %patch4 -p1 %patch5 %patch6 +%patch7 %build make OPTFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $RPM_OPT_FLAGS" ++++++ dosfstools-2.11-filename-buffer-overflow.patch ++++++ Index: dosfsck/check.c =================================================================== --- dosfsck/check.c.orig +++ dosfsck/check.c @@ -110,7 +110,10 @@ loff_t alloc_rootdir_entry(DOS_FS *fs, D } 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); clu_num = fs->root_cluster; i = 0; offset2 = cluster_start(fs,clu_num); @@ -150,7 +153,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