On 26.03.2014 13:05, Stefan Hajnoczi wrote:
Chunk length and sectorcount are used for decompression buffers as well
as the bdrv_pread() count argument.  Ensure that they have reasonable
values so neither memory allocation nor conversion from uint64_t to int
will cause problems.

Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>
Signed-off-by: Kevin Wolf <kw...@redhat.com>
---
  block/dmg.c | 24 ++++++++++++++++++++++++
  1 file changed, 24 insertions(+)

Reviewed-by: Max Reitz <mre...@redhat.com>

Reply via email to