Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0x0D (newline) literals in .rebel_readline_history breaks repl #198

Open
djtango opened this issue Oct 1, 2019 · 0 comments
Open

0x0D (newline) literals in .rebel_readline_history breaks repl #198

djtango opened this issue Oct 1, 2019 · 0 comments

Comments

@djtango
Copy link

djtango commented Oct 1, 2019

If I accidentally enter 0x0D newline characters into my session and they are saved into the repl history, on subsequent startup an exception is thrown:

[Rebel readline] Type :repl/help for online help info
Execution error (StringIndexOutOfBoundsException) at java.lang.String/substring (String.java:1967).
String index out of range: -1

Additional evaluation of forms also throws an exception:

user=> (println "foo")
Execution error (IndexOutOfBoundsException) at java.util.SubList/<init> (AbstractList.java:620).
fromIndex = -11

Steps to replicate:

  • Insert 0x0D literal into repl history:
    image

  • Start repl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant