forked from pool/mtools
- fixed crash caused with access of invalid memory [bnc#679459]
OBS-URL: https://build.opensuse.org/package/show/Base:System/mtools?expand=0&rev=19
This commit is contained in:
parent
9f34f85fc8
commit
27e7efb107
13
mtools-4.0.15-invalid-memory.diff
Normal file
13
mtools-4.0.15-invalid-memory.diff
Normal 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");
|
@ -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
|
Tue Nov 16 11:57:57 CET 2010 - pgajdos@suse.cz
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package mtools (Version 4.0.13)
|
# spec file for package mtools (Version 4.0.15)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -21,7 +21,7 @@
|
|||||||
Name: mtools
|
Name: mtools
|
||||||
BuildRequires: libpng texlive-latex xorg-x11 xorg-x11-devel
|
BuildRequires: libpng texlive-latex xorg-x11 xorg-x11-devel
|
||||||
Version: 4.0.15
|
Version: 4.0.15
|
||||||
Release: 2
|
Release: 1
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Group: System/Filesystems
|
Group: System/Filesystems
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@ -33,6 +33,7 @@ Patch1: %{name}-%{version}-autoconf.diff
|
|||||||
Patch3: %{name}-%{version}-aliasing.diff
|
Patch3: %{name}-%{version}-aliasing.diff
|
||||||
Patch4: %{name}-%{version}-fat-bits.diff
|
Patch4: %{name}-%{version}-fat-bits.diff
|
||||||
Patch5: %{name}-%{version}-prototypes.diff
|
Patch5: %{name}-%{version}-prototypes.diff
|
||||||
|
Patch6: %{name}-%{version}-invalid-memory.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -93,6 +94,7 @@ Authors:
|
|||||||
%patch3
|
%patch3
|
||||||
%patch4
|
%patch4
|
||||||
%patch5
|
%patch5
|
||||||
|
%patch6 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{suse_update_config -f}
|
%{suse_update_config -f}
|
||||||
|
Loading…
Reference in New Issue
Block a user