Project

General

Profile

Bug #1549

Bug #1450: Illumos should be buildable with GCC4

SPARC pci drivers write past end of pcitool driver name

Added by Rich Lowe almost 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
kernel
Start date:
2011-09-22
Due date:
% Done:

100%

Estimated time:
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 almost 8 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 PDF