<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/erts/lib_src, branch KennethL-patch-1</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>Fix size of fmt_double()'s format_str[] buffer</title>
<updated>2018-02-13T09:19:20+00:00</updated>
<author>
<name>Mikael Pettersson</name>
<email>mikpelinux@gmail.com</email>
</author>
<published>2018-02-05T20:41:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=cac015e654dbb3ab538cb26486115c4c9b4fc210'/>
<id>cac015e654dbb3ab538cb26486115c4c9b4fc210</id>
<content type='text'>
fmt_double() may write up to 8 characters into its format_str[]
buffer, which however only has room for 7 characters.

This case could be triggered by a call to erts_printf_format() with
any floating-point format that also includes #, and + or a space,
which may be uncommon, but a nif or driver could issue it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fmt_double() may write up to 8 characters into its format_str[]
buffer, which however only has room for 7 characters.

This case could be triggered by a call to erts_printf_format() with
any floating-point format that also includes #, and + or a space,
which may be uncommon, but a nif or driver could issue it.
</pre>
</div>
</content>
</entry>
<entry>
<title>erts: Fix buffer overflow bug in erts_printf %f</title>
<updated>2018-01-15T16:25:11+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2018-01-12T14:33:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=a8aeed346d0be42161a2563a09a4745b40d330ee'/>
<id>a8aeed346d0be42161a2563a09a4745b40d330ee</id>
<content type='text'>
Sign character was not accounted for.

Ex:
float_to_list(-3.1265538967899625e+69, [{decimals,16}]).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sign character was not accounted for.

Ex:
float_to_list(-3.1265538967899625e+69, [{decimals,16}]).
</pre>
</div>
</content>
</entry>
<entry>
<title>Buffer writing of crash dumps</title>
<updated>2017-10-18T12:05:00+00:00</updated>
<author>
<name>Björn Gustavsson</name>
<email>bjorn@erlang.org</email>
</author>
<published>2017-10-13T11:28:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=360d26b21c169b0c88d6ca43265cbcfa3ce9ef74'/>
<id>360d26b21c169b0c88d6ca43265cbcfa3ce9ef74</id>
<content type='text'>
Writing of crash dumps were done using unbuffered IO. This
is slow since many small writes are done.

Use a FILE* with an allocated buffer to obtain buffered IO.

I wrote a small test program that created 50000 binaries of 200 bytes
each and then created a crash dump. The crash dumping was an order of
magnitude faster with buffered IO than without.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Writing of crash dumps were done using unbuffered IO. This
is slow since many small writes are done.

Use a FILE* with an allocated buffer to obtain buffered IO.

I wrote a small test program that created 50000 binaries of 200 bytes
each and then created a crash dump. The crash dumping was an order of
magnitude faster with buffered IO than without.
</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>erts: Fix debug emulator on windows</title>
<updated>2017-04-27T15:08:38+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2017-04-27T13:07:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=38cdf3a9e4afaae77633a2b010758d42b9855bc0'/>
<id>38cdf3a9e4afaae77633a2b010758d42b9855bc0</id>
<content type='text'>
Clear ethr_not_inited__ early (like on unix)
to not get assertion in ethr_tsd_key_create("stacklimit")
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Clear ethr_not_inited__ early (like on unix)
to not get assertion in ethr_tsd_key_create("stacklimit")
</pre>
</div>
</content>
</entry>
<entry>
<title>erts: Fix erlexec to handle mismatch in sysconf and proc fs</title>
<updated>2017-04-20T08:09:15+00:00</updated>
<author>
<name>Lukas Larsson</name>
<email>lukas@erlang.org</email>
</author>
<published>2017-04-06T15:13:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=bb18d3305363ed9ef9eaead6fa2d796f56b1749c'/>
<id>bb18d3305363ed9ef9eaead6fa2d796f56b1749c</id>
<content type='text'>
This behaviour has been seen when using docker together with --cpuset-cpus.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This behaviour has been seen when using docker together with --cpuset-cpus.
</pre>
</div>
</content>
</entry>
<entry>
<title>Stack guard for PCRE</title>
<updated>2017-04-07T13:02:10+00:00</updated>
<author>
<name>Rickard Green</name>
<email>rickard@erlang.org</email>
</author>
<published>2017-04-05T12:32:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=8f452530e61b299d4d48f82f41ab5364723607ae'/>
<id>8f452530e61b299d4d48f82f41ab5364723607ae</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Workaround for buggy android implementation of PTHREAD_STACK_MIN</title>
<updated>2016-12-20T16:25:18+00:00</updated>
<author>
<name>Rickard Green</name>
<email>rickard@erlang.org</email>
</author>
<published>2016-12-20T16:25:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=23cfe2138c71861684f55a298b55203b4649a645'/>
<id>23cfe2138c71861684f55a298b55203b4649a645</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>erts: Add cbprintf for Callback Printing</title>
<updated>2016-11-17T15:49:30+00:00</updated>
<author>
<name>Sverker Eriksson</name>
<email>sverker@erlang.org</email>
</author>
<published>2016-11-17T15:49:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=4d7f8c2ab1a7b8c204d932166837b58d08de6506'/>
<id>4d7f8c2ab1a7b8c204d932166837b58d08de6506</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve accuracy of timeouts using premature timeouts</title>
<updated>2016-06-22T15:13:45+00:00</updated>
<author>
<name>Rickard Green</name>
<email>rickard@erlang.org</email>
</author>
<published>2016-06-20T13:51:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=b71dde8bd94985f5953a1647802ac312a798fe69'/>
<id>b71dde8bd94985f5953a1647802ac312a798fe69</id>
<content type='text'>
Improve accuracy of timeouts using a premature timeout then
return to sleep with a shorter timeout just before requested
timeout. This approach is only used on certain platforms where
we know it improves the accuracy of the timeouts, e.g. MacOS X.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Improve accuracy of timeouts using a premature timeout then
return to sleep with a shorter timeout just before requested
timeout. This approach is only used on certain platforms where
we know it improves the accuracy of the timeouts, e.g. MacOS X.
</pre>
</div>
</content>
</entry>
</feed>
