diff options
| author | Kevin Wolf | 2018-03-05 18:15:26 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2018-03-19 12:01:24 +0100 |
| commit | 3d7ed9c453ad10e73edbcde1b718506ed7b86388 (patch) | |
| tree | 916f65c89af6e3854f841fe66e0e1bb1e0249ca9 /qapi | |
| parent | luks: Turn invalid assertion into check (diff) | |
| download | qemu-3d7ed9c453ad10e73edbcde1b718506ed7b86388.tar.gz qemu-3d7ed9c453ad10e73edbcde1b718506ed7b86388.tar.xz qemu-3d7ed9c453ad10e73edbcde1b718506ed7b86388.zip | |
luks: Catch integer overflow for huge sizes
When you request an image size close to UINT64_MAX, the addition of the
crypto header may cause an integer overflow. Catch it instead of
silently truncating the image size.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'qapi')
0 files changed, 0 insertions, 0 deletions
