summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorMichael Groover <mpgroover@google.com>2020-04-28 15:08:20 -0700
committerMichael Groover <mpgroover@google.com>2020-04-28 15:08:20 -0700
commit09c24c3c4f8c29344708c31bf56f05d6648ffb1e (patch)
tree056e00b0fc622dd14788b4f0b38f83a13f7569e9 /tools/aapt2/java/JavaClassGenerator.cpp
parentf51a85f60a6fbea5f3013fa39b6368c5de8f0bbf (diff)
Resolve IndexOOBException in SigningDetails#hasAncestor
When a package that is part of a shareduid is installed / updated its lineage is compared against the current signature / lineage for the shareduid. If the new package has more than one signature in the lineage an IndexOutOfBoundsException is thrown by SigningDetails#hasAncestor crashing the system server. This commit ensures the ancestor check is only performed against the current signer for the shareduid. Fixes: 155134046 Test: atest SigningDetailsTest Change-Id: Icef9f21c6901e255e5276085259d2f773f41e858
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions