Currently, some components still open-coding the range overlap check.
Sometimes this check may be fail because some patterns are missed.

To avoid the above problems and improve the readability of the code,
it is better to use the ranges_overlap() to do this check.

Yao Xingtao (13):
  range: Make ranges_overlap() return bool
  arm/boot: make range overlap check more readable
  core/loader: make range overlap check more readable
  cxl/mailbox: make range overlap check more readable
  display/sm501: make range overlap check more readable
  aspeed_smc: make range overlap check more readable
  qtest/fuzz: make range overlap check more readable
  sparc/ldst_helper: make range overlap check more readable
  system/memory_mapping: make range overlap check more readable
  block/vhdx: make range overlap check more readable
  crypto/block-luks: make range overlap check more readable
  dump: make range overlap check more readable
  block/qcow2-cluster: make range overlap check more readable

 block/qcow2-cluster.c           | 23 +++++++++++++----------
 block/vhdx.c                    | 12 +++++++-----
 crypto/block-luks.c             |  3 ++-
 dump/dump.c                     | 12 ++++++++----
 hw/arm/boot.c                   |  5 +++--
 hw/core/loader.c                |  4 +++-
 hw/cxl/cxl-mailbox-utils.c      |  8 ++++----
 hw/display/sm501.c              | 12 ++++++------
 hw/ssi/aspeed_smc.c             |  4 ++--
 include/qemu/range.h            |  4 ++--
 system/memory_mapping.c         |  4 ++--
 target/sparc/ldst_helper.c      |  5 ++---
 tests/qtest/fuzz/generic_fuzz.c |  3 ++-
 13 files changed, 56 insertions(+), 43 deletions(-)

-- 
2.41.0


Reply via email to