- Fixed code sharing between rust package and python bindings in
`safe_open` (where possible).
- Added a maximum size for the header (now hardcoded to 100Mo).
A very large JSON header could indeed slow things down effectively
(takes a few seconds to parse). This one is debattable.
- Added a safety check when deserializing the header.
If offsets could overlap, then we could still DOS users because we
could force them into allocating over and over the same buffer,
leading to RAM explosion. This fixes it by checking out that the offset
ranges are contiguous after loading the header.