Accepting request 64870 from Base:System

Accepted submit request 64870 from user licensedigger

OBS-URL: https://build.opensuse.org/request/show/64870
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mtools?expand=0&rev=24
This commit is contained in:
Sascha Peilicke 2011-03-22 16:55:26 +00:00 committed by Git OBS Bridge
commit 84e774dcba
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,13 @@
Index: mtools-4.0.15/fat.c
===================================================================
--- mtools-4.0.15.orig/fat.c
+++ mtools-4.0.15/fat.c
@@ -468,7 +468,7 @@ void fat_write(Fs_t *This)
set_dword(infoSector->signature2, INFOSECT_SIGNATURE2);
set_dword(infoSector->pos, This->last);
set_dword(infoSector->count, This->freeSpace);
- set_dword(infoSector->signature3, 0xaa55);
+ set_word(infoSector->signature3, 0xaa55);
if(forceWriteSector(This, (char *)infoSector, This->infoSectorLoc, 1) !=
(signed int) This->sector_size)
fprintf(stderr,"Trouble writing the info sector\n");

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 17 11:13:49 CET 2011 - pgajdos@suse.cz
- fixed crash caused with access of invalid memory [bnc#679459]
-------------------------------------------------------------------
Tue Nov 16 11:57:57 CET 2010 - pgajdos@suse.cz

View File

@ -33,6 +33,7 @@ Patch1: %{name}-%{version}-autoconf.diff
Patch3: %{name}-%{version}-aliasing.diff
Patch4: %{name}-%{version}-fat-bits.diff
Patch5: %{name}-%{version}-prototypes.diff
Patch6: %{name}-%{version}-invalid-memory.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -93,6 +94,7 @@ Authors:
%patch3
%patch4
%patch5
%patch6 -p1
%build
%{suse_update_config -f}