Skip to content
Commit d47df4f6 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix array-index-out-of-bounds



We use 0 size arrays as markers, but ubsan doesn't know that - cast them
to a pointer to fix the splat.

Also, make sure this code gets tested a bit more.

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