Re: [PATCH v2 3/5] qemu-img: validate image length in img_map

2020-05-06 Thread Eric Blake
On 5/6/20 4:34 PM, Eyal Moscovici wrote: The code handles this case correctly we merely skip the loop. However it is probably best to return an explicit error. Acked-by: Mark Kanda Signed-off-by: Eyal Moscovici --- qemu-img.c | 5 + 1 file changed, 5 insertions(+) Reviewed-by: Eric Bl

[PATCH v2 3/5] qemu-img: validate image length in img_map

2020-05-06 Thread Eyal Moscovici
The code handles this case correctly we merely skip the loop. However it is probably best to return an explicit error. Acked-by: Mark Kanda Signed-off-by: Eyal Moscovici --- qemu-img.c | 5 + 1 file changed, 5 insertions(+) diff --git a/qemu-img.c b/qemu-img.c index 4a06ab7fe8..a1b507a0be