Re: [Qemu-block] [PATCH for-2.12 05/12] luks: Turn another invalid assertion into check

2018-03-21 Thread Daniel P . Berrangé
On Tue, Mar 20, 2018 at 06:36:25PM +0100, Kevin Wolf wrote: > Commit e39e959e fixed an invalid assertion in the .bdrv_length > implementation, but left a similar assertion in place for > .bdrv_truncate. Instead of crashing when the user requests a too large > image size, fail gracefully. > > A fil

Re: [Qemu-block] [PATCH for-2.12 05/12] luks: Turn another invalid assertion into check

2018-03-20 Thread Eric Blake
On 03/20/2018 12:36 PM, Kevin Wolf wrote: Commit e39e959e fixed an invalid assertion in the .bdrv_length implementation, but left a similar assertion in place for .bdrv_truncate. Instead of crashing when the user requests a too large image size, fail gracefully. A file size of exactly INT64_MAX

[Qemu-block] [PATCH for-2.12 05/12] luks: Turn another invalid assertion into check

2018-03-20 Thread Kevin Wolf
Commit e39e959e fixed an invalid assertion in the .bdrv_length implementation, but left a similar assertion in place for .bdrv_truncate. Instead of crashing when the user requests a too large image size, fail gracefully. A file size of exactly INT64_MAX caused failure before, but is actually legal