]> sigrok.org Git - libsigrok.git/commitdiff
tests: unbreak endianess conversion test routine (too small a buffer)
authorGerhard Sittig <redacted>
Wed, 21 Jul 2021 21:33:23 +0000 (23:33 +0200)
committerGerhard Sittig <redacted>
Wed, 4 Aug 2021 20:10:51 +0000 (22:10 +0200)
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

index f126c470e5b56beae6401dcd7ff13fc483920710..5ef0bab110397914249d85c29fa4e84bc8aa9c74 100644 (file)
@@ -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;