Skip to content

EXRLoader: Fix out-of-bounds read on partial scanline blocks.#33620

Merged
Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev1
May 21, 2026
Merged

EXRLoader: Fix out-of-bounds read on partial scanline blocks.#33620
Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev1

Conversation

@Mugen87
Copy link
Copy Markdown
Collaborator

@Mugen87 Mugen87 commented May 21, 2026

Fixed #33619.

Description

Instead of computing the source-Y manually per line, EXRLoader now extracts the data from the chunk header's line. These data are automatically correct for any line order. This also makes the scanOrder function obsolete.

@Mugen87 Mugen87 added this to the r185 milestone May 21, 2026
@Mugen87
Copy link
Copy Markdown
Collaborator Author

Mugen87 commented May 21, 2026

Did a few additional test with the test images from https://openexr.com/en/latest/test_images/index.html that I've used for my previous EXRLoader PRs and the change seems save.

@Mugen87 Mugen87 merged commit 202c33d into mrdoob:dev May 21, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EXRLoader: Crashes loading of non-power of two resolutions

1 participant