<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libc, branch OPENBSD_7_1_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_1_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_1_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2022-03-31T17:27:26+00:00</updated>
<entry>
<title>man pages: add missing commas between subordinate and main clauses</title>
<updated>2022-03-31T17:27:26+00:00</updated>
<author>
<name>naddy</name>
<email></email>
</author>
<published>2022-03-31T17:27:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3d8be07546f5ec331a0f851b0ea88212376ebb95'/>
<id>urn:sha1:3d8be07546f5ec331a0f851b0ea88212376ebb95</id>
<content type='text'>
jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.

ok jmc@
</content>
</entry>
<entry>
<title>man pages: add missing word, The foo() ... -&gt; The foo() function ...</title>
<updated>2022-03-29T18:15:52+00:00</updated>
<author>
<name>naddy</name>
<email></email>
</author>
<published>2022-03-29T18:15:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bdf85107fe61cee7a4395de94b85298d6592c8ae'/>
<id>urn:sha1:bdf85107fe61cee7a4395de94b85298d6592c8ae</id>
<content type='text'>
ok jmc@ schwarze@
</content>
</entry>
<entry>
<title>Remove unused ivbits argument from chacha_keysetup to match other</title>
<updated>2022-02-28T21:56:29+00:00</updated>
<author>
<name>dtucker</name>
<email></email>
</author>
<published>2022-02-28T21:56:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3afe4b6f29d7548f490e80402e8bf0ef7229dac1'/>
<id>urn:sha1:3afe4b6f29d7548f490e80402e8bf0ef7229dac1</id>
<content type='text'>
instances in the tree.  ok deraadt@
</content>
</entry>
<entry>
<title>Currently malloc caches a number of free'ed regions up to 128k</title>
<updated>2022-02-26T16:14:42+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2022-02-26T16:14:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b9a07308bf393074d3bc822f5d326959d6620f23'/>
<id>urn:sha1:b9a07308bf393074d3bc822f5d326959d6620f23</id>
<content type='text'>
in size. This cache is indexed by size (in # of pages), so it is
very quick to check.  Some programs allocate and deallocate larger
allocations in a frantic way.  Accomodate those programs by also
keeping a cache of regions between 128k and 2M, in a cache of variable
sized regions.

Tested by many in snaps; ok deraadt@
</content>
</entry>
<entry>
<title>remove please from manual pages</title>
<updated>2022-02-06T00:29:02+00:00</updated>
<author>
<name>jsg</name>
<email></email>
</author>
<published>2022-02-06T00:29:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=330276f39a5e0d5b539d5e8e3e247384f82cbde2'/>
<id>urn:sha1:330276f39a5e0d5b539d5e8e3e247384f82cbde2</id>
<content type='text'>
ok jmc@ sthen@ millert@
</content>
</entry>
<entry>
<title>refer to longindex as an argument, not a field;</title>
<updated>2022-01-06T18:58:24+00:00</updated>
<author>
<name>jmc</name>
<email></email>
</author>
<published>2022-01-06T18:58:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bee4e7d6cff50954827dda49f2f9ca3cc0f570b4'/>
<id>urn:sha1:bee4e7d6cff50954827dda49f2f9ca3cc0f570b4</id>
<content type='text'>
from uwe@netbsd -r1.22

ok millert
</content>
</entry>
<entry>
<title>Update to reflect changes over the last six years</title>
<updated>2021-12-25T01:13:44+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2021-12-25T01:13:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=53c5e2cba9eff61f67c99cd18ea5209d02611f16'/>
<id>urn:sha1:53c5e2cba9eff61f67c99cd18ea5209d02611f16</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lsearch(3): reimplement using lfind(3)</title>
<updated>2021-12-08T22:06:28+00:00</updated>
<author>
<name>cheloha</name>
<email></email>
</author>
<published>2021-12-08T22:06:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8b24559bc32a8fcd130978a513c42659ebf278de'/>
<id>urn:sha1:8b24559bc32a8fcd130978a513c42659ebf278de</id>
<content type='text'>
lsearch(3) is really just lfind(3) with an additional branch to append
the key if lfind(3) fails.  If we get rid of the underlying
linear_base() function and move the search portion into lfind(3) and
the key-copying portion into lsearch(3) we get smaller and simpler
code.

Misc. notes:

- We do not need to keep the historical comment about errno.  lsearch(3)
  is pure computation and does not set errno.  That's really all you
  need to know.  The specification reserves no errors, either.

- We are using lfind(3) internally now, so it switches from
  PROTO_DEPRECATED to PROTO_NORMAL in hidden/search.h and needs
  DEF_WEAK in stdlib/lsearch.c.

With advice from guenther@ on symbol housekeeping in libc.

Thread: https://marc.info/?l=openbsd-tech&amp;m=163885187632449&amp;w=2

ok millert@
</content>
</entry>
<entry>
<title>lsearch(3): append key to array with memmove(3) instead of memcpy(3)</title>
<updated>2021-12-07T04:01:45+00:00</updated>
<author>
<name>cheloha</name>
<email></email>
</author>
<published>2021-12-07T04:01:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=cfc78852fcba382d04261ab49ed38b22e811e417'/>
<id>urn:sha1:cfc78852fcba382d04261ab49ed38b22e811e417</id>
<content type='text'>
If the key overlaps the end of the array, memcpy(3) mutates the key
and copies a corrupted value into the end of the array.

If we use memmove(3) instead we at least end up with a clean copy of
the key at the end of the array.  This is closer to the intended
behavior.

With input from millert@ and deraadt@.

Thread: https://marc.info/?l=openbsd-tech&amp;m=163880307403606&amp;w=2

ok millert@
</content>
</entry>
<entry>
<title>bsearch(3): support arrays with more than INT_MAX elements</title>
<updated>2021-12-02T20:58:01+00:00</updated>
<author>
<name>cheloha</name>
<email></email>
</author>
<published>2021-12-02T20:58:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6cb312a90e0db659665950da1acb2da29d74cadf'/>
<id>urn:sha1:6cb312a90e0db659665950da1acb2da29d74cadf</id>
<content type='text'>
The "lim" variable needs to be a size_t to match nmemb, otherwise we
get undefined behavior when nmemb exceeds INT_MAX.

Prompted by a blog post by Joshua Bloch:

https://ai.googleblog.com/2006/06/extra-extra-read-all-about-it-nearly.html

Fixed by Chris Torek a long time ago:

https://svnweb.freebsd.org/csrg/lib/libc/stdlib/bsearch.c?revision=51742&amp;view=markup

ok millert@
</content>
</entry>
</feed>
