Commit 5cfd6977 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Array bounds fixes



It's no longer legal to use a zero size array as a flexible array
member - this causes UBSAN to complain.

This patch switches our zero size arrays to normal flexible array
members when possible, and inserts casts in other places (e.g. where we
use the zero size array as a marker partway through an array).

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent a9a7bbab
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment