Skip to content

fix(sgi): Better detection of corrupt RLE info that could overflow - #5141

Merged
lgritz merged 1 commit into
AcademySoftwareFoundation:mainfrom
lgritz:lg-sgicorrupt
Apr 15, 2026
Merged

fix(sgi): Better detection of corrupt RLE info that could overflow#5141
lgritz merged 1 commit into
AcademySoftwareFoundation:mainfrom
lgritz:lg-sgicorrupt

Conversation

@lgritz

@lgritz lgritz commented Apr 11, 2026

Copy link
Copy Markdown
Collaborator
  • Change DASSERTs (which were correct, but did not enforce anything in release builds) into real checks that will return error messages and flags if the corruptions are found.
  • Switch to using spans for extra checks if anything goes wrong.
  • Use check_open.
  • Check that various header items are valid enum values.

* Change DASSERTs (which were correct, but did not enforce anything
  in release builds) into real checks that will return error messages
  and flags if the corruptions are found.
* Switch to using spans for extra checks if anything goes wrong.
* Use check_open.
* Check that various header items are valid enum values.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz lgritz added bug Crash or wrong behavior of an existing feature. file formats Image file formats, ImageInput, ImageOutput labels Apr 14, 2026

@jessey-git jessey-git left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and tests out well locally.

@lgritz
lgritz merged commit ec92d1e into AcademySoftwareFoundation:main Apr 15, 2026
31 checks passed
@lgritz
lgritz deleted the lg-sgicorrupt branch April 15, 2026 19:27
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Apr 19, 2026
…cademySoftwareFoundation#5141)

* Change DASSERTs (which were correct, but did not enforce anything in
release builds) into real checks that will return error messages and
flags if the corruptions are found.
* Switch to using spans for extra checks if anything goes wrong.
* Use check_open.
* Check that various header items are valid enum values.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Apr 19, 2026
…cademySoftwareFoundation#5141)

* Change DASSERTs (which were correct, but did not enforce anything in
release builds) into real checks that will return error messages and
flags if the corruptions are found.
* Switch to using spans for extra checks if anything goes wrong.
* Use check_open.
* Check that various header items are valid enum values.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Apr 19, 2026
…cademySoftwareFoundation#5141)

* Change DASSERTs (which were correct, but did not enforce anything in
release builds) into real checks that will return error messages and
flags if the corruptions are found.
* Switch to using spans for extra checks if anything goes wrong.
* Use check_open.
* Check that various header items are valid enum values.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Apr 19, 2026
…cademySoftwareFoundation#5141)

* Change DASSERTs (which were correct, but did not enforce anything in
release builds) into real checks that will return error messages and
flags if the corruptions are found.
* Switch to using spans for extra checks if anything goes wrong.
* Use check_open.
* Check that various header items are valid enum values.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Apr 19, 2026
…cademySoftwareFoundation#5141)

* Change DASSERTs (which were correct, but did not enforce anything in
release builds) into real checks that will return error messages and
flags if the corruptions are found.
* Switch to using spans for extra checks if anything goes wrong.
* Use check_open.
* Check that various header items are valid enum values.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Crash or wrong behavior of an existing feature. file formats Image file formats, ImageInput, ImageOutput

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants