Re: [libvirt] [PATCH 0/2] libvirt-rust: Fixing bugs in Stream::{send, recv}

2019-09-20 Thread Martin Kletzander
On Thu, Sep 19, 2019 at 05:48:21AM +, Linus Färnstrand wrote: Hi, Fixing memory soundness bugs in Stream::recv, and other bugs in both Stream::recv and Stream::send. The method Stream::recv takes a size argument that it passes on as the nbytes argument to virStreamRecv. The problem is that

[libvirt] [PATCH 0/2] libvirt-rust: Fixing bugs in Stream::{send, recv}

2019-09-19 Thread Linus Färnstrand
Hi, Fixing memory soundness bugs in Stream::recv, and other bugs in both Stream::recv and Stream::send. The method Stream::recv takes a size argument that it passes on as the nbytes argument to virStreamRecv. The problem is that the corresponding data pointer points to a local stack allocated