Unsafe use of the `Field` macro

Xavier Clerc
2021-11-19T13:41:02Z

The following pattern is likely unsafe

v = alloc_small(...);
Field(v, ...) = expr;

when expr allocates, and netsys_get_custom_ops [1] is based on that pattern.

[1] https://gitlab.com/gerdstolpmann/lib-ocamlnet3/-/blob/master/code/src/netsys/netsys_c_mem.c#L1504