Re: [Libguestfs] [libnbd PATCH v2 3/6] api: Sanitize sizes larger than INT64_MAX

2023-09-22 Thread Laszlo Ersek
On 9/21/23 22:58, Eric Blake wrote: > Our stable API has always claimed that nbd_get_size() reports a > non-negative value on success, and -1 on failure. While we know of no > existing production server (such as nbdkit, qemu-nbd, nbd-server) that > would advertise a size larger than off_t, the NBD

Re: [Libguestfs] [libnbd PATCH v2 3/6] api: Sanitize sizes larger than INT64_MAX

2023-09-21 Thread Richard W.M. Jones
On Thu, Sep 21, 2023 at 03:58:02PM -0500, Eric Blake wrote: > Our stable API has always claimed that nbd_get_size() reports a > non-negative value on success, and -1 on failure. While we know of no > existing production server (such as nbdkit, qemu-nbd, nbd-server) that > would advertise a size la