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

Commit 517fee84 authored by Lan Wei's avatar Lan Wei
Browse files

Handle integer overflow in BaseInputConnection

When IME tries to load input context with a large range like
[Integer.MAX_VALUE, Integer.MAX_VALUE], app might crash as current
implementation can't handle integer overflow well.

Fix the issue by guarding the range of the text after the cursor.

Test: BaseInputConnectionTest

BUG: 279670566
Fix: 279670566

Change-Id: I5e3df4f2288896cbd21f6c1a59b7e315c60029c4
parent 53fd9812
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment