summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Winson <chiuwinson@google.com> 2022-03-09 12:22:51 -0800
committer Winson <chiuwinson@google.com> 2022-03-09 12:24:14 -0800
commitb22a60235934eaf9f09fd29d817a8a0fb461f4d6 (patch)
treeb61b97c2c7b04ba82d088fc0dab18eb7f4e434f2 /libs/androidfw/misc.cpp
parent4359c9d3d5820fcdc980ed9b1be0ac2cfe48511a (diff)
Null check signature array before comparison
SigningDetails.UNKNOWN is defined with a null array, so if any package fails to scan signatures, this code would crash with an NPE. Instead of failing, just treat it as an empty signature array. It's unclear what caused this to pop up now, as this code hasn't changed in a long while. Bug: 223469467 Test: presubmit Change-Id: Icdcfaaa3586898873b719c74dd5662b03e3fabae
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions