forked from pool/mtools
This commit is contained in:
parent
31f4dede6a
commit
ec599826c1
22
mtools-4.0.1-overflow.diff
Normal file
22
mtools-4.0.1-overflow.diff
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
--- file_name.c
|
||||||
|
+++ file_name.c
|
||||||
|
@@ -145,7 +145,7 @@ void dos_name(doscp_t *toDos, const char
|
||||||
|
wchar_t *unix_name(doscp_t *dosCp,
|
||||||
|
const char *base, const char *ext, char Case, wchar_t *ret)
|
||||||
|
{
|
||||||
|
- char *s, tname[9], text[4], ans[11];
|
||||||
|
+ char *s, tname[9], text[4], ans[13];
|
||||||
|
int i;
|
||||||
|
|
||||||
|
strncpy(tname, base, 8);
|
||||||
|
--- mpartition.c
|
||||||
|
+++ mpartition.c
|
||||||
|
@@ -514,7 +514,7 @@ void mpartition(int argc, char **argv, i
|
||||||
|
read(fd, (char *) buf, 512);
|
||||||
|
}
|
||||||
|
memset((char *)(partTable+1), 0, 4*sizeof(*partTable));
|
||||||
|
- set_dword(((unsigned char*)buf)+510, 0xaa55);
|
||||||
|
+ set_word(((unsigned char*)buf)+510, 0xaa55);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* check for boot signature, and place it if needed */
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 21 17:22:15 CET 2009 - schwab@suse.de
|
||||||
|
|
||||||
|
- Fix buffer overflows.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jan 13 18:14:34 CET 2009 - pgajdos@suse.cz
|
Tue Jan 13 18:14:34 CET 2009 - pgajdos@suse.cz
|
||||||
|
|
||||||
|
12
mtools.spec
12
mtools.spec
@ -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.1
|
Version: 4.0.1
|
||||||
Release: 1
|
Release: 2
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Group: System/Filesystems
|
Group: System/Filesystems
|
||||||
License: GPL v2 or later
|
License: GPL v2 or later
|
||||||
@ -34,6 +34,7 @@ Patch2: %{name}-%{version}-script.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}-overflow.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%package floppyd
|
%package floppyd
|
||||||
@ -75,6 +76,7 @@ Authors:
|
|||||||
%patch3
|
%patch3
|
||||||
%patch4
|
%patch4
|
||||||
%patch5
|
%patch5
|
||||||
|
%patch6
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{suse_update_config -f}
|
%{suse_update_config -f}
|
||||||
@ -103,9 +105,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%config %{_sysconfdir}/mtools.conf
|
%config %{_sysconfdir}/mtools.conf
|
||||||
%doc *.dvi Release.notes Changelog COPYING README*
|
%doc *.dvi Release.notes Changelog COPYING README*
|
||||||
%doc %{_mandir}/man?*/[a-eg-z]*
|
%doc %{_mandir}/man?*/*
|
||||||
|
%exclude %{_mandir}/man?*/f*
|
||||||
%doc %{_infodir}/mtools.info*
|
%doc %{_infodir}/mtools.info*
|
||||||
%{_bindir}/[a-eg-z]*
|
%{_bindir}/*
|
||||||
|
%exclude %{_bindir}/f*
|
||||||
|
|
||||||
%files floppyd
|
%files floppyd
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -113,6 +117,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_bindir}/f*
|
%{_bindir}/f*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 21 2009 schwab@suse.de
|
||||||
|
- Fix buffer overflows.
|
||||||
* Tue Jan 13 2009 pgajdos@suse.cz
|
* Tue Jan 13 2009 pgajdos@suse.cz
|
||||||
- updated to 4.0.1
|
- updated to 4.0.1
|
||||||
* unicode support
|
* unicode support
|
||||||
|
Loading…
Reference in New Issue
Block a user