search for: 14b9803

Displaying 2 results from an estimated 2 matches for "14b9803".

Did you mean: 139803
2019 Apr 23
0
[PATCH nbdkit v2 1/2] ocaml: Change pread method to avoid leaking heap memory.
...uffer returned from pread is too small"); + caml_enter_blocking_section (); + CAMLreturnT (int, -1); + } + + memcpy (buf, String_val (rv), count); caml_enter_blocking_section (); CAMLreturnT (int, 0); diff --git a/plugins/ocaml/NBDKit.ml b/plugins/ocaml/NBDKit.ml index b03ff5a..14b9803 100644 --- a/plugins/ocaml/NBDKit.ml +++ b/plugins/ocaml/NBDKit.ml @@ -65,7 +65,7 @@ type 'a plugin = { can_zero : ('a -> bool) option; can_fua : ('a -> fua_flag) option; - pread : ('a -> bytes -> int64 -> flags -> unit) option; + pread : ('a -> in...
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