From a0a767665dc33b52b3e269753bfd9bbca4f396ac Mon Sep 17 00:00:00 2001 From: doug Date: Sun, 25 Oct 2015 20:15:06 +0000 Subject: [PATCH] Change test to use length 128 (shortest long-form encoding). From BoringSSL commit: d13a5e15d4e4eb51513be665306a2beba39869df --- regress/lib/libssl/bytestring/bytestringtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/lib/libssl/bytestring/bytestringtest.c b/regress/lib/libssl/bytestring/bytestringtest.c index 808fd0cc873..52752699020 100644 --- a/regress/lib/libssl/bytestring/bytestringtest.c +++ b/regress/lib/libssl/bytestring/bytestringtest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bytestringtest.c,v 1.9 2015/07/18 21:57:00 bcook Exp $ */ +/* $OpenBSD: bytestringtest.c,v 1.10 2015/10/25 20:15:06 doug Exp $ */ /* * Copyright (c) 2014, Google Inc. * @@ -138,7 +138,7 @@ test_get_asn1(void) static const uint8_t kData2[] = {0x30, 3, 1, 2}; static const uint8_t kData3[] = {0x30, 0x80}; static const uint8_t kData4[] = {0x30, 0x81, 1, 1}; - static const uint8_t kData5[] = {0x30, 0x82, 0, 1, 1}; + static const uint8_t kData5[4 + 0x80] = {0x30, 0x82, 0, 0x80}; static const uint8_t kData6[] = {0xa1, 3, 0x4, 1, 1}; static const uint8_t kData7[] = {0xa1, 3, 0x4, 2, 1}; static const uint8_t kData8[] = {0xa1, 3, 0x2, 1, 1}; -- 2.20.1