Skip to content
Snippets Groups Projects
Commit 23ca9828 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Fix buffer overflow in ./test/unit/bit.c

parent f8d1ccc3
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ test_index(void)
{
header();
int indexes[sizeof(int64_t) * CHAR_BIT];
int indexes[sizeof(int64_t) * CHAR_BIT + 1];
for (size_t i = 0; i < sizeof(vals) / sizeof(vals[0]); i++) {
uint64_t val64 = vals[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment