commit | 4d91b5aa0b564551af2be26fb7ace1c83dff3884 | [log] [tgz] |
---|---|---|
author | Wu Ahan <ahanwu@google.com> | Thu Dec 02 08:23:26 2021 +0000 |
committer | Wu Ahan <ahanwu@google.com> | Mon Dec 06 03:16:20 2021 +0000 |
tree | 2d3496f7eb9a0efbc17d019a34b736f4ec71f765 | |
parent | d7097b817bb5a661e4bbc22829f6dc0a6ddca27c [diff] |
DO NOT MERGE: Decode the input of both setStream and setResource calls first The size of the input of both setStream and setResource may very big that system server got oom while handling it, so we try to decode it first before copying it to the wallpaper path, if the decoding fails, we treat the input as an invalid input. Bug: 204087139 Test: Manually set wallpaper, no PDoS observed. Change-Id: I014cf461954992782b3dfa0dde67c98a572cc770