<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/erl_interface/src/legacy, branch maint</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>erl_interface: Remove old r9 pid and port compatibility</title>
<updated>2019-04-12T16:28:29+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2019-04-08T15:59:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=46aa940b9d771c4806aacaf065c2f637474e9815'/>
<id>46aa940b9d771c4806aacaf065c2f637474e9815</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce ei_init()</title>
<updated>2019-02-05T19:32:45+00:00</updated>
<author>
<name>Rickard Green</name>
<email>rickard@erlang.org</email>
</author>
<published>2019-02-05T14:55:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=dbeaca78bc6c0d4719a522e447fa59d7a1006ae0'/>
<id>dbeaca78bc6c0d4719a522e447fa59d7a1006ae0</id>
<content type='text'>
You previously had to initialize ei via erl_init() which
implied that you were forced to link against the erl_interface
even when not using it (besides initializing ei).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
You previously had to initialize ei via erl_init() which
implied that you were forced to link against the erl_interface
even when not using it (besides initializing ei).
</pre>
</div>
</content>
</entry>
<entry>
<title>Pluggable distribution socket implementation for EI</title>
<updated>2019-01-23T14:52:01+00:00</updated>
<author>
<name>Rickard Green</name>
<email>rickard@erlang.org</email>
</author>
<published>2018-12-07T14:49:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=eaeec753c035c2214be2930290a0a6de411566b0'/>
<id>eaeec753c035c2214be2930290a0a6de411566b0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed bug calling erl_compare_ext with terms containing lists</title>
<updated>2018-08-15T04:43:01+00:00</updated>
<author>
<name>Simon Cornish</name>
<email>zl9d97p02@sneakemail.com</email>
</author>
<published>2018-08-15T04:43:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=7f2efcc8cb3f104e6e3a53b18ce559842450b780'/>
<id>7f2efcc8cb3f104e6e3a53b18ce559842450b780</id>
<content type='text'>
The comparison did not consider the list tail and therefore
would consider the following pairs of terms equal:
{&lt;&lt;1,2,3&gt;&gt;, [901,902], 224} and {&lt;&lt;1,2,3&gt;&gt;, [901,902], 228}
{a|b} and {a|c}
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The comparison did not consider the list tail and therefore
would consider the following pairs of terms equal:
{&lt;&lt;1,2,3&gt;&gt;, [901,902], 224} and {&lt;&lt;1,2,3&gt;&gt;, [901,902], 228}
{a|b} and {a|c}
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright year</title>
<updated>2018-06-18T12:51:18+00:00</updated>
<author>
<name>Henrik Nord</name>
<email>henrik@erlang.org</email>
</author>
<published>2018-06-18T12:51:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=5ca92e2eac1e84fd22f60e7abc3aa2b0ff1cb42b'/>
<id>5ca92e2eac1e84fd22f60e7abc3aa2b0ff1cb42b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>erl_interface: fix bad memset</title>
<updated>2018-04-21T12:08:14+00:00</updated>
<author>
<name>Mikael Pettersson</name>
<email>mikpelinux@gmail.com</email>
</author>
<published>2018-04-21T12:08:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=bd31798262cd20354e64cca8654b0781b33d7ede'/>
<id>bd31798262cd20354e64cca8654b0781b33d7ede</id>
<content type='text'>
Compiling OTP-20.3.4 with GCC-7 generates the following warning:

 CC     /tmp/otp_src_20.3.4/lib/erl_interface/obj.st/x86_64-unknown-linux-gnu/erl_marshal.o
legacy/erl_marshal.c: In function 'erl_init_marshal':
legacy/erl_marshal.c:110:5: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
     memset(cmp_array, 0, CMP_ARRAY_SIZE);
     ^~~~~~

CMP_ARRAY_SIZE (256) is the number of elements in that array, but the
elements are not char but enum, which is 4 bytes on e.g. x86-64.
This results in 3/4 of the array not being correctly initialized.

Idiomatic C is to pass sizeof cmp_array to memset(), so that's what I did.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Compiling OTP-20.3.4 with GCC-7 generates the following warning:

 CC     /tmp/otp_src_20.3.4/lib/erl_interface/obj.st/x86_64-unknown-linux-gnu/erl_marshal.o
legacy/erl_marshal.c: In function 'erl_init_marshal':
legacy/erl_marshal.c:110:5: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
     memset(cmp_array, 0, CMP_ARRAY_SIZE);
     ^~~~~~

CMP_ARRAY_SIZE (256) is the number of elements in that array, but the
elements are not char but enum, which is 4 bytes on e.g. x86-64.
This results in 3/4 of the array not being correctly initialized.

Idiomatic C is to pass sizeof cmp_array to memset(), so that's what I did.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright year</title>
<updated>2017-05-04T13:42:21+00:00</updated>
<author>
<name>Raimo Niskanen</name>
<email>raimo@erlang.org</email>
</author>
<published>2017-05-04T13:42:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=83e20c62057ebc1d8064bf57b01be560cd244e1d'/>
<id>83e20c62057ebc1d8064bf57b01be560cd244e1d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>erl_interface: Do not generate atoms on old latin1 ext format</title>
<updated>2017-03-08T17:07:09+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2017-03-08T13:46:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=32d13d59910a384ad09682cafc83c7300c96c694'/>
<id>32d13d59910a384ad09682cafc83c7300c96c694</id>
<content type='text'>
Solved by letting ei_encode_atom_as ignore 'to_enc' argument
and always encode in UTF8 format.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Solved by letting ei_encode_atom_as ignore 'to_enc' argument
and always encode in UTF8 format.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed typos in lib/erl_interface</title>
<updated>2017-02-14T09:31:31+00:00</updated>
<author>
<name>Andrew Dryga</name>
<email>andrew@dryga.com</email>
</author>
<published>2017-02-12T17:37:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=c648b8f367bd63ecd50f9c4ea25d50d00dc4e68f'/>
<id>c648b8f367bd63ecd50f9c4ea25d50d00dc4e68f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix decoding of LLONG_MIN in erl_decode</title>
<updated>2016-06-13T09:10:16+00:00</updated>
<author>
<name>Björn-Egil Dahlberg</name>
<email>egil@erlang.org</email>
</author>
<published>2016-06-10T14:40:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=e2263999247487be70049b0c05223dd54c5a1681'/>
<id>e2263999247487be70049b0c05223dd54c5a1681</id>
<content type='text'>
Reported-by: Peter Lemenkov
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported-by: Peter Lemenkov
</pre>
</div>
</content>
</entry>
</feed>
