Skip to content

BUG: Throw from RLEImage::Allocate when CounterType is too small - #7252

Merged
hjmjohnson merged 1 commit into
InsightSoftwareConsortium:mainfrom
domibel:rleimage-allocate-throw
Nov 27, 2026
Merged

hjmjohnson merged 1 commit into
InsightSoftwareConsortium:mainfrom
domibel:rleimage-allocate-throw

Conversation

@domibel

@domibel domibel commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Programs built without NDEBUG (e.g. in Debug mode) aborted when RLEImage's CounterType was too small for the image width.

Throw an exception instead, so callers can handle it.

Closes #7067

@github-actions github-actions Bot added type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances area:Filtering Issues affecting the Filtering module labels Nov 27, 2026
@greptile-apps

greptile-apps Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · This change appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This change appears safe to merge.

Summary

RLEImage::Allocate now throws when the image width exceeds CounterType's range, rather than aborting in Debug builds that use glibc.

  • RLEImage allocation throws when its counter cannot hold the image width.

Reviews (1) · Last reviewed commit: "BUG: Throw from RLEImage::Allocate when ..." · Reviewed by Greptile

Programs built without NDEBUG (e.g. in Debug mode) aborted when
RLEImage's CounterType was too small for the image width.

Throw an exception instead, so callers can handle it.

Closes InsightSoftwareConsortium#7067
@domibel
domibel force-pushed the rleimage-allocate-throw branch from 40c85eb to f6059db Compare November 27, 2026 20:40
@hjmjohnson
hjmjohnson merged commit 2a07513 into InsightSoftwareConsortium:main Nov 27, 2026
16 of 17 checks passed
@domibel
domibel deleted the rleimage-allocate-throw branch November 27, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Filtering Issues affecting the Filtering module type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RLEImage tests abort in Debug builds: Allocate() asserts where the test expects an exception

3 participants