checked in
OBS-URL: https://build.opensuse.org/package/show/Base:System/pciutils?expand=0&rev=12
This commit is contained in:
parent
772b50ccda
commit
7fa5fb77c2
41
pciutils-3.1.3-fclose.patch
Normal file
41
pciutils-3.1.3-fclose.patch
Normal 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
3
pciutils-3.1.3.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6a3de80921e493c52e5c69f6d399a511b0ebc0464d10dcdda3924cd42ae69c78
|
||||
size 271733
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:38acb0e479d4096d5cbb805e64aa1362d70215d73271fbba227b32efb45ba13a
|
||||
size 276864
|
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user