qtest/fuzz: make range overlap check more readable
authorYao Xingtao <yaoxt.fnst@fujitsu.com>
Mon, 22 Jul 2024 04:07:36 +0000 (00:07 -0400)
committerThomas Huth <thuth@redhat.com>
Mon, 22 Jul 2024 11:56:11 +0000 (13:56 +0200)
commit763719d253da18e011d28b08fd92125f7ae5e9ae
treeda0cdf40c07ea4d13f24451d80d6f56027425f83
parentd4ff34965e25f2041646a1337d71b39bb8cb2ba2
qtest/fuzz: make range overlap check more readable

use ranges_overlap() instead of open-coding the overlap check to improve
the readability of the code.

Signed-off-by: Yao Xingtao <yaoxt.fnst@fujitsu.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alexander Bulekov <alxndr@bu.edu>
Message-ID: <20240722040742.11513-8-yaoxt.fnst@fujitsu.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/fuzz/generic_fuzz.c