- volkey is only 4 chars, don't overflow destination buffer with 84 chars
This commit is contained in:
parent
369118c8bc
commit
eb24deea49
12
parted-1.9.0-volkeysize.patch
Normal file
12
parted-1.9.0-volkeysize.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up parted-1.9.0/libparted/labels/vtoc.c.kh1 parted-1.9.0/libparted/labels/vtoc.c
|
||||||
|
--- parted-1.9.0/libparted/labels/vtoc.c.kh1 2009-08-28 12:17:26.000000000 +0200
|
||||||
|
+++ parted-1.9.0/libparted/labels/vtoc.c 2009-08-28 12:18:03.000000000 +0200
|
||||||
|
@@ -263,7 +263,7 @@ vtoc_volume_label_init (volume_label_t *
|
||||||
|
PDEBUG
|
||||||
|
sprintf(buffer, "%84s", " ");
|
||||||
|
vtoc_ebcdic_enc(buffer, buffer, 84);
|
||||||
|
- strncpy(vlabel->volkey, buffer, 84);
|
||||||
|
+ strncpy(vlabel->volkey, buffer, 4);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
@ -4,7 +4,7 @@
|
|||||||
Summary: The GNU disk partition manipulation program
|
Summary: The GNU disk partition manipulation program
|
||||||
Name: parted
|
Name: parted
|
||||||
Version: 1.9.0
|
Version: 1.9.0
|
||||||
Release: 12%{?dist}
|
Release: 13%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
URL: http://www.gnu.org/software/parted
|
URL: http://www.gnu.org/software/parted
|
||||||
@ -21,6 +21,7 @@ Patch8: %{name}-1.9.0-dasd-duplicate.patch
|
|||||||
Patch9: %{name}-1.9.0-new-duplicate.patch
|
Patch9: %{name}-1.9.0-new-duplicate.patch
|
||||||
Patch10: %{name}-1.9.0-handle-dup-error.patch
|
Patch10: %{name}-1.9.0-handle-dup-error.patch
|
||||||
Patch11: %{name}-1.9.0-swap-flag.patch
|
Patch11: %{name}-1.9.0-swap-flag.patch
|
||||||
|
Patch12: %{name}-1.9.0-volkeysize.patch
|
||||||
|
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: e2fsprogs-devel
|
BuildRequires: e2fsprogs-devel
|
||||||
@ -69,6 +70,7 @@ Parted library, you need to install this package.
|
|||||||
%patch9 -p1 -b .new-duplicate
|
%patch9 -p1 -b .new-duplicate
|
||||||
%patch10 -p1 -b .handle-dup-error
|
%patch10 -p1 -b .handle-dup-error
|
||||||
%patch11 -p1 -b .swap-flag
|
%patch11 -p1 -b .swap-flag
|
||||||
|
%patch12 -p1 -b .volkey-size^^
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -129,6 +131,9 @@ fi
|
|||||||
%{_exec_prefix}/%{_lib}/pkgconfig/libparted.pc
|
%{_exec_prefix}/%{_lib}/pkgconfig/libparted.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 28 2009 Karsten Hopp <karsten@redhat.com> 1.9.0-13
|
||||||
|
- volkey is only 4 chars, don't overflow destination buffer with 84 chars
|
||||||
|
|
||||||
* Fri Aug 21 2009 Joel Granados <jgranado@redhat.com> - 1.9.0-12
|
* Fri Aug 21 2009 Joel Granados <jgranado@redhat.com> - 1.9.0-12
|
||||||
- libuuid-devel is now valid for s390 builds.
|
- libuuid-devel is now valid for s390 builds.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user