From c557e7ec1eca4d59e1e6772a0c1fa60a06075a20 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 21:12:40 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.21 → v0.15.22](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.21...v0.15.22) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9570e34..a52e15d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,7 +42,7 @@ repos: args: ["--line-length=132"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.21 + rev: v0.15.22 hooks: - id: ruff args: ["--fix", "--exit-non-zero-on-fix"] From 3684980f7bfb2f6f632bc16ceac01bb7f31270e1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 21:12:59 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- objutils/image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/objutils/image.py b/objutils/image.py index 8a28d05..83c8642 100644 --- a/objutils/image.py +++ b/objutils/image.py @@ -505,6 +505,7 @@ def contains_range(self, addr: int, size: int) -> bool: # Find the first section that could contain current_addr import bisect from operator import attrgetter + idx = bisect.bisect_right(self.sections, current_addr, key=attrgetter("start_address")) - 1 if idx < 0: idx = 0