mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-08-15 23:32:35 +07:00
Merge "Added an out of bound check on u4_num_bufs in input argument" into lmp-dev am: 4b5c23e393 am: b49adbf304
am: 4ff7f4bfee
Change-Id: Idd6ee6f7ce322c025864b954cabe098776718ca7
This commit is contained in:
commit
556af11a03
1 changed files with 2 additions and 1 deletions
|
|
@ -421,7 +421,8 @@ WORD32 ihevcd_decode(iv_obj_t *ps_codec_obj, void *pv_api_ip, void *pv_api_op)
|
|||
if(0 == ps_codec->i4_share_disp_buf && ps_codec->i4_header_mode == 0)
|
||||
{
|
||||
UWORD32 i;
|
||||
if(ps_dec_ip->s_out_buffer.u4_num_bufs == 0)
|
||||
if((ps_dec_ip->s_out_buffer.u4_num_bufs <= 0) ||
|
||||
(ps_dec_ip->s_out_buffer.u4_num_bufs > IVD_VIDDEC_MAX_IO_BUFFERS))
|
||||
{
|
||||
ps_dec_op->u4_error_code |= 1 << IVD_UNSUPPORTEDPARAM;
|
||||
ps_dec_op->u4_error_code |= IVD_DISP_FRM_ZERO_OP_BUFS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue