diff options
author | Wu Ahan <ahanwu@google.com> | 2021-12-02 08:23:26 +0000 |
---|---|---|
committer | Wu Ahan <ahanwu@google.com> | 2021-12-06 03:17:59 +0000 |
commit | c2188d60ee0e0b00d557ed90354a4c1479c69c13 (patch) | |
tree | 0fe35a4f2cbfdbef80a4af4a2a02908e10087cef /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | d5c2fb380af22b799eeb3f2a01e793be61f11a68 (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
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions