Skip to content

HDR file input validation fixes - #676

Merged
Chuck Walbourn (walbourn) merged 2 commits into
mainfrom
hdrvalidationfix
Feb 27, 2026
Merged

Chuck Walbourn (walbourn) merged 2 commits into
mainfrom
hdrvalidationfix

Conversation

@walbourn

@walbourn Chuck Walbourn (walbourn) commented Feb 27, 2026 •

Copy link
Copy Markdown
Collaborator
  • 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

Chuck Walbourn (walbourn) commented Feb 27, 2026 •

Copy link
Copy Markdown
Collaborator Author

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

@walbourn Chuck Walbourn (walbourn) added the hdr Radiance RGBE (HDR) label Feb 27, 2026
Comment thread DirectXTex/DirectXTexHDR.cpp
@walbourn
Chuck Walbourn (walbourn) merged commit 7e0ef29 into main Feb 27, 2026
136 checks passed
@walbourn
Chuck Walbourn (walbourn) deleted the hdrvalidationfix branch February 27, 2026 22:57
@walbourn

Copy link
Copy Markdown
Collaborator Author

Resolves MSRC 107429 which is considered a Low risk Information Disclosure bug.

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