From 13d407e1e133617edf443fb2db75d2335b79d56d Mon Sep 17 00:00:00 2001 From: Stanislav Fort Date: Mon, 27 Oct 2025 11:43:44 +0100 Subject: [PATCH] cc: OOB read in CEA-708 CDP time_code_section Fixes #29322 --- modules/codec/cc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/codec/cc.h b/modules/codec/cc.h index 92d427a8b4..6860787855 100644 --- a/modules/codec/cc.h +++ b/modules/codec/cc.h @@ -410,7 +410,7 @@ static inline void cc_Extract( cc_data_t *c, enum cc_payload_type_e i_payload_ty { if( i_src < 5 ) // Shall be 5 bytes return; - p_src += 5; i_src += 5; + p_src += 5; i_src -= 5; } /* 5.4 ccdata_section */ if( cdp_flags & CDP_FLAG_CC_DATA_PRESENT )