Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b346d53b authored by Ioana Alexandru's avatar Ioana Alexandru Committed by Nishith Khanna
Browse files

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
parent 4f347692
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment