diff options
author | Naveen Kumar P <naveenkumar.p@ittiam.com> | 2017-09-18 16:58:35 +0530 |
---|---|---|
committer | MSe <mse1969@posteo.de> | 2018-01-10 20:56:51 +0100 |
commit | ec9652004ed7c4c823e0a02319a355015c6c8c21 (patch) | |
tree | 276475b2b5fd0c5733a60ce267f2a400b22737fc | |
parent | 89ec98a0746f5ddc73ebaa7c4ccc2e0f0eb40a7d (diff) | |
download | android_external_libhevc-ec9652004ed7c4c823e0a02319a355015c6c8c21.tar.gz android_external_libhevc-ec9652004ed7c4c823e0a02319a355015c6c8c21.tar.bz2 android_external_libhevc-ec9652004ed7c4c823e0a02319a355015c6c8c21.zip |
Consume bytes for sps with unsupported resolution
Bug: 65718319
Test: ran POC before/after
For an sps with unsupported resolution, consume the bytes.
Otherwise application will feed the same sps again
and again.
Change-Id: I02295e813f37a963d7f6216bb8a7e86648485681
(cherry picked from commit b1d2f31cfa81304460f577667a5332b53ec15404)
CVE-2017-13193
-rw-r--r-- | decoder/ihevcd_decode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/decoder/ihevcd_decode.c b/decoder/ihevcd_decode.c index 44abcef..45b25dd 100644 --- a/decoder/ihevcd_decode.c +++ b/decoder/ihevcd_decode.c @@ -641,8 +641,7 @@ WORD32 ihevcd_decode(iv_obj_t *ps_codec_obj, void *pv_api_ip, void *pv_api_op) continue; } - if((IVD_RES_CHANGED == ret) || - (IHEVCD_UNSUPPORTED_DIMENSIONS == ret)) + if(IVD_RES_CHANGED == ret) { break; } |