Skip to content

HDR file input validation fixes#676

Merged
walbourn merged 2 commits intomainfrom
hdrvalidationfix
Feb 27, 2026
Merged

HDR file input validation fixes#676
walbourn merged 2 commits intomainfrom
hdrvalidationfix

Conversation

@walbourn
Copy link
Member

@walbourn walbourn commented Feb 27, 2026

  • Fix handling for specific truncated header that otherwise results in overreading a input buffer.

  • Fix detection of supported vs. unsupported orientation (only -Y height +X width is supported).

@walbourn walbourn self-assigned this Feb 27, 2026
@walbourn walbourn added the bug label Feb 27, 2026
@walbourn
Copy link
Member Author

walbourn commented Feb 27, 2026

walbourn/directxtextest#70 includes sample files to test these fixes.

@walbourn walbourn added the hdr Radiance RGBE (HDR) label Feb 27, 2026
@walbourn walbourn merged commit 7e0ef29 into main Feb 27, 2026
136 checks passed
@walbourn walbourn deleted the hdrvalidationfix branch February 27, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug hdr Radiance RGBE (HDR)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants