• Kent Overstreet's avatar
    bcachefs: Array bounds fixes · 5cfd6977
    Kent Overstreet authored
    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>
    5cfd6977
bkey.c 25.4 KB