Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/dist/openssl off-by-one. from openbsd
details: https://anonhg.NetBSD.org/src/rev/8d343ddcaf7b
branches: trunk
changeset: 552279:8d343ddcaf7b
user: itojun <itojun%NetBSD.org@localhost>
date: Mon Sep 22 22:12:05 2003 +0000
description:
off-by-one. from openbsd
diffstat:
crypto/dist/openssl/apps/openssl.c | 2 +-
crypto/dist/openssl/ssl/ssltest.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 9971be351049 -r 8d343ddcaf7b crypto/dist/openssl/apps/openssl.c
--- a/crypto/dist/openssl/apps/openssl.c Mon Sep 22 21:42:46 2003 +0000
+++ b/crypto/dist/openssl/apps/openssl.c Mon Sep 22 22:12:05 2003 +0000
@@ -163,7 +163,7 @@
goto err;
}
- if (type < 0 || type > CRYPTO_NUM_LOCKS)
+ if (type < 0 || type >= CRYPTO_NUM_LOCKS)
{
errstr = "type out of bounds";
goto err;
diff -r 9971be351049 -r 8d343ddcaf7b crypto/dist/openssl/ssl/ssltest.c
--- a/crypto/dist/openssl/ssl/ssltest.c Mon Sep 22 21:42:46 2003 +0000
+++ b/crypto/dist/openssl/ssl/ssltest.c Mon Sep 22 22:12:05 2003 +0000
@@ -290,7 +290,7 @@
goto err;
}
- if (type < 0 || type > CRYPTO_NUM_LOCKS)
+ if (type < 0 || type >= CRYPTO_NUM_LOCKS)
{
errstr = "type out of bounds";
goto err;
Home |
Main Index |
Thread Index |
Old Index