<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openssl/crypto/stack, branch openssl-3.3.1</title>
<subtitle>TLS/SSL and crypto library.</subtitle>
<id>http://git.bktus.com/gpgfrontend/openssl/atom?h=openssl-3.3.1</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/openssl/atom?h=openssl-3.3.1'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/'/>
<updated>2024-03-20T12:07:54Z</updated>
<entry>
<title>Copyright year updates</title>
<updated>2024-03-20T12:07:54Z</updated>
<author>
<name>Richard Levitte</name>
<email>levitte@openssl.org</email>
</author>
<published>2024-03-20T12:07:54Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=0ce7d1f355c1240653e320a3f6f8109c1f05f8c0'/>
<id>urn:sha1:0ce7d1f355c1240653e320a3f6f8109c1f05f8c0</id>
<content type='text'>
Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
Release: yes
</content>
</entry>
<entry>
<title>Make OPENSSL_sk_push return only 0 or 1</title>
<updated>2024-01-04T13:51:48Z</updated>
<author>
<name>Tomas Mraz</name>
<email>tomas@openssl.org</email>
</author>
<published>2023-12-04T10:16:45Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=98d6016afec4c0bc7bb8f33b5061beb8528cc74a'/>
<id>urn:sha1:98d6016afec4c0bc7bb8f33b5061beb8528cc74a</id>
<content type='text'>
Most of the callers do not actually check for
the special -1 return condition because they do not
pass NULL to it. It is also extremely improbable that
any code depends on this -1 return value in this condition
so it can be safely changed to 0 return.

Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
Reviewed-by: Ben Kaduk &lt;kaduk@mit.edu&gt;
(Merged from https://github.com/openssl/openssl/pull/22930)
</content>
</entry>
<entry>
<title>Copyright year updates</title>
<updated>2023-09-07T08:59:15Z</updated>
<author>
<name>Matt Caswell</name>
<email>matt@openssl.org</email>
</author>
<published>2023-09-07T08:59:15Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=da1c088f599af3755aaeed1c447a39621ef12e1f'/>
<id>urn:sha1:da1c088f599af3755aaeed1c447a39621ef12e1f</id>
<content type='text'>
Reviewed-by: Richard Levitte &lt;levitte@openssl.org&gt;
Release: yes
</content>
</entry>
<entry>
<title>stack: fix searching when the stack isn't sorted.</title>
<updated>2023-04-28T07:24:06Z</updated>
<author>
<name>Pauli</name>
<email>pauli@openssl.org</email>
</author>
<published>2023-04-20T06:04:10Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=eb0935fd21220708e4321374380db497e9c5ecdf'/>
<id>urn:sha1:eb0935fd21220708e4321374380db497e9c5ecdf</id>
<content type='text'>
More specifically, don't sort the stack when searching when it isn't sorted.
This avoids a race condition.

Fixes #20135

Reviewed-by: Tim Hudson &lt;tjh@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/20782)
</content>
</entry>
<entry>
<title>Errors raised from OPENSSL_sk_set should have ERR_LIB_CRYPTO</title>
<updated>2022-10-21T16:02:35Z</updated>
<author>
<name>Tomas Mraz</name>
<email>tomas@openssl.org</email>
</author>
<published>2022-10-13T11:05:20Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=3a09dfb4f9aace93d2c20d6d1b4968cc583884d6'/>
<id>urn:sha1:3a09dfb4f9aace93d2c20d6d1b4968cc583884d6</id>
<content type='text'>
Reviewed-by: Todd Short &lt;todd.short@me.com&gt;
Reviewed-by: Paul Dale &lt;pauli@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/19400)
</content>
</entry>
<entry>
<title>stack: Do not add error if pop/shift/value accesses outside of the stack</title>
<updated>2022-10-21T16:02:35Z</updated>
<author>
<name>Tomas Mraz</name>
<email>tomas@openssl.org</email>
</author>
<published>2022-10-12T08:36:20Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=a8086e6bfc37355626393751a94bc5c92df7e9d3'/>
<id>urn:sha1:a8086e6bfc37355626393751a94bc5c92df7e9d3</id>
<content type='text'>
This partially reverts commit 30eba7f35983a917f1007bce45040c0af3442e42.
This is legitimate use of the stack functions and no error
should be reported apart from the NULL return value.

Fixes #19389

Reviewed-by: Todd Short &lt;todd.short@me.com&gt;
Reviewed-by: Paul Dale &lt;pauli@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/19400)
</content>
</entry>
<entry>
<title>Stop raising ERR_R_MALLOC_FAILURE in most places</title>
<updated>2022-10-05T12:02:03Z</updated>
<author>
<name>Richard Levitte</name>
<email>levitte@openssl.org</email>
</author>
<published>2022-09-29T11:57:34Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=e077455e9e57ed4ee4676996b4a9aa11df6327a6'/>
<id>urn:sha1:e077455e9e57ed4ee4676996b4a9aa11df6327a6</id>
<content type='text'>
Since OPENSSL_malloc() and friends report ERR_R_MALLOC_FAILURE, and
at least handle the file name and line number they are called from,
there's no need to report ERR_R_MALLOC_FAILURE where they are called
directly, or when SSLfatal() and RLAYERfatal() is used, the reason
`ERR_R_MALLOC_FAILURE` is changed to `ERR_R_CRYPTO_LIB`.

There were a number of places where `ERR_R_MALLOC_FAILURE` was reported
even though it was a function from a different sub-system that was
called.  Those places are changed to report ERR_R_{lib}_LIB, where
{lib} is the name of that sub-system.
Some of them are tricky to get right, as we have a lot of functions
that belong in the ASN1 sub-system, and all the `sk_` calls or from
the CRYPTO sub-system.

Some extra adaptation was necessary where there were custom OPENSSL_malloc()
wrappers, and some bugs are fixed alongside these changes.

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Hugo Landau &lt;hlandau@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/19301)
</content>
</entry>
<entry>
<title>stack.c: add missing direct error reporting and improve coding style</title>
<updated>2022-09-16T08:07:15Z</updated>
<author>
<name>Dr. David von Oheimb</name>
<email>David.von.Oheimb@siemens.com</email>
</author>
<published>2022-08-07T05:08:28Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=30eba7f35983a917f1007bce45040c0af3442e42'/>
<id>urn:sha1:30eba7f35983a917f1007bce45040c0af3442e42</id>
<content type='text'>
Doing so, had to fix sloppiness in using the stack API in crypto/conf/conf_def.c,
ssl/ssl_ciph.c, ssl/statem/statem_srvr.c, and mostly in test/helpers/ssltestlib.c.

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Shane Lontis &lt;shane.lontis@oracle.com&gt;
Reviewed-by: David von Oheimb &lt;david.von.oheimb@siemens.com&gt;
(Merged from https://github.com/openssl/openssl/pull/18918)
</content>
</entry>
<entry>
<title>Fix Coverity 1493746: constant expression result</title>
<updated>2021-11-16T22:15:35Z</updated>
<author>
<name>Pauli</name>
<email>pauli@openssl.org</email>
</author>
<published>2021-11-14T22:35:27Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=7cc5738a561933e38ad0e724f4df7b503c3c8e73'/>
<id>urn:sha1:7cc5738a561933e38ad0e724f4df7b503c3c8e73</id>
<content type='text'>
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/17034)
</content>
</entry>
<entry>
<title>stack: increase the reallocation ratio</title>
<updated>2021-11-12T09:49:46Z</updated>
<author>
<name>Pauli</name>
<email>pauli@openssl.org</email>
</author>
<published>2021-11-10T05:40:00Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=8347bfa04fc62dcf684b8a43905709fa18f6a3b1'/>
<id>urn:sha1:8347bfa04fc62dcf684b8a43905709fa18f6a3b1</id>
<content type='text'>
This change increases the reallocation ratio from 1.5 to 1.6.

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/16930)
</content>
</entry>
</feed>
