- Add fix-heap-corruptor patch from master. Problem spotted by Mr. McCann.
This commit is contained in:
parent
2382850751
commit
4621eed5f1
41
plymouth-0.6.0-fix-heap-corruptor.patch
Normal file
41
plymouth-0.6.0-fix-heap-corruptor.patch
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
commit e1619f36bf849ba183ae5fb53f4794d5273ea65c
|
||||||
|
Author: Ray Strode <rstrode@redhat.com>
|
||||||
|
Date: Tue Feb 24 13:36:15 2009 -0500
|
||||||
|
|
||||||
|
Fix heap corruptor in ply-boot-server
|
||||||
|
|
||||||
|
This fixes a memory corruption bug that
|
||||||
|
cropped up during a round of leak fixes
|
||||||
|
a while back.
|
||||||
|
|
||||||
|
diff --git a/src/ply-boot-server.c b/src/ply-boot-server.c
|
||||||
|
index 8615f3b..77115e5 100644
|
||||||
|
--- a/src/ply-boot-server.c
|
||||||
|
+++ b/src/ply-boot-server.c
|
||||||
|
@@ -196,7 +196,7 @@ ply_boot_connection_read_request (ply_boot_connection_t *connection,
|
||||||
|
|
||||||
|
if (!ply_read (connection->fd, &argument_size, sizeof (uint8_t)))
|
||||||
|
{
|
||||||
|
- free(command);
|
||||||
|
+ free (*command);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -204,7 +204,7 @@ ply_boot_connection_read_request (ply_boot_connection_t *connection,
|
||||||
|
|
||||||
|
if (!ply_read (connection->fd, *argument, argument_size))
|
||||||
|
{
|
||||||
|
- free(command);
|
||||||
|
+ free (*command);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -307,7 +307,7 @@ ply_boot_connection_on_request (ply_boot_connection_t *connection)
|
||||||
|
strlen (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_NAK)))
|
||||||
|
ply_error ("could not write bytes: %m");
|
||||||
|
|
||||||
|
- free(command);
|
||||||
|
+ free (command);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
@ -5,7 +5,7 @@
|
|||||||
Summary: Graphical Boot Animation and Logger
|
Summary: Graphical Boot Animation and Logger
|
||||||
Name: plymouth
|
Name: plymouth
|
||||||
Version: 0.6.0
|
Version: 0.6.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Source0: http://freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2
|
Source0: http://freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2
|
||||||
@ -21,6 +21,7 @@ Requires: initscripts >= 8.83-1
|
|||||||
Obsoletes: plymouth-text-and-details-only < %{version}-%{release}
|
Obsoletes: plymouth-text-and-details-only < %{version}-%{release}
|
||||||
|
|
||||||
Patch0: plymouth-0.6.0-drop-nash.patch
|
Patch0: plymouth-0.6.0-drop-nash.patch
|
||||||
|
Patch1: plymouth-0.6.0-fix-heap-corruptor.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Plymouth provides an attractive graphical boot animation in
|
Plymouth provides an attractive graphical boot animation in
|
||||||
@ -152,6 +153,7 @@ Plymouth. It features a blue flamed sun with animated solar flares.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .drop-nash
|
%patch0 -p1 -b .drop-nash
|
||||||
|
%patch1 -p1 -b .fix-heap-corruptor
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --enable-tracing --disable-tests --without-boot-entry \
|
%configure --enable-tracing --disable-tests --without-boot-entry \
|
||||||
@ -314,6 +316,10 @@ fi
|
|||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 24 2009 Ray Strode <rstrode@redhat.com> 0.6.0-3
|
||||||
|
- Add fix-heap-corruptor patch from master. Problem
|
||||||
|
spotted by Mr. McCann.
|
||||||
|
|
||||||
* Wed Dec 17 2008 Ray Strode <rstrode@redhat.com> 0.6.0-2
|
* Wed Dec 17 2008 Ray Strode <rstrode@redhat.com> 0.6.0-2
|
||||||
- Add patch from drop-nash branch for jeremy
|
- Add patch from drop-nash branch for jeremy
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user