You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 5761 Reporter: vouillon Assigned to:@xavierleroy Status: closed (set by @xavierleroy on 2015-12-11T18:19:43Z) Resolution: fixed Priority: high Severity: major OS: Mac OS X Version: 4.00.0 Target version: 4.00.1+dev Fixed in version: 4.00.1+dev Category: otherlibs Related to:#5516 Monitored by:@hcarty
Original bug ID: 5761
Reporter: vouillon
Assigned to: @xavierleroy
Status: closed (set by @xavierleroy on 2015-12-11T18:19:43Z)
Resolution: fixed
Priority: high
Severity: major
OS: Mac OS X
Version: 4.00.0
Target version: 4.00.1+dev
Fixed in version: 4.00.1+dev
Category: otherlibs
Related to: #5516
Monitored by: @hcarty
Bug description
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)
intnat dim[] /[num_dims]/; /* Size in each dimension /
#else
intnat dim[1] /[num_dims]/; / Size in each dimension */
#endif
File attachments
The text was updated successfully, but these errors were encountered: