<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openssl/test/mfail, branch master</title>
<subtitle>TLS/SSL and crypto library.</subtitle>
<id>http://git.bktus.com/gpgfrontend/openssl/atom?h=master</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/openssl/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/'/>
<updated>2026-07-29T17:02:10Z</updated>
<entry>
<title>Remove remaining atoi()/atol() calls</title>
<updated>2026-07-29T17:02:10Z</updated>
<author>
<name>Mounir IDRASSI</name>
<email>mounir.idrassi@idrix.fr</email>
</author>
<published>2026-06-25T13:09:30Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=833efe31fc163fb6216d6406396168cb87cea403'/>
<id>urn:sha1:833efe31fc163fb6216d6406396168cb87cea403</id>
<content type='text'>
Remove the remaining direct atoi()/atol() uses across apps, libcrypto,
libssl, providers, demos and tests, and route the replacements through
checked helpers instead of open-coding the conversion at each call site:

  - apps use the existing opt_int()/opt_long()/opt_int_arg() parsers;
  - libcrypto and provider code use the new internal ossl_strtol()/
    ossl_strtoint() helpers, a checked (and, for ossl_strtoint(),
    narrowing) signed counterpart to the public OPENSSL_strtoul();
  - libssl, demos and tests use OPENSSL_strtoul(); the test code shares
    a single test_strtoint() helper rather than repeating the bound check
    and cast per file;
  - unsigned values use OPENSSL_strtoul(), with call-site-specific range
    checks before narrowing where the destination type requires it.

Reject conversion failures and narrow through the helpers rather than
acting on garbage, and preserve the signed RSA-PSS saltlen sentinels
while rejecting invalid numeric strings. Add regression coverage for the
invalid RSA-PSS saltlen string path.

Fixes #8216

Assisted-by: OpenCode:GLM-5.2

Reviewed-by: Tom Cosgrove &lt;tom.cosgrove@arm.com&gt;
Reviewed-by: Tim Hudson &lt;tjh@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.foundation&gt;
MergeDate: Wed Jul 29 17:02:18 2026
(Merged from https://github.com/openssl/openssl/pull/31731)
</content>
</entry>
<entry>
<title>mfail: add sampled and count-only modes to test driver</title>
<updated>2026-07-13T09:43:40Z</updated>
<author>
<name>Jakub Zelenka</name>
<email>jakub.zelenka@openssl.foundation</email>
</author>
<published>2026-06-29T20:46:21Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=4b8fece0f1bc9bcc693773f721fbb4acadc1ad43'/>
<id>urn:sha1:4b8fece0f1bc9bcc693773f721fbb4acadc1ad43</id>
<content type='text'>
Sampled tests cap allocation-failure injection at a fixed number of
sampled points, running exhaustively when the allocation count is below
that.  Non-sampled tests fall back to counting only on non-cached-fetch
builds, where exhaustive injection is impractical.

Assisted-by: Claude:claude-opus-4-8

Reviewed-by: Nikola Pajkovsky &lt;nikolap@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.foundation&gt;
MergeDate: Mon Jul 13 09:43:50 2026
(Merged from https://github.com/openssl/openssl/pull/31780)
</content>
</entry>
<entry>
<title>mfail: do not count allocations for no file when checked</title>
<updated>2026-06-11T15:59:53Z</updated>
<author>
<name>Jakub Zelenka</name>
<email>jakub.zelenka@openssl.foundation</email>
</author>
<published>2026-06-01T21:27:55Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=930906e98bcac8524d13e7aa2ca5f7194166313b'/>
<id>urn:sha1:930906e98bcac8524d13e7aa2ca5f7194166313b</id>
<content type='text'>
This skips some debug and error allocations that cannot be handled

Reviewed-by: Norbert Pocs &lt;norbertp@openssl.org&gt;
Reviewed-by: Tomas Mraz &lt;tomas@openssl.foundation&gt;
MergeDate: Thu Jun 11 16:00:14 2026
(Merged from https://github.com/openssl/openssl/pull/31356)
</content>
</entry>
<entry>
<title>Extend and separate mfail test framework</title>
<updated>2026-05-18T07:23:43Z</updated>
<author>
<name>Jakub Zelenka</name>
<email>jakub.zelenka@openssl.foundation</email>
</author>
<published>2026-05-11T15:57:16Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/openssl/commit/?id=783388e3c68cb3a49b815b5a8c34c0857d698eb4'/>
<id>urn:sha1:783388e3c68cb3a49b815b5a8c34c0857d698eb4</id>
<content type='text'>
Separate the mfail framework so it can be used beyond testutil.
Specifically, this is a step toward using it in fuzzing.

This change also improves the way mfail tests are executed. It first
counts the number of allocations and then iterates through them.

This has a couple of advantages:
- It allows removal of MFAIL_SLOW_TEST by identifying slow tests based
  on the number of allocations.
- It allows non-failing tests to be ignored.

In addition, it adds a new environment variable to print a backtrace on
memory failure.

Reviewed-by: Tomas Mraz &lt;tomas@openssl.foundation&gt;
Reviewed-by: Nikola Pajkovsky &lt;nikolap@openssl.org&gt;
MergeDate: Mon May 18 07:23:52 2026
(Merged from https://github.com/openssl/openssl/pull/31144)
</content>
</entry>
</feed>
