Confirmed this still happens on debian and upstream's pciutils-3.1.10; I
can see a trivial fix to lib/names-parse.c:

  if (len >= 3 && memcmp(a->id_file_name + len - 3, ".gz", 3) != 0)
    return result;

to become
  if (len <3 || memcmp(a->id_file_name + len - 3, ".gz", 3) != 0)
    return result;

but I've mailed the upstream author to clarify why that function is as
complex as it is.

Dave

** Summary changed:

- Ispci crashed with SIGSEGV in pci_load_name_list() (with invalid parameter to 
-i)
+ lspci crashed with SIGSEGV in pci_load_name_list() (with invalid parameter to 
-i)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/690431

Title:
  lspci crashed with SIGSEGV in pci_load_name_list() (with invalid
  parameter to -i)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pciutils/+bug/690431/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to