<feed xmlns='http://www.w3.org/2005/Atom'>
<title>musl/src/stdio, branch v0.8.4</title>
<subtitle>musl - an implementation of the standard library for Linux-based systems</subtitle>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/'/>
<entry>
<title>simplify atexit and fflush-on-exit handling</title>
<updated>2011-10-15T03:00:24+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-10-15T03:00:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=f753049a50132a23849ef89a8af5ff86ad595c25'/>
<id>f753049a50132a23849ef89a8af5ff86ad595c25</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>don't crash on null strings in printf</title>
<updated>2011-09-29T02:07:58+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-09-29T02:07:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=5f814682b48c59f07568d349f979eed4cf306703'/>
<id>5f814682b48c59f07568d349f979eed4cf306703</id>
<content type='text'>
passing null pointer for %s is UB but lots of broken programs do it anyway
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
passing null pointer for %s is UB but lots of broken programs do it anyway
</pre>
</div>
</content>
</entry>
<entry>
<title>avoid setting FILE lock count when not using flockfile</title>
<updated>2011-09-22T01:30:45+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-09-22T01:30:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=ca52e347673126956a4f21247d8a551ea668f61f'/>
<id>ca52e347673126956a4f21247d8a551ea668f61f</id>
<content type='text'>
for now this is just a tiny optimization, but later if we support
cancellation from __stdio_read and __stdio_write, it will be necessary
for the recusrive lock count to be zero in order for these functions
to know they are responsible for unlocking the FILE on cancellation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
for now this is just a tiny optimization, but later if we support
cancellation from __stdio_read and __stdio_write, it will be necessary
for the recusrive lock count to be zero in order for these functions
to know they are responsible for unlocking the FILE on cancellation.
</pre>
</div>
</content>
</entry>
<entry>
<title>more fmemopen null termination fixes</title>
<updated>2011-09-05T01:53:20+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-09-05T01:53:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=d2e061a2bd3f7674cfef2e2217e0695419041b5e'/>
<id>d2e061a2bd3f7674cfef2e2217e0695419041b5e</id>
<content type='text'>
null termination is only added when current size grows.
in update modes, null termination is not added if it does not fit
(i.e. it is not allowed to clobber data).

these rules make very little sense, but that's how it goes..
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
null termination is only added when current size grows.
in update modes, null termination is not added if it does not fit
(i.e. it is not allowed to clobber data).

these rules make very little sense, but that's how it goes..
</pre>
</div>
</content>
</entry>
<entry>
<title>fix some fmemopen behaviors</title>
<updated>2011-09-05T01:40:42+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-09-05T01:40:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=e72ee5786b1f328da131b87388333c2e3a09b7b3'/>
<id>e72ee5786b1f328da131b87388333c2e3a09b7b3</id>
<content type='text'>
read should not be allowed past "current size".
append mode should write at "current size", not buffer size.
null termination should not be written except when "current size" grows.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
read should not be allowed past "current size".
append mode should write at "current size", not buffer size.
null termination should not be written except when "current size" grows.
</pre>
</div>
</content>
</entry>
<entry>
<title>fmemopen: fix eof handling, hopefully right this time</title>
<updated>2011-09-04T20:06:38+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-09-04T20:06:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=22e4542348352235614b57948025bdd0cc30dc32'/>
<id>22e4542348352235614b57948025bdd0cc30dc32</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fmemopen fixes</title>
<updated>2011-09-04T20:04:28+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-09-04T20:04:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=f81279ff583ef81bc88a46dd1d0140fb6e0ed222'/>
<id>f81279ff583ef81bc88a46dd1d0140fb6e0ed222</id>
<content type='text'>
disallow seek past end of buffer (per posix)
fix position accounting to include data buffered for read
don't set eof flag when no data was requested
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
disallow seek past end of buffer (per posix)
fix position accounting to include data buffered for read
don't set eof flag when no data was requested
</pre>
</div>
</content>
</entry>
<entry>
<title>memstreams: fix incorrect handling of file pos &gt; current size</title>
<updated>2011-09-04T14:29:04+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-09-04T14:29:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=7ee3dcb3c603b20fcd4547ffb00e11701c6d1cf4'/>
<id>7ee3dcb3c603b20fcd4547ffb00e11701c6d1cf4</id>
<content type='text'>
the addition is safe and cannot overflow because both operands are
positive when considered as signed quantities.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the addition is safe and cannot overflow because both operands are
positive when considered as signed quantities.
</pre>
</div>
</content>
</entry>
<entry>
<title>optimize seek function for memory streams</title>
<updated>2011-09-04T04:08:32+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-09-04T04:08:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=c88f36f55623124d09f48631974ca38aaec00057'/>
<id>c88f36f55623124d09f48631974ca38aaec00057</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix twos complement overflow bug in mem streams boundary check</title>
<updated>2011-09-04T04:06:01+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2011-09-04T04:06:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=32d67e938e8da0f37c59247acee8b10eaf9a113c'/>
<id>32d67e938e8da0f37c59247acee8b10eaf9a113c</id>
<content type='text'>
the expression -off is not safe in case off is the most-negative
value. instead apply - to base which is known to be non-negative and
bounded within sanity.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the expression -off is not safe in case off is the most-negative
value. instead apply - to base which is known to be non-negative and
bounded within sanity.
</pre>
</div>
</content>
</entry>
</feed>
