summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorPaul Jensen <pauljensen@google.com>2016-08-22 09:15:40 -0400
committerPaul Jensen <pauljensen@google.com>2016-08-25 02:09:37 +0000
commit7d2198b586bcfbf96fb627021a0eb85d32829cc0 (patch)
treee64a13c8e0d55b61e4da44d19c1c1c78a47e9b4c /tools/aapt2/java/JavaClassGenerator_test.cpp
parentde04301f9aaf35e447137f23833c32a02b2114e5 (diff)
Avoid crashing when downloading MitM'd PAC that is too big
There's two pieces to this fix: 1. Move PAC loading off IoThread which isn't meant for blocking network fetches. If the fetch takes more than 60s Android reboots when the IoThread is used. 2. Limit PAC fetching to 20MB. Any PAC bigger than that is likely evil. MitM of PACs should only be possbile when a non-SSL PAC URL is used. Change-Id: Ie1658a1c705615dc85a7fc68053f0dad8d048294 Fixes: 30100884
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions