Integrated: 8261450: JShell crashes with SIOOBE in tab completion

Jan Lahoda jlahoda at openjdk.java.net
Thu Mar 4 12:39:53 UTC 2021


On Wed, 3 Mar 2021 16:43:02 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> `reflowTillNow` will strip trailing spaces, but then `reflownTo` may point after the full content of `result`. Need to fix `reflownTo` to not point after the full content of `result`, otherwise a `StringIndexOutOfBoundsException` may occur.

This pull request has now been integrated.

Changeset: 94f26e4d
Author:    Jan Lahoda <jlahoda at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/94f26e4d
Stats:     16 lines in 2 files changed: 13 ins; 0 del; 3 mod

8261450: JShell crashes with SIOOBE in tab completion

Reviewed-by: vromero

-------------

PR: https://git.openjdk.java.net/jdk/pull/2812


More information about the javadoc-dev mailing list