rpms/attr/devel attr-2.4.43-leak.patch, NONE, 1.1 attr.spec, 1.32, 1.33
Zdenek Prikryl
zprikryl at fedoraproject.org
Wed Feb 18 16:35:03 UTC 2009
- Previous message (by thread): rpms/guidance-power-manager/devel .cvsignore, 1.7, 1.8 guidance-power-manager.spec, 1.11, 1.12 sources, 1.7, 1.8
- Next message (by thread): rpms/insight/devel insight-6.8-gcc44.patch, NONE, 1.1 insight.spec, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: zprikryl
Update of /cvs/extras/rpms/attr/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv31220
Modified Files:
attr.spec
Added Files:
attr-2.4.43-leak.patch
Log Message:
Fixed memory leaks (#485473)
attr-2.4.43-leak.patch:
--- NEW FILE attr-2.4.43-leak.patch ---
diff -up attr-2.4.43/libattr/attr_copy_action.c.leak attr-2.4.43/libattr/attr_copy_action.c
--- attr-2.4.43/libattr/attr_copy_action.c.leak 2008-06-30 07:22:50.000000000 +0200
+++ attr-2.4.43/libattr/attr_copy_action.c 2009-02-17 09:50:38.000000000 +0100
@@ -53,7 +53,7 @@ free_attr_actions(void)
static int
attr_parse_attr_conf(struct error_context *ctx)
{
- char *text, *t;
+ char *text = NULL, *t;
size_t size_guess = 4096, len;
FILE *file;
char *pattern = NULL;
@@ -64,15 +64,16 @@ attr_parse_attr_conf(struct error_contex
return 0;
repeat:
- text = malloc(size_guess + 1);
- if (!text)
- goto fail;
-
if ((file = fopen(ATTR_CONF, "r")) == NULL) {
if (errno == ENOENT)
return 0;
goto fail;
}
+
+ text = malloc(size_guess + 1);
+ if (!text)
+ goto fail;
+
len = fread(text, 1, size_guess, file);
if (ferror(file))
goto fail;
Index: attr.spec
===================================================================
RCS file: /cvs/extras/rpms/attr/devel/attr.spec,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- attr.spec 16 Jul 2008 08:18:29 -0000 1.32
+++ attr.spec 18 Feb 2009 16:34:33 -0000 1.33
@@ -1,12 +1,13 @@
Summary: Utilities for managing filesystem extended attributes
Name: attr
Version: 2.4.43
-Release: 1%{?dist}
+Release: 2%{?dist}
Conflicts: xfsdump < 2.0.0
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source: ftp://oss.sgi.com/projects/xfs/cmd_tars/attr_%{version}-1.tar.gz
Patch1: attr-2.2.0-multilib.patch
Patch2: attr-2.4.32-build.patch
+Patch3: attr-2.4.43-leak.patch
License: GPLv2+
URL: http://oss.sgi.com/projects/xfs/
Group: System Environment/Base
@@ -56,6 +57,7 @@
# figure out how to chmod and how to install perl. :-)
%patch1 -p1 -b .multilib
%patch2 -p1 -b .build
+%patch3 -p1 -b .leak
autoconf
@@ -110,6 +112,9 @@
/%{_lib}/libattr.so.*
%changelog
+* Wed Feb 18 2009 Zdenek Prikryl <zprikryl at redhat.com> 2.4.43-2
+- Fixed memory leaks (#485473)
+
* Wed Jul 16 2008 Zdenek Prikryl <zprikryl at redhat.com> 2.4.43-1
- New version 2.4.43
- Previous message (by thread): rpms/guidance-power-manager/devel .cvsignore, 1.7, 1.8 guidance-power-manager.spec, 1.11, 1.12 sources, 1.7, 1.8
- Next message (by thread): rpms/insight/devel insight-6.8-gcc44.patch, NONE, 1.1 insight.spec, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list