Kuaishou Tech
Sep 2, 2021 · Mobile Development
Analyzing the Mystery String Causing Android ANR: Unicode Line‑Breaking and Bidi Algorithm
This article explains why a specially crafted Unicode string triggers an Android ANR by dissecting the Unicode line‑breaking (UAX #14) and bidirectional (UAX #9) algorithms, showing how runs ending with double zeros lead to an infinite loop in TextLine.getOffsetToLeftRightOf.
ANRAndroidBidi
0 likes · 16 min read