commit | 945cd7f73b8feb41bf8a191123451ed98eb41349 | [log] [tgz] |
---|---|---|
author | Robert Lord <lard@google.com> | Fri Mar 22 23:58:42 2019 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Fri Mar 22 23:58:42 2019 +0000 |
tree | b6eac3984ebae89d535ceba70de12f45f7f27803 | |
parent | d81f9a27647c7a4289d86938870de37b6c482c95 [diff] |
[text] Fix invalid TextPoint creation past end in Ime Previously, if a client tried to create a TextPoint with an offset that put the point beyond the end of the text field, the character index would be incorrectly set to char_to_byte.len() instead of char_to_byte.len()-1, which resulted in a panic. This change both adds a breaking test to TextFieldTestSuite so that other implementations can test for similar bugs, as well as actually fixes the bug itself. Change-Id: Ia14ed43cacfc56fb5efa35f528c80afe8bdf1304
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.
See the documentation.