summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorWu Ahan <ahanwu@google.com>2021-12-02 08:23:26 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-12-16 21:13:32 +0000
commit03021ef050c2e8afc1892109b8c1b884b6df4ee2 (patch)
treebbc9483f3949b75f4d122ab6b8473f0754de1e5a /tools/aapt2/java/JavaClassGenerator_test.cpp
parent1add3fc7c4bd9e04bac9865b796b29157c477e22 (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 (cherry picked from commit fa9c73975e1d2b5bf6335e1e387130890d787b15) Merged-In:I014cf461954992782b3dfa0dde67c98a572cc770
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions