search for: ocaml_nbdkit_set_pread

Displaying 2 results from an estimated 2 matches for "ocaml_nbdkit_set_pread".

2019 Apr 23
0
[PATCH nbdkit v2 1/2] ocaml: Change pread method to avoid leaking heap memory.
..._plugi external set_can_zero : ('a -> bool) -> unit = "ocaml_nbdkit_set_can_zero" external set_can_fua : ('a -> fua_flag) -> unit = "ocaml_nbdkit_set_can_fua" -external set_pread : ('a -> bytes -> int64 -> flags -> unit) -> unit = "ocaml_nbdkit_set_pread" +external set_pread : ('a -> int32 -> int64 -> flags -> string) -> unit = "ocaml_nbdkit_set_pread" external set_pwrite : ('a -> string -> int64 -> flags -> unit) -> unit = "ocaml_nbdkit_set_pwrite" external set_flush : ('a ->...
2019 Apr 23
4
[PATCH nbdkit v2 0/2] Be careful not to leak server heap memory to the client.
Version 1 was here: https://www.redhat.com/archives/libguestfs/2019-April/msg00144.html Version 2 makes a couple of much larger changes: The OCaml patch changes the API of the pread method so it matches what other language bindings are already doing, ie. get the language plugin to return a newly allocated buffer, check it is long enough, copy out the data. The server patch implements a