artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3441085
)
bio chain test: fix inconsequential off-by-one
author
tb
<tb@openbsd.org>
Thu, 8 Dec 2022 18:34:00 +0000
(18:34 +0000)
committer
tb
<tb@openbsd.org>
Thu, 8 Dec 2022 18:34:00 +0000
(18:34 +0000)
regress/lib/libcrypto/bio/bio_chain.c
patch
|
blob
|
history
diff --git
a/regress/lib/libcrypto/bio/bio_chain.c
b/regress/lib/libcrypto/bio/bio_chain.c
index
1dbcdd0
..
2fb6e7f
100644
(file)
--- a/
regress/lib/libcrypto/bio/bio_chain.c
+++ b/
regress/lib/libcrypto/bio/bio_chain.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: bio_chain.c,v 1.
6 2022/12/08 18:33:2
0 tb Exp $ */
+/* $OpenBSD: bio_chain.c,v 1.
7 2022/12/08 18:34:0
0 tb Exp $ */
/*
* Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
*
@@
-338,7
+338,7
@@
link_chains_at(size_t i, size_t j, int use_bio_push)
memset(A, 0, sizeof(A));
memset(B, 0, sizeof(B));
- if (i >
nitems(A) || j >
nitems(B))
+ if (i >
= nitems(A) || j >=
nitems(B))
goto err;
/* Create two linear chains of BIOs. */