<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libssl/bs_cbb.c, branch OPENBSD_7_9</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2024-06-22T15:25:06+00:00</updated>
<entry>
<title>Provide CBB_add_u32_length_prefixed().</title>
<updated>2024-06-22T15:25:06+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2024-06-22T15:25:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bdceef815e1722d0d26b681122064e8052c52a32'/>
<id>urn:sha1:bdceef815e1722d0d26b681122064e8052c52a32</id>
<content type='text'>
This is needed for an upcoming change in libcrypto.

ok tb@
</content>
</entry>
<entry>
<title>sync inclusion of &lt;stdlib.h&gt; from libcrypto</title>
<updated>2024-05-25T15:14:26+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-05-25T15:14:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=fe75084dd7139a78b6c93ce1e0207e117ac23ac9'/>
<id>urn:sha1:fe75084dd7139a78b6c93ce1e0207e117ac23ac9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make CBB_finish() fail if *out_data is not NULL</title>
<updated>2022-07-07T17:12:15+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-07-07T17:12:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=34eec6251e6fb513bc4e584343e9fcef3d6ccadf'/>
<id>urn:sha1:34eec6251e6fb513bc4e584343e9fcef3d6ccadf</id>
<content type='text'>
Contrary to CBS_stow(), CBB_finish() will leak, so ensure we fail if
*out_data is populated.

Discussed with &amp; ok jsing
</content>
</entry>
<entry>
<title>Provide CBB_add_u64()</title>
<updated>2022-01-06T14:30:30+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2022-01-06T14:30:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=dc2019bb04cf83870783700175f5da701927a174'/>
<id>urn:sha1:dc2019bb04cf83870783700175f5da701927a174</id>
<content type='text'>
Prompted by and ok tb@
</content>
</entry>
<entry>
<title>Fix formatting of multi-line license comment per style(9).</title>
<updated>2021-05-16T10:58:27+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-05-16T10:58:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=add46b7b31275c870c2b1020543cdd011ac8ff5e'/>
<id>urn:sha1:add46b7b31275c870c2b1020543cdd011ac8ff5e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove unnecessary includes from the bytestring APIs.</title>
<updated>2021-05-16T08:32:49+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2021-05-16T08:32:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=15128d93b721effe91be90a07449f149ab5e7697'/>
<id>urn:sha1:15128d93b721effe91be90a07449f149ab5e7697</id>
<content type='text'>
The bytestring APIs are self contained, hence including openssl headers
here is unnecessary.
</content>
</entry>
<entry>
<title>whitespace</title>
<updated>2021-01-04T19:19:12+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-01-04T19:19:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3ead4a9d05c338223a54f0489fcdf4b51fd071e9'/>
<id>urn:sha1:3ead4a9d05c338223a54f0489fcdf4b51fd071e9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Avoid memset() before memcpy() for CBB_add_bytes().</title>
<updated>2020-09-16T05:52:04+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-09-16T05:52:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=cdfaa096c0627eb79cb2944893d873d3aa00f2fc'/>
<id>urn:sha1:cdfaa096c0627eb79cb2944893d873d3aa00f2fc</id>
<content type='text'>
CBB_add_bytes() calls CBB_add_space(), which now explicitly zeros memory
to avoid information leaks. However CBB_add_bytes() calls memcpy() for the
same memory region, so the memset() is unnecessary. Avoid this by inlining
part of CBB_add_space() rather than calling it directly.

ok beck@ tb@
</content>
</entry>
<entry>
<title>Ensure that CBB_add_space() always provides zeroed memory.</title>
<updated>2020-03-13T15:54:34+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-03-13T15:54:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=13b054b349060ec4ab6863bdeb5c18f1992b6e5e'/>
<id>urn:sha1:13b054b349060ec4ab6863bdeb5c18f1992b6e5e</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:12+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-03-12T17:17:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5bd2365f596fdaf1fd5d5feb218d8a3e4c99a2f1'/>
<id>urn:sha1:5bd2365f596fdaf1fd5d5feb218d8a3e4c99a2f1</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>
</feed>
