Commit 603b06c1c4 for openssl.org
commit 603b06c1c405296c173a851390899e71fcfffd43
Author: Eugene Syromiatnikov <esyr@openssl.org>
Date: Mon Apr 27 11:02:36 2026 +0200
test/recipes/90-test_memfail.t: fix off-by-one error in skip counts
Fixes: 2d6d0831d23f "add a memfail test for x509 operations"
Fixes: 437cde84a7ef "add a handshake memory failure test"
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.foundation>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
MergeDate: Thu Apr 30 06:59:09 2026
(Merged from https://github.com/openssl/openssl/pull/30991)
diff --git a/test/recipes/90-test_memfail.t b/test/recipes/90-test_memfail.t
index f80a479ef6..f89b1b9e1e 100644
--- a/test/recipes/90-test_memfail.t
+++ b/test/recipes/90-test_memfail.t
@@ -78,7 +78,7 @@ plan tests => $total_malloccount;
sub run_memfail_test {
my $skipcount = $_[0];
- my @mallocseq = (1..$_[1]);
+ my @mallocseq = (0..$_[1] - 1);
my @cmd = $_[2];
for my $idx (@mallocseq) {