From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org, Ahmad Fatoum <a.fatoum@barebox.org>
Cc: Sohaib Mohamed <sohaib.amhmd@gmail.com>
Subject: Re: [PATCH master 1/2] range: fix corner cases when exclusive end is zero
Date: Mon, 03 Nov 2025 09:40:38 +0100	[thread overview]
Message-ID: <176215923845.4134647.16737877367747106215.b4-ty@pengutronix.de> (raw)
In-Reply-To: <20251101105542.3830943-1-a.fatoum@barebox.org>
On Sat, 01 Nov 2025 11:55:38 +0100, Ahmad Fatoum wrote:
> Unlike inclusive ranges, exclusive ranges can be empty and
> region_overlap_end_exclusive() goes beyond that and checks that ranges
> are neither empty nor does the end precede the start.
> 
> This is problematic for a range that stretches to the maximum value of a
> type. Exclusive end in that case would be 0 and 0 comes before all
> non-zero numbers, so the region_overlap_end_exclusive() would always
> return false.
> 
> [...]
Applied, thanks!
[1/2] range: fix corner cases when exclusive end is zero
      https://git.pengutronix.de/cgit/barebox/commit/?id=8ec4f2589cd3 (link may not be stable)
[2/2] test: self: add range.h test
      https://git.pengutronix.de/cgit/barebox/commit/?id=510c2391d2ab (link may not be stable)
Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>
     prev parent reply	other threads:[~2025-11-03  8:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-01 10:55 Ahmad Fatoum
2025-11-01 10:55 ` [PATCH master 2/2] test: self: add range.h test Ahmad Fatoum
2025-11-01 11:07 ` [PATCH] fixup! range: fix corner cases when exclusive end is zero Ahmad Fatoum
2025-11-03  8:40   ` (subset) " Sascha Hauer
2025-11-03  8:40 ` Sascha Hauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox
  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):
  git send-email \
    --in-reply-to=176215923845.4134647.16737877367747106215.b4-ty@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=a.fatoum@barebox.org \
    --cc=barebox@lists.infradead.org \
    --cc=sohaib.amhmd@gmail.com \
    /path/to/YOUR_REPLY
  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
  Be sure your reply has a Subject: header at the top and a blank line
  before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox