Re: [PATCH] qemu-img: fix division by zero in bench_cb() for zero-sized images

2025-03-18 Thread Kevin Wolf
Am 18.03.2025 um 11:19 hat ger...@altlinux.org geschrieben: > From: Denis Rastyogin > > This error was discovered by fuzzing qemu-img. > > This commit fixes a division by zero error in the bench_cb() function > that occurs when using the bench command with a zero-sized image. > > The issue aris

[PATCH] qemu-img: fix division by zero in bench_cb() for zero-sized images

2025-03-18 Thread gerben
From: Denis Rastyogin This error was discovered by fuzzing qemu-img. This commit fixes a division by zero error in the bench_cb() function that occurs when using the bench command with a zero-sized image. The issue arises because b->image_size can be zero, leading to a division by zero in the m