Enforce a hard limit for the size of images to be decoded
Although standards like JPEG allow for sizes as large as 65,535×65,535 pixels, we realistically cannot fit such large images in memory. Created a test gif since it's the smallest format I could find. It's larger than strictly necessary for the test in case we want to increase the hard limit in the future. Bug: 444671303 Test: manually verified that a notification that causes a crashloop without this change, doesn't anymore Test: LocalImageResolverTest Flag: EXEMPT CVE_FIX (cherry picked from commit 449f35b532d5f680b90c8f9d8150010e7f5f30df) Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:1f05e429c98270dc403b41a965debba65cc58837 Merged-In: I0c95cfeabe169630286e7af8577c4495c2b1015f Change-Id: I0c95cfeabe169630286e7af8577c4495c2b1015f
Loading
Please register or sign in to comment