summaryrefslogtreecommitdiff
path: root/regress/lib/libutil
diff options
context:
space:
mode:
authorrob <rob@cvs.openbsd.org>2019-05-31 22:34:15 +0000
committerrob <rob@cvs.openbsd.org>2019-05-31 22:34:15 +0000
commit5b640f18a26e48d8bc5018252e769356ac2c2544 (patch)
treeecf9d59c39470f5539b8852455bb8b41c19d3e7b /regress/lib/libutil
parent1fb406c97df5f92ae195dd51d71ae3fff8c7afb1 (diff)
Fix edge case tests in long form encoding. Regress failure noticed by Bluhm on
32 bit platforms.
Diffstat (limited to 'regress/lib/libutil')
-rw-r--r--regress/lib/libutil/ber/ber_test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/regress/lib/libutil/ber/ber_test.c b/regress/lib/libutil/ber/ber_test.c
index 5eb74320806..55a02dcf588 100644
--- a/regress/lib/libutil/ber/ber_test.c
+++ b/regress/lib/libutil/ber/ber_test.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ber_test.c,v 1.15 2019/05/12 22:17:25 rob Exp $
+/* $OpenBSD: ber_test.c,v 1.16 2019/05/31 22:34:14 rob Exp $
*/
/*
* Copyright (c) Rob Pierce <rob@openbsd.org>
@@ -274,20 +274,20 @@ struct test_vector test_vectors[] = {
SUCCEED,
0,
"max long form length octets (i.e. 8 bytes)",
- 12,
+ 11,
{
0x02, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x01, 0x01
+ 0x00, 0x01, 0x01
},
},
{
FAIL,
0,
"overflow long form length octets (expected failure)",
- 13,
+ 12,
{
0x02, 0x89, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x01, 0x01
+ 0x00, 0x00, 0x01, 0x01
},
},
{