mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-08-15 23:32:35 +07:00
Fix heap buffer overflow
Test: - Push multi_rec.hevc (in the bug thread) to the device - Build: mmm external/libhevc - Run on device: hevcdec --input multi_res.hevc --num_frames -1 --num_cores 2 Bug: 62815506 Merged-In: I7e0828c9a9bb1e9997c379544ea5f4eb3556417d Change-Id: I7e0828c9a9bb1e9997c379544ea5f4eb3556417d
This commit is contained in:
parent
db15dd7102
commit
f6ba5eae65
1 changed files with 5 additions and 1 deletions
|
|
@ -1534,10 +1534,14 @@ IHEVCD_ERROR_T ihevcd_parse_sps(codec_t *ps_codec)
|
|||
ps_sps->i2_pic_ht_in_min_cb = numerator /
|
||||
(1 << ps_sps->i1_log2_min_coding_block_size);
|
||||
}
|
||||
if((0 != ps_codec->i4_first_pic_done) &&
|
||||
if((0 != ps_codec->i4_sps_done) &&
|
||||
((ps_codec->i4_wd != ps_sps->i2_pic_width_in_luma_samples) ||
|
||||
(ps_codec->i4_ht != ps_sps->i2_pic_height_in_luma_samples)))
|
||||
{
|
||||
if(0 == ps_codec->i4_first_pic_done)
|
||||
{
|
||||
return IHEVCD_INVALID_PARAMETER;
|
||||
}
|
||||
ps_codec->i4_reset_flag = 1;
|
||||
ps_codec->i4_error_code = IVD_RES_CHANGED;
|
||||
return (IHEVCD_ERROR_T)IHEVCD_FAIL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue