Skip to content

Fix integer overflow in internal_dwa_compressor.h#2346

Merged
cary-ilm merged 2 commits intoAcademySoftwareFoundation:mainfrom
cary-ilm:dwa-overflow-fix
Apr 10, 2026
Merged

Fix integer overflow in internal_dwa_compressor.h#2346
cary-ilm merged 2 commits intoAcademySoftwareFoundation:mainfrom
cary-ilm:dwa-overflow-fix

Conversation

@cary-ilm
Copy link
Copy Markdown
Member

width and height are int32_t; cast to size_t, since the result is a pointer offset, to avoid overflow.

`width` and `height` are `int32_t`; cast to `size_t`, since the result
is a pointer offset, to avoid overflow.

Signed-off-by: Cary Phillips <cary@ilm.com>
@cary-ilm
Copy link
Copy Markdown
Member Author

Addresses CVE-2026-40244 and CVE-2026-40250

Copy link
Copy Markdown
Contributor

@lgritz lgritz left a comment

Choose a reason for hiding this comment

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

LGTM

@cary-ilm cary-ilm merged commit 416fecf into AcademySoftwareFoundation:main Apr 10, 2026
48 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants