Bug #1549

Bug #1450: Illumos should be buildable with GCC4

SPARC pci drivers write past end of pcitool driver name

Added by Rich Lowe over 2 years ago. Updated over 2 years ago.

Status:Resolved Start date:2011-09-22
Priority:Normal Due date:
Assignee:Rich Lowe % Done:

100%

Category:kernel Spent time: -
Target version:-
Difficulty:Bite-size Tags:

Description

The SPARC pci nexus drivers, in each of the routines used to support pcitool(1M) write one byte off the end of the driver name:

-                devs[i].driver_name[MAXMODCONFNAME] = '\0';

(that example is from sun4u/io/pci/pci_ib.c, px and niumx also do the same thing).

Bug found by GCC4's better error checking.

History

Updated by Rich Lowe over 2 years ago

  • Category set to kernel
  • Status changed from In Progress to Resolved
  • % Done changed from 50 to 100

Resolved in r13466 e23b8d796527

Also available in: Atom PDF