Bug #1450: Illumos should be buildable with GCC4
SPARC pci drivers write past end of pcitool driver name
|Assignee:||Rich Lowe||% Done:|
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.
Also available in: Atom