Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37037117
en ru br
ALT Linux repositórios
S:3.10.0-alt1
D:2.99.1-alt0.2
5.0: 3.1.2-alt1
4.1: 3.0.0-alt1
4.0: 2.2.4-alt1
3.0: 2.1.11-alt10

Group :: Sistema/Kernel e hardware
RPM: pciutils

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: pciutils-2.1.11-name_list_leak.patch
Download


diff -ur pciutils-2.1.11/lib/names.c pciutils-2.1.11.leak/lib/names.c
--- pciutils-2.1.11/lib/names.c	2002-03-30 18:39:25 +0300
+++ pciutils-2.1.11.leak/lib/names.c	2004-12-30 10:44:52 +0300
@@ -218,6 +218,18 @@
 void
 pci_free_name_list(struct pci_access *a)
 {
+  struct nl_entry *h;
+  int i;
+  if (a->nl_hash)
+    for(i = 0; i < HASH_SIZE; i++)
+      {
+        if (a->nl_hash[i] != NULL)
+	  while(a->nl_hash[i]) {
+	     h = a->nl_hash[i]->next;
+	     pci_mfree(a->nl_hash[i]);
+	     a->nl_hash[i] = h;
+	  }
+      }
   pci_mfree(a->nl_list);
   a->nl_list = NULL;
   pci_mfree(a->nl_hash);
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009