<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 05/07/2013 04:22 PM, Stefan Zegenhagen wrote:
<blockquote cite="mid:1367936530.31752.96.camel@ax-sze" type="cite">
<pre wrap="">Dear all,
it seems as if I sent around the wrong version of the patch. Please find
the correct version attached to this e-mail.
Kind regards,
</pre>
<blockquote type="cite">
<pre wrap="">one of our testers found out that he could reliably reboot our
erlang-based device by just sending tons of 'A' characters to an
interactive shell.
It appears that the I/O server of the interactive shell (in group.erl)
is always reading a full line before doing any end-of-input processing,
so that by sending bytes without a newline in between, it slowly eats up
all available memory.
The patch attached to this e-mail fixes that by introducing a new
io:setopt() option in group.erl named 'max_length' that is used to check
whether the current line length exceeds this maximum whenever the line
is edited. If an overlong line is detected, max_length bytes are
returned immediately (without the actual stop condition being fulfilled,
though, allowing I/O clients to detect this situation).
max_length is allowed to be an integer() > 0 or 'unlimited'. The default
is 'unlimited' to have the old behaviour by default.
Kind regards,
_______________________________________________
erlang-patches mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-patches@erlang.org">erlang-patches@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-patches">http://erlang.org/mailman/listinfo/erlang-patches</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
erlang-patches mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-patches@erlang.org">erlang-patches@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-patches">http://erlang.org/mailman/listinfo/erlang-patches</a>
</pre>
</blockquote>
Hello Stefan,<br>
I've fetched your patch and a review process has started.<br>
Thanks,<br>
<br>
<pre class="moz-signature" cols="72">--
BR Fredrik Gustafsson
Erlang OTP Team</pre>
</body>
</html>