Matthew Ahrens via illumos-zfs
2014-07-26 18:11:59 UTC
https://reviews.csiden.org/r/63/
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.
--matt
-------------------------------------------
illumos-zfs
Archives: https://www.listbox.com/member/archive/182191/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182191/23047029-187a0c8d
Modify Your Subscription: https://www.listbox.com/member/?member_id=23047029&id_secret=23047029-2e85923f
Powered by Listbox: http://www.listbox.com
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.
--matt
-------------------------------------------
illumos-zfs
Archives: https://www.listbox.com/member/archive/182191/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182191/23047029-187a0c8d
Modify Your Subscription: https://www.listbox.com/member/?member_id=23047029&id_secret=23047029-2e85923f
Powered by Listbox: http://www.listbox.com