From df98afc6d181953f6c39133c5a6d42630d3869aa Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Wed, 21 Jul 2021 23:33:23 +0200 Subject: [PATCH] tests: unbreak endianess conversion test routine (too small a buffer) Writing four times 48 bits to a buffer that is two times 64 bits will exceed that buffer. Fix an issue introduced in commit 8f87c5284bf0. --- tests/conv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conv.c b/tests/conv.c index f126c470..5ef0bab1 100644 --- a/tests/conv.c +++ b/tests/conv.c @@ -206,7 +206,7 @@ END_TEST START_TEST(test_endian_write_inc) { - uint8_t buff[2 * sizeof(uint64_t)]; + uint8_t buff[3 * sizeof(uint64_t)]; uint8_t *p; size_t l; -- 2.30.2