From 5b640f18a26e48d8bc5018252e769356ac2c2544 Mon Sep 17 00:00:00 2001 From: rob Date: Fri, 31 May 2019 22:34:15 +0000 Subject: Fix edge case tests in long form encoding. Regress failure noticed by Bluhm on 32 bit platforms. --- regress/lib/libutil/ber/ber_test.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'regress/lib/libutil') 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 @@ -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 }, }, { -- cgit v1.2.3