mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-10-07 02:51:33 +07:00
Return error if SPS parsing reads more bytes than the nal length am: 232bbe1908 am: 2f206ceb72 am: c7ddfff98c am: cac2f841ae
am: c30ceb1eea
Change-Id: I99a54a6af9b0c1f64fb8222d8f8cc47297b986ad
This commit is contained in:
commit
81d057f43b
1 changed files with 4 additions and 0 deletions
|
|
@ -1460,6 +1460,10 @@ IHEVCD_ERROR_T ihevcd_parse_sps(codec_t *ps_codec)
|
|||
|
||||
BITS_PARSE("sps_extension_flag", value, ps_bitstrm, 1);
|
||||
|
||||
if((UWORD8 *)ps_bitstrm->pu4_buf > ps_bitstrm->pu1_buf_max)
|
||||
{
|
||||
return IHEVCD_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
{
|
||||
WORD32 numerator;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue