Re: [Qemu-devel] [PATCH 11/25] qemu-nbd: Fix and improve input verification

2015-03-16 Thread Max Reitz
On 2015-03-11 at 07:30, Paolo Bonzini wrote: On 25/02/2015 19:08, Max Reitz wrote: This patch makes sure the result of strtol() does not overflow (by storing it in long integers instead of plain integers, and by checking errno), allows the user to specify "--discard on" and "--detect-zeroes unm

Re: [Qemu-devel] [PATCH 11/25] qemu-nbd: Fix and improve input verification

2015-03-11 Thread Paolo Bonzini
On 25/02/2015 19:08, Max Reitz wrote: > This patch makes sure the result of strtol() does not overflow (by > storing it in long integers instead of plain integers, and by checking > errno), allows the user to specify "--discard on" and > "--detect-zeroes unmap" in any order and strips the trailin