[Libguestfs] [PATCH nbdkit v2 0/2] Be careful not to leak server heap memory to the client.

Richard W.M. Jones rjones at redhat.com
Tue Apr 23 15:09:38 UTC 2019


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 per-thread buffer for all pread and
pwrite calls which is zeroed whenever it is extended to avoid the heap
memory leak.

Rich.





More information about the Libguestfs mailing list