Community
Participate
Working Groups
I pasted some text with CRLF line separators into the Terminal connected to a local process and got following exception. Looking at InputStreamMonitor.write() the result of onWriteContentToStream() is actually ignored. Only the length of the modified byte array is taken into account leading to the AIIOB if the array got larger. java.lang.ArrayIndexOutOfBoundsException: 57 at org.eclipse.tcf.te.ui.terminals.streams.InputStreamMonitor.write(InputStreamMonitor.java:302) at java.io.OutputStream.write(Unknown Source) at org.eclipse.tm.internal.terminal.emulator.VT100TerminalControl.sendString(VT100TerminalControl.java:536) at org.eclipse.tm.internal.terminal.emulator.VT100TerminalControl.pasteString(VT100TerminalControl.java:285) at org.eclipse.tm.internal.terminal.emulator.VT100TerminalControl.paste(VT100TerminalControl.java:273) at org.eclipse.tm.internal.terminal.emulator.VT100TerminalControl.paste(VT100TerminalControl.java:258) at org.eclipse.tm.internal.terminal.control.actions.TerminalActionPaste.run(TerminalActionPaste.java:53) [...]
CQ:WIND00-WB4-3514
http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/commit/?id=e71c3ab5f85104b1c272aa46dda9363b0256c608
The effect of the fix seems to be, that I cannot paste any text with embedded CRLF any more at all -- _nothing_ happens when I paste the following (_EVERYTHING_ until end of the comment) into the Windows local terminal: echo "Start ISS for 'ISS (ball_diab_rh850)' E:\WindRiver\diab0514\workbench-4\x86-win32\bin\windiss_server.exe -sTCP::61830 -tRH850 -TE:/WindRiver/diab0514/workspace/ball_diab_rh850/RH850ENwindissdiab/ball_diab_rh850/Debug/ball_diab_rh850.elf -i