OSDN Git Service

Make safe label more safe
authorTodd Kennedy <toddke@google.com>
Thu, 3 May 2018 09:05:04 +0000 (10:05 +0100)
committerAtanas Kirilov <akirilov@google.com>
Tue, 22 May 2018 21:59:22 +0000 (21:59 +0000)
commit2263da9539daef134395226a2718ba2d7af7547d
tree0a4f55bed3b63626323e243352bb7bb0237b72c0
parent42ded39df8838f01a9c1b46592aaf6afea6236ca
Make safe label more safe

* limit the absolute maximum size of the label to 50000 characters
[which is probably far more than necessary, but, can be dialed down]

* use a string buffer while processing the string [instead of creating
multiple string objects]

Bug: 62537081
Test: Manual. Install APK in bug and see that it can be uninstalled
Change-Id: Ibf63c2691ad7438a123e92110d95b1f50050f8b1
Merged-In: Ibf63c2691ad7438a123e92110d95b1f50050f8b1
core/java/android/content/pm/PackageItemInfo.java