<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libc/net/inet_net_pton.c, branch OPENBSD_7_9_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2022-12-27T17:10:06+00:00</updated>
<entry>
<title>spelling fixes; from paul tagliamonte</title>
<updated>2022-12-27T17:10:06+00:00</updated>
<author>
<name>jmc</name>
<email></email>
</author>
<published>2022-12-27T17:10:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=782cd9477d454b4316ad7055e02ac2c645235d94'/>
<id>urn:sha1:782cd9477d454b4316ad7055e02ac2c645235d94</id>
<content type='text'>
any changes not taken noted on tech, but chiefly here i did not take the
cancelation - cancellation changes;
</content>
</entry>
<entry>
<title>Fix typo in last commit.</title>
<updated>2022-04-13T22:17:33+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2022-04-13T22:17:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=60db7fb12f9323e67b80cf94592799f1e2f931ea'/>
<id>urn:sha1:60db7fb12f9323e67b80cf94592799f1e2f931ea</id>
<content type='text'>
</content>
</entry>
<entry>
<title>inet_net_pton_ipv6: avoid signed vs unsigned comparison</title>
<updated>2022-04-13T16:20:11+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2022-04-13T16:20:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=61604225d69faf376476dc94f932171f19816004'/>
<id>urn:sha1:61604225d69faf376476dc94f932171f19816004</id>
<content type='text'>
Use a temporary variable to store the number of bytes to be copied
(size_t) and also use it as the memcpy(3) length.  Previously we
copied "size" bytes instead of just the necessary number.
OK claudio@ tb@
</content>
</entry>
<entry>
<title>Prevent an overflow in inet_net_pton(3) when the passed in buffer is</title>
<updated>2021-01-19T16:43:44+00:00</updated>
<author>
<name>florian</name>
<email></email>
</author>
<published>2021-01-19T16:43:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=abe4474fe83b5b1572f8cce65830046c69389bd1'/>
<id>urn:sha1:abe4474fe83b5b1572f8cce65830046c69389bd1</id>
<content type='text'>
too small in the AF_INET6 case.
Spotted by Brad House (brad AT brad-house.com) with the c-ares
regression test.

The man page says
     Caution: The dst field should be zeroed before calling inet_net_pton() as
     the function will only fill the number of bytes necessary to encode the
     network number in network byte order.

Which seems to suggest that the function should work if the passed in
storage is big enough to hold the prefix, which might be smaller than
sizeof(in6_addr).

Input &amp; OK tb
</content>
</entry>
<entry>
<title>size is unsigned so using ==0 not &lt;=0 when checking for buffer exhaustion</title>
<updated>2017-03-06T18:16:27+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2017-03-06T18:16:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ff039d35a200670887f77531569823a1886c89af'/>
<id>urn:sha1:ff039d35a200670887f77531569823a1886c89af</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Pull in a change from the bind 8 resolver that fixes a potential</title>
<updated>2017-03-06T18:14:41+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2017-03-06T18:14:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1baf267ffff48256f940f576b0151fa86e33fb0d'/>
<id>urn:sha1:1baf267ffff48256f940f576b0151fa86e33fb0d</id>
<content type='text'>
crash when given a large hex number as part of the dotted quad.
OK deraadt@ jsg@
</content>
</entry>
<entry>
<title>unsigned char changes for ctype</title>
<updated>2013-11-25T18:23:51+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2013-11-25T18:23:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0b04f642b66ed13dd0f15d6b20ceaf9e136bf51f'/>
<id>urn:sha1:0b04f642b66ed13dd0f15d6b20ceaf9e136bf51f</id>
<content type='text'>
re-re-reviewed by krw
</content>
</entry>
<entry>
<title>add support for AF_INET6 to inet_net_pton() and inet_net_ntop()</title>
<updated>2012-06-22T19:13:37+00:00</updated>
<author>
<name>gilles</name>
<email></email>
</author>
<published>2012-06-22T19:13:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6d6064321105bb8e5b7cc1bcab806e373a020595'/>
<id>urn:sha1:6d6064321105bb8e5b7cc1bcab806e373a020595</id>
<content type='text'>
using inet_pton() and inet_ntop() as suggested by claudio

ok claudio@
</content>
</entry>
<entry>
<title>do not overflow for large prefix len (e.g. 2147483649)</title>
<updated>2008-09-01T09:40:43+00:00</updated>
<author>
<name>markus</name>
<email></email>
</author>
<published>2008-09-01T09:40:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=cea1f1802d5e0c74b36add3592291987fd02d807'/>
<id>urn:sha1:cea1f1802d5e0c74b36add3592291987fd02d807</id>
<content type='text'>
report Maksymilian Arciemowicz; ok djm, deraadt
</content>
</entry>
<entry>
<title>zap rcsid.</title>
<updated>2005-08-06T20:30:04+00:00</updated>
<author>
<name>espie</name>
<email></email>
</author>
<published>2005-08-06T20:30:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b8b677406e1ef4804e2003a72385456ce954c219'/>
<id>urn:sha1:b8b677406e1ef4804e2003a72385456ce954c219</id>
<content type='text'>
split functions off res_debug.c so that getnetnamadr.c does not pull it
all when it's used.

okay deraadt@, krw@
</content>
</entry>
</feed>
