mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-11-06 05:17:42 +00:00
avcodec/cbs_h266: reject SPS virtual boundaries when the resolution may change
Fixes: negative-size-param Fixes: left shift of negative value Fixes: 0IMcpiRlVAb5 Fixes: ANT-2026-QY2HYS5A Fixes: poc.mkv Found-by: Claude and Ada Logics Negative size memcpy Replicated through UnModified FFmpeg with ASAN and UBSAN
This commit is contained in:
1 parent
20b8812f5c
commit
67f9665f8e
1 file changed
+1
-1
@@ -1587,7 +1587,7 @@ static int FUNC(sps)(CodedBitstreamContext *ctx, RWContext *rw,
|
||||
|
||||
flag(sps_virtual_boundaries_enabled_flag);
|
||||
if (current->sps_virtual_boundaries_enabled_flag) {
|
||||
flag(sps_virtual_boundaries_present_flag);
|
||||
u(1, sps_virtual_boundaries_present_flag, 0, !current->sps_res_change_in_clvs_allowed_flag);
|
||||
if (current->sps_virtual_boundaries_present_flag) {
|
||||
ue(sps_num_ver_virtual_boundaries,
|
||||
0, current->sps_pic_width_max_in_luma_samples <= 8 ? 0 : VVC_MAX_VBS);
|
||||
|
||||
Reference in new issue
Block a user