projects
/
libsigrok.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
e24ecab
)
tests: unbreak endianess conversion test routine (too small a buffer)
author
Gerhard Sittig
<redacted>
Wed, 21 Jul 2021 21:33:23 +0000
(23:33 +0200)
committer
Gerhard 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
patch
|
blob
|
blame
|
history
diff --git
a/tests/conv.c
b/tests/conv.c
index f126c470e5b56beae6401dcd7ff13fc483920710..5ef0bab110397914249d85c29fa4e84bc8aa9c74 100644
(file)
--- 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;