Project

General

Profile

Bug #5038

Remove "old-style" flexible array usage in ZFS.

Added by Matthew Ahrens about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Category:
zfs - Zettabyte File System
Start date:
2014-07-26
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Remove "old-style" flexible array usage in ZFS.

In dnode\\_children\\_t, use C99's "\\[\\]" idiom for declaring the
variable sized array dnc\\_children at the end of the structure.
This prevents the compiler from mistakenly optimizing away
accesses beyond the array's defined size.

History

#1

Updated by Electric Monk about 5 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

git commit 7f18da4c54210b682e105b0e7be5195c60f98d20

commit  7f18da4c54210b682e105b0e7be5195c60f98d20
Author: Justin T. Gibbs <justing@spectralogic.com>
Date:   2014-08-02T01:55:38.000Z

    5038 Remove "old-style" flexible array usage in ZFS.
    Reviewed by: Matthew Ahrens <mahrens@delphix.com>
    Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF