mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-10-16 22:06:46 +07:00
decoder: Fix memory uninitialized issue in ihevcd_sao_shift_ctb
Test: poc in bug Bug: 158484516 Change-Id: I83e89056be52b96760d95f5826c2bfdcfd3962e2
This commit is contained in:
parent
939785b659
commit
dcef8335b7
1 changed files with 9 additions and 15 deletions
|
|
@ -103,16 +103,14 @@ void ihevcd_sao_ctb(sao_ctxt_t *ps_sao_ctxt)
|
|||
UWORD8 *pu1_no_loop_filter_flag;
|
||||
WORD32 loop_filter_strd;
|
||||
|
||||
WORD8 ai1_offset_y[5];
|
||||
WORD8 ai1_offset_cb[5];
|
||||
WORD8 ai1_offset_cr[5];
|
||||
/* Only first 5 values are used, but arrays are large
|
||||
enough so that SIMD functions can read 64 bits at a time */
|
||||
WORD8 ai1_offset_y[8] = {0};
|
||||
WORD8 ai1_offset_cb[8] = {0};
|
||||
WORD8 ai1_offset_cr[8] = {0};
|
||||
|
||||
PROFILE_DISABLE_SAO();
|
||||
|
||||
ai1_offset_y[0] = 0;
|
||||
ai1_offset_cb[0] = 0;
|
||||
ai1_offset_cr[0] = 0;
|
||||
|
||||
ps_sps = ps_sao_ctxt->ps_sps;
|
||||
log2_ctb_size = ps_sps->i1_log2_ctb_size;
|
||||
ctb_size = (1 << log2_ctb_size);
|
||||
|
|
@ -568,19 +566,15 @@ void ihevcd_sao_shift_ctb(sao_ctxt_t *ps_sao_ctxt)
|
|||
UWORD8 *pu1_sao_src_top_left_luma_bot_left;
|
||||
UWORD8 *au1_sao_src_top_left_chroma_bot_left;
|
||||
UWORD8 *pu1_sao_src_top_left_chroma_bot_left;
|
||||
/* Only 5 values are used, but arrays are large
|
||||
/* Only first 5 values are used, but arrays are large
|
||||
enough so that SIMD functions can read 64 bits at a time */
|
||||
WORD8 ai1_offset_y[8];
|
||||
WORD8 ai1_offset_cb[8];
|
||||
WORD8 ai1_offset_cr[8];
|
||||
WORD8 ai1_offset_y[8] = {0};
|
||||
WORD8 ai1_offset_cb[8] = {0};
|
||||
WORD8 ai1_offset_cr[8] = {0};
|
||||
WORD32 chroma_yuv420sp_vu = ps_sao_ctxt->is_chroma_yuv420sp_vu;
|
||||
|
||||
PROFILE_DISABLE_SAO();
|
||||
|
||||
ai1_offset_y[0] = 0;
|
||||
ai1_offset_cb[0] = 0;
|
||||
ai1_offset_cr[0] = 0;
|
||||
|
||||
ps_sps = ps_sao_ctxt->ps_sps;
|
||||
ps_pps = ps_sao_ctxt->ps_pps;
|
||||
ps_tile = ps_sao_ctxt->ps_tile;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue