Bug #1549
Bug #1450: Illumos should be buildable with GCC4
SPARC pci drivers write past end of pcitool driver name
Status: | Resolved | Start date: | 2011-09-22 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 100% | ||
Category: | kernel | |||
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
#1
Updated by Rich Lowe over 6 years ago
- Category set to kernel
- Status changed from In Progress to Resolved
- % Done changed from 50 to 100
Resolved in r13466 commit:e23b8d796527
Also available in: Atom