mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
gsth264parser: reject memory management control op greater than 6
This prevents assertion from being thrown in gst_h264_dpb_perform_memory_management_control_operation if corrupt NAL has a control op greater than 6 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2508>
This commit is contained in:
parent
580ac55194
commit
15d724e671
1 changed files with 1 additions and 1 deletions
|
@ -723,7 +723,7 @@ gst_h264_slice_parse_dec_ref_pic_marking (GstH264SliceHdr * slice,
|
|||
|
||||
dec_ref_pic_m->n_ref_pic_marking = 0;
|
||||
while (1) {
|
||||
READ_UE (nr, mem_mgmt_ctrl_op);
|
||||
READ_UE_MAX (nr, mem_mgmt_ctrl_op, 6);
|
||||
if (mem_mgmt_ctrl_op == 0)
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue