]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
test/recipes/90-test_memfail.t: fix off-by-one error in skip counts
authorEugene Syromiatnikov <esyr@openssl.org>
Mon, 27 Apr 2026 09:02:36 +0000 (11:02 +0200)
committerNikola Pajkovsky <nikolap@openssl.org>
Thu, 30 Apr 2026 06:58:48 +0000 (06:58 +0000)
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)

test/recipes/90-test_memfail.t

index f80a479ef623e97709bc3d6751f01b43af9d0690..f89b1b9e1ec420fa5bfd46e62235e8b16c0fa152 100644 (file)
@@ -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) {