<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/erl_interface/src, branch OTP-21.0.1</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<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>stdlib: Move eval_str/1 from mod_esi to erl_eval</title>
<updated>2018-06-07T11:08:07+00:00</updated>
<author>
<name>Hans Bolinder</name>
<email>hasse@erlang.org</email>
</author>
<published>2018-06-07T11:08:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=59c41bba956bf399a195c2f1c8c1192073853630'/>
<id>59c41bba956bf399a195c2f1c8c1192073853630</id>
<content type='text'>
See also https://bugs.erlang.org/browse/ERL-634.

The utility program `erl_call' in erl_interface used to call
lib:eval_str/1, which is no longer present in Erlang/OTP 21.0.

The lib module was eliminated in OTP-15072, see also
https://github.com/erlang/otp/pull/1786.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See also https://bugs.erlang.org/browse/ERL-634.

The utility program `erl_call' in erl_interface used to call
lib:eval_str/1, which is no longer present in Erlang/OTP 21.0.

The lib module was eliminated in OTP-15072, see also
https://github.com/erlang/otp/pull/1786.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge PR-1823 from jesperes/ERL-629-erl_call-free-before-use OTP-15105</title>
<updated>2018-06-04T14:52:48+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2018-06-04T14:52:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=e5a9686cb1a2b21caa3a692d960a841cd954d0ff'/>
<id>e5a9686cb1a2b21caa3a692d960a841cd954d0ff</id>
<content type='text'>
ERL-629 Do not free() module buffer until it has been used</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ERL-629 Do not free() module buffer until it has been used</pre>
</div>
</content>
</entry>
<entry>
<title>ERL-629 Do not free() module buffer until it has been used</title>
<updated>2018-05-22T09:19:03+00:00</updated>
<author>
<name>Jesper Eskilson</name>
<email>jesper.eskilson@klarna.com</email>
</author>
<published>2018-05-22T09:14:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=abce739f6a897c462b3588ce15983eb530d7e080'/>
<id>abce739f6a897c462b3588ce15983eb530d7e080</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>Merge branch 'sverker/optimize-atom-enc-dec/ERIERL-150/OTP-15023' into maint-20</title>
<updated>2018-04-19T14:23:05+00:00</updated>
<author>
<name>Erlang/OTP</name>
<email>otp@erlang.org</email>
</author>
<published>2018-04-19T14:23:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=7920c389594797153cc27ac6dea206fbd44de331'/>
<id>7920c389594797153cc27ac6dea206fbd44de331</id>
<content type='text'>
* sverker/optimize-atom-enc-dec/ERIERL-150/OTP-15023:
  erl_interface: Optimize latin1_to_utf8 and friend
  ic: Optimize oe_ei_encode_atom
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* sverker/optimize-atom-enc-dec/ERIERL-150/OTP-15023:
  erl_interface: Optimize latin1_to_utf8 and friend
  ic: Optimize oe_ei_encode_atom
</pre>
</div>
</content>
</entry>
<entry>
<title>erl_interface: Optimize latin1_to_utf8 and friend</title>
<updated>2018-04-19T13:18:58+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2018-03-19T18:13:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=1ab478a7ce281f7cdce01df2fe04953c0770fdbc'/>
<id>1ab478a7ce281f7cdce01df2fe04953c0770fdbc</id>
<content type='text'>
to do word wise check/copy for pure ASCII
if ARCH allows it (x86 and amd64).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
to do word wise check/copy for pure ASCII
if ARCH allows it (x86 and amd64).
</pre>
</div>
</content>
</entry>
<entry>
<title>erl_interface: Fix ei_connect</title>
<updated>2018-04-18T09:31:53+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2018-04-18T09:31:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=3c8c8158de1b0f1880d588c1169be6a2f727c379'/>
<id>3c8c8158de1b0f1880d588c1169be6a2f727c379</id>
<content type='text'>
when ei_gethostbyname_r returns ERANGE.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
when ei_gethostbyname_r returns ERANGE.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add toplevel xmllint make target</title>
<updated>2017-10-31T12:46:05+00:00</updated>
<author>
<name>Lukas Larsson</name>
<email>lukas@erlang.org</email>
</author>
<published>2017-10-23T11:08:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=1a1fe80bb3b3bfc6705d4a581f109d0a8e5a8c2e'/>
<id>1a1fe80bb3b3bfc6705d4a581f109d0a8e5a8c2e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</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>
</feed>
