<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/win32/inet_pton.c, branch zstd</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=zstd</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=zstd'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2025-05-26T13:35:04+00:00</updated>
<entry>
<title>win32: update inet_pton(3) implementation</title>
<updated>2025-05-26T13:35:04+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2025-05-26T13:35:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=3206c6d60caae5dec3d7a7b8131a3aa256d84631'/>
<id>urn:sha1:3206c6d60caae5dec3d7a7b8131a3aa256d84631</id>
<content type='text'>
Apply musl commit 7e13e5ae (inet_pton: fix uninitialized memory
use for IPv4-mapped IPv6 addresses).

  When a dot is encountered, the loop counter is incremented before
  exiting the loop, but the corresponding ip array element is left
  uninitialized, so the subsequent memmove (if "::" was seen) and the
  loop copying ip to the output buffer will operate on an uninitialized
  uint16_t.

  The uninitialized data never directly influences the control flow and
  is overwritten on successful return by the second half of the parsed
  IPv4 address. But it's better to fix this to avoid unexpected
  transformations by a sufficiently smart compiler and reports from
  UB-detection tools.

Adds 16 bytes.
</content>
</entry>
<entry>
<title>win32: use inet_pton() from musl</title>
<updated>2021-09-03T12:48:10+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-09-03T12:48:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=dbde555df62c7a574993424c7162cd5ba2250433'/>
<id>urn:sha1:dbde555df62c7a574993424c7162cd5ba2250433</id>
<content type='text'>
Saves 88 bytes.
</content>
</entry>
<entry>
<title>win32: tailor inet_pton.c for use in busybox-w32</title>
<updated>2018-02-22T09:22:23+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2018-02-22T09:22:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=bd4bcdbd66163a0f2132ba386dd575fdfbf6f6d7'/>
<id>urn:sha1:bd4bcdbd66163a0f2132ba386dd575fdfbf6f6d7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>win32: import inet_pton.c from ISC BIND</title>
<updated>2018-02-22T09:01:23+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2018-02-22T09:01:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b407c7256674c12c3d81fa11b01b5739eccd43dd'/>
<id>urn:sha1:b407c7256674c12c3d81fa11b01b5739eccd43dd</id>
<content type='text'>
The copy of inet_pton.c imported from gnulib was licensed under
GPL3 which is incompatible with the GPL2-only licence of BusyBox.

Import an MPL2-licensed version of this file from ISC BIND git
master as of this date.
</content>
</entry>
<entry>
<title>mingw: enable support for IPv6</title>
<updated>2015-07-15T13:24:23+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2015-07-15T13:24:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=9fe16f6102d8ab907c056c484988057904092c06'/>
<id>urn:sha1:9fe16f6102d8ab907c056c484988057904092c06</id>
<content type='text'>
Import inet_pton from gnulib and enable IPv6 support by default.
</content>
</entry>
</feed>
