<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libssl/bs_cbb.c, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libssl/bs_cbb.c?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libssl/bs_cbb.c?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2020-03-13T15:54:34Z</updated>
<entry>
<title>Ensure that CBB_add_space() always provides zeroed memory.</title>
<updated>2020-03-13T15:54:34Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2020-03-13T15:54:34Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=df9bd75ecb19a16fa7255e409838e8f7b5f83d6a'/>
<id>urn:sha1:df9bd75ecb19a16fa7255e409838e8f7b5f83d6a</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>Use calloc() rather than malloc() when allocating initial CBB buffer.</title>
<updated>2020-03-12T17:17:12Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2020-03-12T17:17:12Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=ef0fedfaccf6dd69c5711f72eac34852ce3765c4'/>
<id>urn:sha1:ef0fedfaccf6dd69c5711f72eac34852ce3765c4</id>
<content type='text'>
CBB uses recallocarray() to expand buffers, however was still using
malloc() for the initial buffer, which could result in memory being leaked
in incorrect use cases.

While here also use calloc() to allocate internal structs.

ok inoguchi@ tb@
</content>
</entry>
<entry>
<title>assert.h is often misused. It should not be used in a library</title>
<updated>2019-01-23T22:20:40Z</updated>
<author>
<name>beck</name>
<email>beck@openbsd.org</email>
</author>
<published>2019-01-23T22:20:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=59f5034691dd5f1e6477a5fef44165ce5e808939'/>
<id>urn:sha1:59f5034691dd5f1e6477a5fef44165ce5e808939</id>
<content type='text'>
ok bcook@ jsing@
</content>
</entry>
<entry>
<title>Provide CBB_add_u32(), as needed for an upcoming conversion.</title>
<updated>2018-08-16T18:39:37Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2018-08-16T18:39:37Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=bd94b8a5ba71079048f3d3650b2790eaa03c9243'/>
<id>urn:sha1:bd94b8a5ba71079048f3d3650b2790eaa03c9243</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>Add CBB_discard_child(), which allows for a child CBB to be discarded.</title>
<updated>2017-11-28T16:34:20Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2017-11-28T16:34:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=e87ff5aee1ed2aa92bbba7775549809876763310'/>
<id>urn:sha1:e87ff5aee1ed2aa92bbba7775549809876763310</id>
<content type='text'>
Based on BoringSSL.
</content>
</entry>
<entry>
<title>Clear the child pointer in CBB_cleanup(), so that we have fewer pointers</title>
<updated>2017-08-12T02:50:05Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2017-08-12T02:50:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=9234d803cf1f8edd69c8b69a520341bed495419f'/>
<id>urn:sha1:9234d803cf1f8edd69c8b69a520341bed495419f</id>
<content type='text'>
hanging around to potentially invalid address space.

Discussed with beck@ and doug@
</content>
</entry>
<entry>
<title>Instead of starting a 'zero-sized' CBB at the size of the first addition</title>
<updated>2017-05-07T05:03:41Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2017-05-07T05:03:41Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c99575da5cca28dd1b271ab4a31de8269819ff77'/>
<id>urn:sha1:c99575da5cca28dd1b271ab4a31de8269819ff77</id>
<content type='text'>
to the CBB, then doubling, start with an initial size of 64 bytes. Almost
all uses will exceed this size and we avoid multiple small recallocarray()
calls during the initial usage.

ok beck@
</content>
</entry>
<entry>
<title>Use freezero(3) in the CBB clean up path, since this could hold sensitive</title>
<updated>2017-04-14T15:20:55Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2017-04-14T15:20:55Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=2a6b7f1d923175ad963c8dfa5a8eae46ddf6705a'/>
<id>urn:sha1:2a6b7f1d923175ad963c8dfa5a8eae46ddf6705a</id>
<content type='text'>
information (such as master keys).
</content>
</entry>
<entry>
<title>Switch CBB to use recallocarray() - this ensures that we do not leak</title>
<updated>2017-03-10T15:16:20Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2017-03-10T15:16:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=42ccf58d43caabf6374c54a28c3cd4478216971f'/>
<id>urn:sha1:42ccf58d43caabf6374c54a28c3cd4478216971f</id>
<content type='text'>
secrets via realloc().

ok inoguchi@
</content>
</entry>
<entry>
<title>Make it always safe to call CBB_cleanup() providing that CBB_init() or</title>
<updated>2015-09-01T13:35:39Z</updated>
<author>
<name>jsing</name>
<email>jsing@openbsd.org</email>
</author>
<published>2015-09-01T13:35:39Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=28a1f39829e1b83c6944b9ee8f13e8419262b15d'/>
<id>urn:sha1:28a1f39829e1b83c6944b9ee8f13e8419262b15d</id>
<content type='text'>
CBB_init_fixed() have been attempted.

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