<feed xmlns='http://www.w3.org/2005/Atom'>
<title>musl/src, branch v1.1.2</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>implement %y and %C specifiers in strptime</title>
<updated>2014-06-06T21:41:12+00:00</updated>
<author>
<name>Timo Teräs</name>
<email>timo.teras@iki.fi</email>
</author>
<published>2014-05-14T07:53:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=348fc5561c816d56ae1c3d744e4c22b70e861d4e'/>
<id>348fc5561c816d56ae1c3d744e4c22b70e861d4e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>avoid invalid use of va_arg in open</title>
<updated>2014-06-06T19:43:16+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2014-06-06T19:43:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=9c2d437cb343a9a9e1c2d5dea4e0ae6a7d4fa0be'/>
<id>9c2d437cb343a9a9e1c2d5dea4e0ae6a7d4fa0be</id>
<content type='text'>
reading the variadic mode argument is only valid when the O_CREAT flag
is present. this probably does not matter, but is needed for formal
correctness, and could affect LTO or other full-program analysis.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
reading the variadic mode argument is only valid when the O_CREAT flag
is present. this probably does not matter, but is needed for formal
correctness, and could affect LTO or other full-program analysis.
</pre>
</div>
</content>
</entry>
<entry>
<title>add O_CLOEXEC fallback for open and related functions</title>
<updated>2014-06-06T19:42:42+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2014-06-06T19:42:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=7765706c0584ed4a30e0b7a3ada742e490ef02b0'/>
<id>7765706c0584ed4a30e0b7a3ada742e490ef02b0</id>
<content type='text'>
since there is no easy way to detect whether open honored or ignored
the O_CLOEXEC flag, the optimal solution to providing a fallback is
simply to make the fcntl syscall to set the close-on-exec flag
immediately after open returns.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
since there is no easy way to detect whether open honored or ignored
the O_CLOEXEC flag, the optimal solution to providing a fallback is
simply to make the fcntl syscall to set the close-on-exec flag
immediately after open returns.
</pre>
</div>
</content>
</entry>
<entry>
<title>optimize SOCK_CLOEXEC fallback for socket function</title>
<updated>2014-06-06T19:30:28+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2014-06-06T19:30:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=1cacc01dc0623ac6443e19580222331812bddbbc'/>
<id>1cacc01dc0623ac6443e19580222331812bddbbc</id>
<content type='text'>
the fcntl function is heavy, so make the syscall directly instead.
also, avoid the code size and runtime overhead of querying the old
flags, since it's reasonable to assume nothing will be set on a
newly-created socket. this code is only used on old kernels which lack
proper atomic close-on-exec support, so future changes that might
invalidate such an assumption do not need to be considered.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the fcntl function is heavy, so make the syscall directly instead.
also, avoid the code size and runtime overhead of querying the old
flags, since it's reasonable to assume nothing will be set on a
newly-created socket. this code is only used on old kernels which lack
proper atomic close-on-exec support, so future changes that might
invalidate such an assumption do not need to be considered.
</pre>
</div>
</content>
</entry>
<entry>
<title>add SOCK_CLOEXEC fallback for socketpair on old kernels</title>
<updated>2014-06-06T19:29:00+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2014-06-06T19:29:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=1d348566e6ab446d9c452b1b93aede74368b6618'/>
<id>1d348566e6ab446d9c452b1b93aede74368b6618</id>
<content type='text'>
as usual, this is non-atomic, but better than producing an error or
failing to set the close-on-exec flag at all.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
as usual, this is non-atomic, but better than producing an error or
failing to set the close-on-exec flag at all.
</pre>
</div>
</content>
</entry>
<entry>
<title>implement dn_comp RFC 1035 domain name compression</title>
<updated>2014-06-06T18:44:54+00:00</updated>
<author>
<name>Szabolcs Nagy</name>
<email>nsz@port70.net</email>
</author>
<published>2014-06-06T18:44:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=abce3156399f30d9b16e198af62af7f7c33fcbe0'/>
<id>abce3156399f30d9b16e198af62af7f7c33fcbe0</id>
<content type='text'>
the input name is validated, the other parameters are assumed to be
valid (the list of already compressed names are not checked for
infinite reference loops or out-of-bound offsets).

names are handled case-sensitively for now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the input name is validated, the other parameters are assumed to be
valid (the list of already compressed names are not checked for
infinite reference loops or out-of-bound offsets).

names are handled case-sensitively for now.
</pre>
</div>
</content>
</entry>
<entry>
<title>accept trailing . and empty domain names</title>
<updated>2014-06-06T18:41:15+00:00</updated>
<author>
<name>Szabolcs Nagy</name>
<email>nsz@port70.net</email>
</author>
<published>2014-06-06T17:20:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=07355f503a9b0a3ab7a051e2931499a4c5898b15'/>
<id>07355f503a9b0a3ab7a051e2931499a4c5898b15</id>
<content type='text'>
trailing . should be accepted in domain name strings by convention
(RFC 1034), host name lookup accepts "." but rejects empty "", res_*
interfaces also accept empty name following existing practice.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
trailing . should be accepted in domain name strings by convention
(RFC 1034), host name lookup accepts "." but rejects empty "", res_*
interfaces also accept empty name following existing practice.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix fd leak in tmpfile when the fdopen operation fails</title>
<updated>2014-06-06T07:17:47+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2014-06-06T07:17:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=60158bff74e478a8031f618ea5e0546bf41a3523'/>
<id>60158bff74e478a8031f618ea5e0546bf41a3523</id>
<content type='text'>
this condition could only happen due to malloc failure.

the fdopen operation is also moved to take place after the unlink to
minimize the window during which a link to the file exists in the
directory table.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
this condition could only happen due to malloc failure.

the fdopen operation is also moved to take place after the unlink to
minimize the window during which a link to the file exists in the
directory table.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix the domain name length limit checks</title>
<updated>2014-06-05T21:06:37+00:00</updated>
<author>
<name>Szabolcs Nagy</name>
<email>nsz@port70.net</email>
</author>
<published>2014-06-05T20:52:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=2abb70c302efe46dfd8fd9e1d64fa00f1376f428'/>
<id>2abb70c302efe46dfd8fd9e1d64fa00f1376f428</id>
<content type='text'>
A domain name is at most 255 bytes long (RFC 1035), but the string
representation is two bytes smaller so the strlen maximum is 253.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A domain name is at most 255 bytes long (RFC 1035), but the string
representation is two bytes smaller so the strlen maximum is 253.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix multiple validation issues in dns response label parsing</title>
<updated>2014-06-05T21:01:46+00:00</updated>
<author>
<name>Szabolcs Nagy</name>
<email>nsz@port70.net</email>
</author>
<published>2014-06-05T20:32:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=b3d9e0b94ea73c68ef4169ec82c898ce59a4e30a'/>
<id>b3d9e0b94ea73c68ef4169ec82c898ce59a4e30a</id>
<content type='text'>
Due to an error introduced in commit fcc522c92335783293ac19df318415cd97fbf66b,
checking of the remaining output buffer space was not performed correctly,
allowing malformed input to write past the end of the buffer.

In addition, the loop detection logic failed to account for the possibility
of infinite loops with no output, which would hang the function.

The output size is now limited more strictly so only names with valid length
are accepted.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Due to an error introduced in commit fcc522c92335783293ac19df318415cd97fbf66b,
checking of the remaining output buffer space was not performed correctly,
allowing malformed input to write past the end of the buffer.

In addition, the loop detection logic failed to account for the possibility
of infinite loops with no output, which would hang the function.

The output size is now limited more strictly so only names with valid length
are accepted.
</pre>
</div>
</content>
</entry>
</feed>
