erl_interface and buffer overruns

Taj Khattra taj.khattra@REDACTED
Sat Aug 26 19:10:16 CEST 2006


On 8/26/06, Joel Reymont <joelr1@REDACTED> wrote:
> BUFSIZE is arbitrarily set to 1000. Doesn't this make the code prone
> to buffer overruns?

nope.  see http://www.erlang.se/doc/doc-5.5/lib/erl_interface-3.5.5/doc/html/erl_connect.html#erl_receive_msg/4

if the buffer is too small, erl_receive_msg returns ERL_ERROR and sets
erl_errno to EMSGSIZE



More information about the erlang-questions mailing list