Re: [PATCH v2] media: v4l2-ctrls: validate HEVC slice reference lists
From: Pengpeng Hou
Date: Mon Mar 23 2026 - 23:13:58 EST
Hi Nicolas,
Thanks, this makes sense.
You are right that rejecting ref_idx_l0/ref_idx_l1 values in the common
validation path would be a breaking change, since existing userspace may
pass out-of-range sentinel values such as 0xff for missing references.
I respun this by keeping only the active L0/L1 reference count checks in
common code. I also fixed the missing `p_hevc_slice_params`
declaration that caused the build failure reported by lkp.
Best regards,
Pengpeng