Terminal Lockup

Per Allansson per at appgate.com
Wed Nov 30 16:17:41 MET 2005


Thank you. This has been fixed for the next release.

  Rgds, Per


Dino Klein wrote:
> I got a fix here for the terminal lock up.
> 
> The decoding process will choke on any malformed input, and stay
> that way, since the erroneous state is never cleared in
> com.mindbright.terminal.filter.Filter.intConvertFrom(); in fact,
> the two decodeFrom() methods that call it will continually resize
> the input buffer to accommodate new data, until the JVM runs out
> of memory.
> 
> The patch below will change the decoder's default behavior to
> substitute a malformed sequence, so that processing can go on.
> I've gave this a try only with a UTF-8 encoding.
> 
> Also, perhaps the encoder should be adjusted in a similar fashion?
> If it gets fed a malformed sequence, then it will choke as well.

  ...


More information about the Mindterm-users mailing list