<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/glibc.git/include/arpa/inet.h, branch master</title>
<subtitle>GNU C Library
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/glibc.git/atom?h=master</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/'/>
<updated>2025-11-21T16:13:11Z</updated>
<entry>
<title>Enable --enable-fortify-source with clang</title>
<updated>2025-11-21T16:13:11Z</updated>
<author>
<name>Adhemerval Zanella</name>
<email>adhemerval.zanella@linaro.org</email>
</author>
<published>2025-11-20T18:30:11Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=8d26bed1ebcefd5d2059fd7d7462bdf6593d77fa'/>
<id>urn:sha1:8d26bed1ebcefd5d2059fd7d7462bdf6593d77fa</id>
<content type='text'>
clang generates internal calls for some _chk symbol, so add internal
aliases for them, and stub some with rtld-stubbed-symbols to avoid
ld.so linker issues.

Reviewed-by: Sam James &lt;sam@gentoo.org&gt;
</content>
</entry>
<entry>
<title>Add _FORTIFY_SOURCE support for inet_pton</title>
<updated>2025-03-24T18:43:03Z</updated>
<author>
<name>Aaron Merey</name>
<email>amerey@redhat.com</email>
</author>
<published>2025-03-20T17:13:33Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=e3a6e85d67f1a48dec3e2557a83d6ce1544a58cb'/>
<id>urn:sha1:e3a6e85d67f1a48dec3e2557a83d6ce1544a58cb</id>
<content type='text'>
Add function __inet_pton_chk which calls __chk_fail when the size of
argument dst is too small.   inet_pton is redirected to __inet_pton_chk
or __inet_pton_warn when _FORTIFY_SOURCE is &gt; 0.

Also add tests to debug/tst-fortify.c, update the abilist with
__inet_pton_chk and mention inet_pton fortification in maint.texi.

Co-authored-by: Frédéric Bérat &lt;fberat@redhat.com&gt;
Reviewed-by: Florian Weimer &lt;fweimer@redhat.com&gt;
</content>
</entry>
<entry>
<title>Add _FORTIFY_SOURCE support for inet_ntop</title>
<updated>2025-03-21T08:35:42Z</updated>
<author>
<name>Frédéric Bérat</name>
<email>fberat@redhat.com</email>
</author>
<published>2025-03-07T17:16:30Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=090dfa40a5e46f7c0e4d6e8369bcbbd51267625f'/>
<id>urn:sha1:090dfa40a5e46f7c0e4d6e8369bcbbd51267625f</id>
<content type='text'>
- Create the __inet_ntop_chk routine that verifies that the builtin size
of the destination buffer is at least as big as the size given by the
user.
- Redirect calls from inet_ntop to __inet_ntop_chk or __inet_ntop_warn
- Update the abilist for this new routine
- Update the manual to mention the new fortification

Reviewed-by: Florian Weimer &lt;fweimer@redhat.com&gt;
</content>
</entry>
<entry>
<title>Add missing guards in include/arpa/inet.h</title>
<updated>2025-03-21T08:35:36Z</updated>
<author>
<name>Frédéric Bérat</name>
<email>fberat@redhat.com</email>
</author>
<published>2025-03-11T09:40:11Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=3cdb99d8bb9d0008b2b297080e61d6c10dd66cc8'/>
<id>urn:sha1:3cdb99d8bb9d0008b2b297080e61d6c10dd66cc8</id>
<content type='text'>
Add the missing guards in the header, similarly to other headers at the
same level

Reviewed-by: Florian Weimer &lt;fweimer@redhat.com&gt;
</content>
</entry>
<entry>
<title>Prepare inet_ntop to be fortified</title>
<updated>2025-03-21T08:35:16Z</updated>
<author>
<name>Frédéric Bérat</name>
<email>fberat@redhat.com</email>
</author>
<published>2025-03-07T13:42:26Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=84373ef7b72c9c8ab61ce1fdfd798777715a1a52'/>
<id>urn:sha1:84373ef7b72c9c8ab61ce1fdfd798777715a1a52</id>
<content type='text'>
Rename inet_ntop to __inet_ntop and create the inet_ntop weak alias
based on it in order to prepare for disabling fortification when
available.

Reviewed-by: Florian Weimer &lt;fweimer@redhat.com&gt;
</content>
</entry>
<entry>
<title>inet: Add hidden prototype for __inet_network</title>
<updated>2021-07-07T16:33:52Z</updated>
<author>
<name>Florian Weimer</name>
<email>fweimer@redhat.com</email>
</author>
<published>2021-07-07T16:33:52Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=c4ec8cab07615600dcff90efcc3676855fe84b6d'/>
<id>urn:sha1:c4ec8cab07615600dcff90efcc3676855fe84b6d</id>
<content type='text'>
Reviewed-by: Adhemerval Zanella  &lt;adhemerval.zanella@linaro.org&gt;
</content>
</entry>
<entry>
<title>CVE-2016-10739: getaddrinfo: Fully parse IPv4 address strings [BZ #20018]</title>
<updated>2019-01-21T20:26:03Z</updated>
<author>
<name>Florian Weimer</name>
<email>fweimer@redhat.com</email>
</author>
<published>2019-01-21T20:26:03Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=108bc4049f8ae82710aec26a92ffdb4b439c83fd'/>
<id>urn:sha1:108bc4049f8ae82710aec26a92ffdb4b439c83fd</id>
<content type='text'>
The IPv4 address parser in the getaddrinfo function is changed so that
it does not ignore trailing whitespace and all characters after it.
For backwards compatibility, the getaddrinfo function still recognizes
legacy name syntax, such as 192.000.002.010 interpreted as 192.0.2.8
(octal).

This commit does not change the behavior of inet_addr and inet_aton.
gethostbyname already had additional sanity checks (but is switched
over to the new __inet_aton_exact function for completeness as well).

To avoid sending the problematic query names over DNS, commit
6ca53a2453598804a2559a548a08424fca96434a ("resolv: Do not send queries
for non-host-names in nss_dns [BZ #24112]") is needed.
</content>
</entry>
<entry>
<title>Fix resolver inet_* namespace (bug 17722).</title>
<updated>2014-12-17T18:09:11Z</updated>
<author>
<name>Joseph Myers</name>
<email>joseph@codesourcery.com</email>
</author>
<published>2014-12-17T18:09:11Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=8ac5a76a99e51a91eac9cecbe941fc05ddf11e03'/>
<id>urn:sha1:8ac5a76a99e51a91eac9cecbe941fc05ddf11e03</id>
<content type='text'>
Parts of the resolver brought in by pthreads (at least) use inet_*
functions that aren't in the 1995/6 edition of POSIX that introduced
pthreads (or in one case, use __inet_aton which is then defined in the
same file as non-weak inet_addr).  This patch fixes this by making the
affected functions into weak alias for __inet_* and using those names
in the problematic resolver code.

Tested for x86_64 (testsuite, and that disassembly of installed shared
libraries is unchanged by the patch).

	[BZ #17722]
	* inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
	define as weak alias of __inet_makeaddr.
	* resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
	as weak alias of __inet_addr.
	* resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
	as weak alias of __inet_pton.  Use libc_hidden_weak.
	* include/arpa/inet.h (__inet_pton): Declare.  Use
	libc_hidden_proto.
	(inet_makeaddr): Don't use libc_hidden_proto.
	(__inet_makeaddr): Declare.  Use libc_hidden_proto.
	* resolv/res_init.c (__res_vinit): Use __inet_pton instead of
	inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
	* conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
	Remove variable.
	(test-xfail-POSIX/sched.h/linknamespace): Likewise.
	(test-xfail-POSIX/time.h/linknamespace): Likewise.
</content>
</entry>
<entry>
<title>Add first fixes for conformtest for POSIX2008</title>
<updated>2012-02-27T02:32:56Z</updated>
<author>
<name>Ulrich Drepper</name>
<email>drepper@gmail.com</email>
</author>
<published>2012-02-27T02:32:56Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=d94a4670800de6e8f088b8630ad5142866127980'/>
<id>urn:sha1:d94a4670800de6e8f088b8630ad5142866127980</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove pre-ISO C support</title>
<updated>2012-01-08T04:57:22Z</updated>
<author>
<name>Ulrich Drepper</name>
<email>drepper@gmail.com</email>
</author>
<published>2012-01-08T04:57:22Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/glibc.git/commit/?id=a784e502472fb3a1afa4d01a47c66b52d23e00f6'/>
<id>urn:sha1:a784e502472fb3a1afa4d01a47c66b52d23e00f6</id>
<content type='text'>
No more __const.
</content>
</entry>
</feed>
