mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-08-15 15:22:36 +07:00
Merge "Added an out of bound check on u4_num_bufs in input argument" into lmp-dev
This commit is contained in:
commit
4b5c23e393
1 changed files with 2 additions and 1 deletions
|
|
@ -408,7 +408,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