Return error if SPS parsing reads more bytes than the nal length am: 232bbe1908 am: 2f206ceb72 am: c7ddfff98c am: cac2f841ae am: c30ceb1eea am: 81d057f43b am: ad7cfee8f0

am: ae08a88344

Change-Id: I74bd99870abd3700a8e652bf729fdb8f3a4cb4be
This commit is contained in:
Harish Mahendrakar 2017-03-11 00:38:33 +00:00 • committed by android-build-merger
commit ed6770a725

View file

@ -1462,6 +1462,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;