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
Bug: 35039946 Change-Id: Ia97fa8711f313d0029d2b13e6d150d5e46b2bb99 (cherry picked from commit a6c58e18a49a1ea4929f8345b3c59f900d5813f5)
This commit is contained in:
parent
98f9e26d24
commit
232bbe1908
1 changed files with 4 additions and 0 deletions
|
|
@ -1461,6 +1461,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