<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openssl/test/stack_test.c, branch dependabot/github_actions/actions/setup-python-7</title>
<subtitle>TLS/SSL and crypto library.</subtitle>
<id>http://git.bktus.com/gpgfrontend/openssl/atom?h=dependabot%2Fgithub_actions%2Factions%2Fsetup-python-7</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/openssl/atom?h=dependabot%2Fgithub_actions%2Factions%2Fsetup-python-7'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/'/>
<updated>2026-07-04T16:53:19Z</updated>
<entry>
<title>Add stack test for thunked sorted lookup</title>
<updated>2026-07-04T16:53:19Z</updated>
<author>
<name>Mounir IDRASSI</name>
<email>mounir.idrassi@idrix.fr</email>
</author>
<published>2026-04-16T02:07:25Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=c65777dd3c67a7d5ae33ff63cdd3534d36417d9d'/>
<id>urn:sha1:c65777dd3c67a7d5ae33ff63cdd3534d36417d9d</id>
<content type='text'>
Reviewed-by: Milan Broz &lt;mbroz@openssl.org&gt;
Reviewed-by: Paul Dale &lt;paul.dale@oracle.com&gt;
Reviewed-by: Frederik Wedel-Heinen &lt;fwh.openssl@gmail.com&gt;
Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
MergeDate: Sat Jul  4 16:53:24 2026
(Merged from https://github.com/openssl/openssl/pull/30857)
</content>
</entry>
<entry>
<title>preserve stack thunks across sk_TYPE_dup</title>
<updated>2026-06-25T12:12:29Z</updated>
<author>
<name>Nikola Pajkovsky</name>
<email>nikolap@openssl.org</email>
</author>
<published>2026-05-20T06:51:07Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=a1e4bd14e59e62943fe048b944eac894cd0d8489'/>
<id>urn:sha1:a1e4bd14e59e62943fe048b944eac894cd0d8489</id>
<content type='text'>
ensure typed stack duplicates keep their compare, copy, and free thunks so
later operations do not call typed callbacks through erased void * function
pointer signatures.

Signed-off-by: Nikola Pajkovsky &lt;nikolap@openssl.org&gt;

Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
Reviewed-by: Milan Broz &lt;mbroz@openssl.org&gt;
MergeDate: Thu Jun 25 12:12:48 2026
(Merged from https://github.com/openssl/openssl/pull/31523)
</content>
</entry>
<entry>
<title>test/stack_test.c: Change structure SS typedef into TST_SS</title>
<updated>2026-05-29T07:55:16Z</updated>
<author>
<name>Wolfgang Beck</name>
<email>beck.wolfgang@oracle.com</email>
</author>
<published>2026-05-19T01:12:26Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=0c1194718301808d48db78355c03c6f5e884e4a3'/>
<id>urn:sha1:0c1194718301808d48db78355c03c6f5e884e4a3</id>
<content type='text'>
The original name of the structure SS collides with a define set in
a Solaris system header.

Reviewed-by: Dmitry Belyavskiy &lt;beldmit@gmail.com&gt;
Reviewed-by: Saša Nedvědický &lt;sashan@openssl.org&gt;
Reviewed-by: Eugene Syromiatnikov &lt;esyr@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.foundation&gt;
MergeDate: Fri May 29 07:56:28 2026
(Merged from https://github.com/openssl/openssl/pull/31224)
</content>
</entry>
<entry>
<title>stack: use a copy thunk for typed stack deep copies</title>
<updated>2026-05-20T15:53:32Z</updated>
<author>
<name>Nikola Pajkovsky</name>
<email>nikolap@openssl.org</email>
</author>
<published>2026-05-12T06:49:31Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=b1389437f56ace99f2a59a8a78fbf3f69b487d34'/>
<id>urn:sha1:b1389437f56ace99f2a59a8a78fbf3f69b487d34</id>
<content type='text'>
typed safestack wrappers pass type-specific copy callbacks such as
TYPE *(*)(const TYPE *) to OPENSSL_sk_deep_copy().  The generic stack code
then called those callbacks through OPENSSL_sk_copyfunc,
void *(*)(const void *), which is an incompatible function pointer type and
triggers UBSan.

Add an OPENSSL_sk_copyfunc_thunk and store it on typed stacks, mirroring the
existing compare/free thunk pattern.  Generated safestack helpers now install
a per-type copy thunk when constructing a stack, and internal_copy() uses that
thunk when deep-copying typed stacks.  This preserves the generic stack API
while ensuring typed copy callbacks are invoked through their real signature.

Fixes: https://github.com/openssl/project/issues/1951
Signed-off-by: Nikola Pajkovsky &lt;nikolap@openssl.org&gt;

Reviewed-by: Eugene Syromiatnikov &lt;esyr@openssl.org&gt;
Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
MergeDate: Wed May 20 15:53:45 2026
(Merged from https://github.com/openssl/openssl/pull/31151)
</content>
</entry>
<entry>
<title>4.0-POST-CLANG-FORMAT-WEBKIT</title>
<updated>2025-12-09T07:28:19Z</updated>
<author>
<name>Bob Beck</name>
<email>beck@openssl.org</email>
</author>
<published>2025-12-09T07:08:07Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=2fab90bb5e1937f1c2125eab144f7f6c39e70087'/>
<id>urn:sha1:2fab90bb5e1937f1c2125eab144f7f6c39e70087</id>
<content type='text'>
Reviewed-by: Saša Nedvědický &lt;sashan@openssl.org&gt;
Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
Reviewed-by: Nikola Pajkovsky &lt;nikolap@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/29242)
</content>
</entry>
<entry>
<title>Ensure q variable is freed</title>
<updated>2025-09-23T14:34:47Z</updated>
<author>
<name>Nikola Pajkovsky</name>
<email>nikolap@openssl.org</email>
</author>
<published>2025-09-18T06:56:44Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=7ca0240e5b4947f8e451cc10d3967242233ec95b'/>
<id>urn:sha1:7ca0240e5b4947f8e451cc10d3967242233ec95b</id>
<content type='text'>
Fixes: d88c43a64408 ("Ensure that empty or 1 element stacks are always sorted.")
Resolves: https://scan5.scan.coverity.com/#/project-view/65138/10222?selectedIssue=1665465
Signed-off-by: Nikola Pajkovsky &lt;nikolap@openssl.org&gt;

Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
Reviewed-by: Kurt Roeckx &lt;kurt@roeckx.be&gt;
Reviewed-by: Paul Dale &lt;ppzgs1@gmail.com&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/28596)
</content>
</entry>
<entry>
<title>Don't clear is_sorted unconditionally on OPENSSL_sk_insert()</title>
<updated>2025-09-17T21:30:23Z</updated>
<author>
<name>Bob Beck</name>
<email>beck@openssl.org</email>
</author>
<published>2025-09-12T18:08:02Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=a7540121b5ff0d42333d563bb16ee74bf466bb75'/>
<id>urn:sha1:a7540121b5ff0d42333d563bb16ee74bf466bb75</id>
<content type='text'>
If we have a comparison function, and the array was sorted,
check to see if we are inserting in the correct location.
if so do not clear is_sorted.

This allows for element locations found with OPENSSL_sk_find_ex
to be used to insert elements in the correct location and preserve
the sorting order without the need to sort the stack again.

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Paul Dale &lt;ppzgs1@gmail.com&gt;
(Merged from https://github.com/openssl/openssl/pull/28533)
</content>
</entry>
<entry>
<title>Ensure that empty or 1 element stacks are always sorted.</title>
<updated>2025-09-17T08:09:39Z</updated>
<author>
<name>Bob Beck</name>
<email>beck@openssl.org</email>
</author>
<published>2025-09-10T17:43:01Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=d88c43a64408616572941e5d0b127194d80f562f'/>
<id>urn:sha1:d88c43a64408616572941e5d0b127194d80f562f</id>
<content type='text'>
Matt noticed "It's kind of weird that we are forced to call sort on
a newly created and empty stack. It feels like an empty stack should
have the "sorted" flag by default on creation"

I am incluined to agree. This change ensures tht empty or 1 element
stacks are marked as sorted, as per the existing comment in the
file.

Since this involved changing the various duplication routines to
also ensure that sorted was preserved for such stacks, I also
noticed the duplication code was largely duplicated. I
took the opportunity to deduplicate the duplication code while
making these changes.

Reviewed-by: Matt Caswell &lt;matt@openssl.org&gt;
Reviewed-by: Paul Dale &lt;ppzgs1@gmail.com&gt;
(Merged from https://github.com/openssl/openssl/pull/28509)
</content>
</entry>
<entry>
<title>Copyright year updates</title>
<updated>2025-09-02T13:05:45Z</updated>
<author>
<name>openssl-machine</name>
<email>openssl-machine@openssl.org</email>
</author>
<published>2025-09-02T13:05:45Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=e66332418f84144478df43df91cf4cedf412fc85'/>
<id>urn:sha1:e66332418f84144478df43df91cf4cedf412fc85</id>
<content type='text'>
Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
Reviewed-by: Saša Nedvědický &lt;sashan@openssl.org&gt;
Release: yes
</content>
</entry>
<entry>
<title>test/stack_test.c: check sk_sint_push result in test_int_stack</title>
<updated>2025-08-19T18:47:54Z</updated>
<author>
<name>Eugene Syromiatnikov</name>
<email>esyr@openssl.org</email>
</author>
<published>2025-08-12T13:32:15Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=257ac1279877f05a997c76f58fc0c7af08e02718'/>
<id>urn:sha1:257ac1279877f05a997c76f58fc0c7af08e02718</id>
<content type='text'>
coverity complains about possible double free, which does not seem
to be the case with the current implementation, but it still
would be nice to check and reacto on unexpected sk_sint_push result.

Complements: 9837496142cf "Unit tests for crypto/stack."
Resolves: https://scan5.scan.coverity.com/#/project-view/65249/10222?selectedIssue=1662046
Related: https://github.com/openssl/project/issues/1317
Signed-off-by: Eugene Syromiatnikov &lt;esyr@openssl.org&gt;

Reviewed-by: Tomas Mraz &lt;tomas@openssl.org&gt;
Reviewed-by: Shane Lontis &lt;shane.lontis@oracle.com&gt;
Reviewed-by: Neil Horman &lt;nhorman@openssl.org&gt;
(Merged from https://github.com/openssl/openssl/pull/28238)
</content>
</entry>
</feed>
