Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Incorrect bigarray custom block size #5761
Original bug ID: 5761
The fix to issue #5516 introduced a bug.
The size of bigarray custom blocks is computed as follows:
sizeof(struct caml_ba_array) + (num_dims - 1) * sizeof(intnat)
(in functions caml_ba_alloc and caml_ba_deserialize).
This is too small by one when a C99's flexible array type is used:
#if (STDC_VERSION >= 199901L)