<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openssl-new.git/crypto/encode_decode, branch master</title>
<subtitle>github.com: openssl/openssl.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/'/>
<entry>
<title>Coverity 1515953: negative loop bound</title>
<updated>2022-10-14T01:53:02+00:00</updated>
<author>
<name>Pauli</name>
<email>pauli@openssl.org</email>
</author>
<published>2022-10-14T01:53:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=9ab57f29c78d8d69b6ba9c579521594d7170ca44'/>
<id>9ab57f29c78d8d69b6ba9c579521594d7170ca44</id>
<content type='text'>
Reviewed-by: Hugo Landau &lt;hlandau@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Shane Lontis &lt;shane.lontis@oracle.com&gt;
(Merged from https://github.com/openssl/openssl/pull/19413)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-by: Hugo Landau &lt;hlandau@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Shane Lontis &lt;shane.lontis@oracle.com&gt;
(Merged from https://github.com/openssl/openssl/pull/19413)
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve performance of the encoder collection</title>
<updated>2022-10-13T12:23:25+00:00</updated>
<author>
<name>slontis</name>
<email>shane.lontis@oracle.com</email>
</author>
<published>2022-10-04T23:57:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=c3b46409559c18f103ebb2221c6f8af3cd7db00d'/>
<id>c3b46409559c18f103ebb2221c6f8af3cd7db00d</id>
<content type='text'>
Reviewed-by: Richard Levitte &lt;levitte@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Paul Dale &lt;pauli@openssl.org&gt;
Reviewed-by: Hugo Landau &lt;hlandau@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/19344)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-by: Richard Levitte &lt;levitte@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Paul Dale &lt;pauli@openssl.org&gt;
Reviewed-by: Hugo Landau &lt;hlandau@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/19344)
</pre>
</div>
</content>
</entry>
<entry>
<title>Stop raising ERR_R_MALLOC_FAILURE in most places</title>
<updated>2022-10-05T12:02:03+00:00</updated>
<author>
<name>Richard Levitte</name>
<email>levitte@openssl.org</email>
</author>
<published>2022-09-29T11:57:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=e077455e9e57ed4ee4676996b4a9aa11df6327a6'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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)
</pre>
</div>
</content>
</entry>
<entry>
<title>"Reserve" the method store when constructing methods</title>
<updated>2022-07-20T06:28:17+00:00</updated>
<author>
<name>Richard Levitte</name>
<email>levitte@openssl.org</email>
</author>
<published>2022-04-14T15:52:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=e1eafe8c87612a94552e9ad5df56c489cb6f0ff2'/>
<id>e1eafe8c87612a94552e9ad5df56c489cb6f0ff2</id>
<content type='text'>
Introducing the concept of reserving the store where a number of
provided operation methods are to be stored.

This avoids racing when constructing provided methods, which is
especially pertinent when multiple threads are trying to fetch the
same method, or even any implementation for the same given operation
type.

This introduces a |biglock| in OSSL_METHOD_STORE, which is separate
from the |lock| which is used for more internal and finer grained
locking.

Fixes #18152

Reviewed-by: Hugo Landau &lt;hlandau@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/18153)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introducing the concept of reserving the store where a number of
provided operation methods are to be stored.

This avoids racing when constructing provided methods, which is
especially pertinent when multiple threads are trying to fetch the
same method, or even any implementation for the same given operation
type.

This introduces a |biglock| in OSSL_METHOD_STORE, which is separate
from the |lock| which is used for more internal and finer grained
locking.

Fixes #18152

Reviewed-by: Hugo Landau &lt;hlandau@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/18153)
</pre>
</div>
</content>
</entry>
<entry>
<title>Check return value of ossl_parse_property()</title>
<updated>2022-06-06T07:44:53+00:00</updated>
<author>
<name>Tomas Mraz</name>
<email>tomas@openssl.org</email>
</author>
<published>2022-06-02T14:50:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=4fa5ed5ce5c345eaeaec8b86eda265add467f941'/>
<id>4fa5ed5ce5c345eaeaec8b86eda265add467f941</id>
<content type='text'>
Also check if we have d2i_public_key() function pointer.

Fixes https://github.com/openssl/openssl/pull/18355#issuecomment-1144893289

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/18462)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also check if we have d2i_public_key() function pointer.

Fixes https://github.com/openssl/openssl/pull/18355#issuecomment-1144893289

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/18462)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix inadvertent NULL assignments in ternary ops</title>
<updated>2022-06-05T09:09:51+00:00</updated>
<author>
<name>Clemens Lang</name>
<email>cllang@redhat.com</email>
</author>
<published>2022-06-03T11:23:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=1a01e5c29dfaf09af3960b4c8e6ec0f8171eda80'/>
<id>1a01e5c29dfaf09af3960b4c8e6ec0f8171eda80</id>
<content type='text'>
As identified by both clang with a warning and
$&gt; git grep -P '(?&lt;![!=])= NULL \?'

Signed-off-by: Clemens Lang &lt;cllang@redhat.com&gt;
CLA: trivial

Reviewed-by: Dmitry Belyavskiy &lt;beldmit@gmail.com&gt;
Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/18469)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As identified by both clang with a warning and
$&gt; git grep -P '(?&lt;![!=])= NULL \?'

Signed-off-by: Clemens Lang &lt;cllang@redhat.com&gt;
CLA: trivial

Reviewed-by: Dmitry Belyavskiy &lt;beldmit@gmail.com&gt;
Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/18469)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix another decoder mem leak on an error path</title>
<updated>2022-06-02T09:31:12+00:00</updated>
<author>
<name>Matt Caswell</name>
<email>matt@openssl.org</email>
</author>
<published>2022-05-26T10:30:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=da3193976380b8bd697a472025ff9f384cbca7af'/>
<id>da3193976380b8bd697a472025ff9f384cbca7af</id>
<content type='text'>
If pushing the decoder onto a stack fails then we should free the ref
we just created.

Found due to the error report here:
https://github.com/openssl/openssl/pull/18355#issuecomment-1138205688

Reviewed-by: Richard Levitte &lt;levitte@openssl.org&gt;
Reviewed-by: Shane Lontis &lt;shane.lontis@oracle.com&gt;
Reviewed-by: Paul Dale &lt;pauli@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/18411)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If pushing the decoder onto a stack fails then we should free the ref
we just created.

Found due to the error report here:
https://github.com/openssl/openssl/pull/18355#issuecomment-1138205688

Reviewed-by: Richard Levitte &lt;levitte@openssl.org&gt;
Reviewed-by: Shane Lontis &lt;shane.lontis@oracle.com&gt;
Reviewed-by: Paul Dale &lt;pauli@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/18411)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix a decoder mem leak on an error path</title>
<updated>2022-06-02T09:31:12+00:00</updated>
<author>
<name>Matt Caswell</name>
<email>matt@openssl.org</email>
</author>
<published>2022-05-26T10:09:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=9ec9b968f93e4a8e7c90eb1e717f0d7cd4ab722d'/>
<id>9ec9b968f93e4a8e7c90eb1e717f0d7cd4ab722d</id>
<content type='text'>
If an error condition occurs then the the decoder that was up-refed in
ossl_decoder_instance_new can be leaked.

Found due to the error report here:
https://github.com/openssl/openssl/pull/18355#issuecomment-1138205688

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Shane Lontis &lt;shane.lontis@oracle.com&gt;
(Merged from https://github.com/openssl/openssl/pull/18410)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If an error condition occurs then the the decoder that was up-refed in
ossl_decoder_instance_new can be leaked.

Found due to the error report here:
https://github.com/openssl/openssl/pull/18355#issuecomment-1138205688

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Shane Lontis &lt;shane.lontis@oracle.com&gt;
(Merged from https://github.com/openssl/openssl/pull/18410)
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove the _fetch_by_number functions</title>
<updated>2022-05-06T00:38:55+00:00</updated>
<author>
<name>Pauli</name>
<email>pauli@openssl.org</email>
</author>
<published>2022-05-04T04:54:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=16ff70a58cfb5c40197e6a940cf4666226f31b79'/>
<id>16ff70a58cfb5c40197e6a940cf4666226f31b79</id>
<content type='text'>
These functions are unused and untested.  They are also implemented rather
inefficiently.  If we ever needed them in the future, they'd almost surely
need to be rewritten more efficiently.

Fixes #18227

Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/18237)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These functions are unused and untested.  They are also implemented rather
inefficiently.  If we ever needed them in the future, they'd almost surely
need to be rewritten more efficiently.

Fixes #18227

Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/18237)
</pre>
</div>
</content>
</entry>
<entry>
<title>Add method store cache flush and method removal to non-EVP operations</title>
<updated>2022-05-05T13:06:12+00:00</updated>
<author>
<name>Richard Levitte</name>
<email>levitte@openssl.org</email>
</author>
<published>2022-05-04T07:15:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openssl-new.git/commit/?id=32e3c071373280b69be02ba91fc3204495e2e1bf'/>
<id>32e3c071373280b69be02ba91fc3204495e2e1bf</id>
<content type='text'>
evp_method_store_flush() and evp_method_store_remove_all_provided()
only cover EVP operations, but not encoders, decoders and store loaders.
This adds corresponding methods for those as well.  Without this, their
method stores are never cleaned up when the corresponding providers are
deactivated or otherwise modified.

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/18151)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
evp_method_store_flush() and evp_method_store_remove_all_provided()
only cover EVP operations, but not encoders, decoders and store loaders.
This adds corresponding methods for those as well.  Without this, their
method stores are never cleaned up when the corresponding providers are
deactivated or otherwise modified.

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