Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 26bf0881 authored by Songchun Fan's avatar Songchun Fan Committed by Song Chun Fan
Browse files

[DO NOT MERGE] Handle out-of-bound array index in FastDataInput

Due to unknown reasons, SettingsProvider has been seeing corrupted xml
files that can cause ArrayIndexOutOfBoundsException during parsing. When
the exception is uncaught, it can cause system crashes and device boot
loop. This CL prevents the exception by checking the index and array
length before indexing. It throws an IOException when the index is out
of bound, such that the SettingsProvider can handle it gracefully.

BUG: 295555884
Test: builds

Cherry-picked from ag/24450007

Change-Id: I7b6c7cf0b6150a3a4046ec35090a63c0912c80c8
parent 13399aef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment