OBS User autobuild 2009-12-11 12:34:05 +00:00 committed by Git OBS Bridge
parent 772b50ccda
commit 7fa5fb77c2
6 changed files with 47 additions and 15 deletions

View File

@ -0,0 +1,41 @@
--- lib/dump.c
+++ lib/dump.c
@@ -70,7 +70,10 @@
{
char *z = strchr(buf, '\n');
if (!z)
- a->error("dump: line too long or unterminated");
+ {
+ fclose(f);
+ a->error("dump: line too long or unterminated");
+ }
*z-- = 0;
if (z >= buf && *z == '\r')
*z-- = 0;
@@ -95,7 +98,10 @@
sscanf(z, "%x", &j) == 1 && j < 256)
{
if (i >= 4096)
- a->error("dump: At most 4096 bytes of config space are supported");
+ {
+ fclose(f);
+ a->error("dump: At most 4096 bytes of config space are supported");
+ }
if (i >= dd->allocated) /* Need to re-allocate the buffer */
{
dump_alloc_data(dev, 4096);
@@ -111,9 +117,13 @@
z++;
}
if (*z)
- a->error("dump: Malformed line");
+ {
+ fclose(f);
+ a->error("dump: Malformed line");
+ }
}
}
+ fclose(f);
}
static void

3
pciutils-3.1.3.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6a3de80921e493c52e5c69f6d399a511b0ebc0464d10dcdda3924cd42ae69c78
size 271733

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:38acb0e479d4096d5cbb805e64aa1362d70215d73271fbba227b32efb45ba13a
size 276864

View File

@ -1,14 +1,3 @@
-------------------------------------------------------------------
Thu Dec 10 14:45:15 CET 2009 - anicka@suse.cz
- update to 3.1.4
* Updated pci.ids to the today's snapshot of the database.
* Fixed memory and file descriptor leak in the dump back-end.
* The SR-IOV capability decoder now prints the VF BAR's.
* On request of certain company's lawyers, we now include a copy
of the GPL with our package. It seems that the pciutils are getting
mature if the most important bug of the month was this one ;-)
-------------------------------------------------------------------
Tue Nov 3 19:09:37 UTC 2009 - coolo@novell.com

View File

@ -19,7 +19,7 @@
Name: pciutils
Version: 3.1.4
Version: 3.1.3
Release: 4
BuildRequires: zlib-devel
BuildRequires: licenses
@ -39,6 +39,7 @@ Source: %{name}-%{version}.tar.bz2
Source1: COPYING
Patch: update-pciutils-dist
Patch1: %{name}-%{version}_pkgconfig.patch
Patch2: %{name}-%{version}-fclose.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -84,6 +85,7 @@ Authors:
%setup -q
%patch -p1
%patch1
%patch2
%build
make OPT="$RPM_OPT_FLAGS -Wall" PREFIX=%{_prefix} LIBDIR=/%{_lib} SBINDIR=/sbin STRIP="" SHARED="yes"