summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Fabián Kozynski <kozynski@google.com> 2024-03-19 13:02:09 -0400
committer Fabián Kozynski <kozynski@google.com> 2024-03-19 13:04:37 -0400
commit0719e745b6b49c976c34b0c8f5cd0a8779b48a8c (patch)
treeeb411ed957440752ffce48a58ce83ccf06d31e01 /libs/androidfw/StringPool.cpp
parent42910f6b153888886f7a09f46759f28e656bf29b (diff)
Properly check for malformed extras
In ControlsRequestReceiver, we trust the extras in the intent, but because it could be assembled by a malicious app, those could be malformed, causing SystemUI to crash. Make sure that we properly check for exceptions in loading the parcellables as well as missing data and return early (after logging an error). Fixes: 329369938 Flag: None Test: manual, using test apk Test: atest ControlsRequestReceiverTest Change-Id: I945d2c5a8daf56c0708de5ccdd6020cac857827a
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions