lib/elsewhere: Fix overlap check to detect full containment
diff --git a/common/lib/elsewhere.c b/common/lib/elsewhere.c
index 62bbeb67..58ab247b 100644
--- a/common/lib/elsewhere.c
+++ b/common/lib/elsewhere.c
@@ -7,8 +7,7 @@
static bool elsewhere_overlap_check(uint64_t base1, uint64_t top1,
uint64_t base2, uint64_t top2) {
- return ((base1 >= base2 && base1 < top2)
- || (top1 > base2 && top1 <= top2));
+ return (base1 < top2 && base2 < top1);
}
bool elsewhere_append(
