Added an out of bound check on u4_num_bufs in input argument am: aa11ab9fdb am: 50ec420228 am: 0514a1ebfb am: fa8bb9d89c am: 96228ba3b9
am: 4a6a743d40
Change-Id: Ifb4eef3f1f35daf42ce7c7e2052e6a2ad7025ef1
This commit is contained in:
commit
4ed04c7bb1
1 changed files with 2 additions and 1 deletions
|
|
@ -1804,7 +1804,8 @@ WORD32 ih264d_video_decode(iv_obj_t *dec_hdl, void *pv_api_ip, void *pv_api_op)
|
|||
&& ps_dec->i4_decode_header == 0)
|
||||
{
|
||||
UWORD32 i;
|
||||
if(ps_dec->ps_out_buffer->u4_num_bufs == 0)
|
||||
if((ps_dec->ps_out_buffer->u4_num_bufs == 0) ||
|
||||
(ps_dec->ps_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