Skip to content

fix various issues with DDS decompression#7022

Merged
notimaginative merged 1 commit into
scp-fs2open:masterfrom
notimaginative:fix_dds_heap_corruption
Sep 9, 2025
Merged

fix various issues with DDS decompression#7022
notimaginative merged 1 commit into
scp-fs2open:masterfrom
notimaginative:fix_dds_heap_corruption

Conversation

@notimaginative

Copy link
Copy Markdown
Contributor

Fix heap corruption with smaller mipmaps due to decompression output always being a 4x4 block rather than actual mipmap size. It's necessary to pad the allocated data size to allow for the overflow.

Fix heap corruption with DXT1 due to using improper data offsets for the type.

Fix data offsets not always taking the depth value into account.

Adjust code for slight increase in decode performance.

Update bcdec to 0.98

Fix heap corruption with smaller mipmaps due to decompression output
always being a 4x4 block rather than actual mipmap size. It's necessary to
pad the allocated data size to allow for the overflow.

Fix heap corruption with DXT1 due to using improper data offsets for the type.

Fix data offsets not always taking the depth value into account.

Adjust code for slight increase in decode performance.

Update bcdec to 0.98
@notimaginative notimaginative added this to the Release 25.0 milestone Sep 6, 2025
@notimaginative notimaginative added the fix A fix for bugs, not-a-bugs, and/or regressions. label Sep 6, 2025
@notimaginative

Copy link
Copy Markdown
Contributor Author

Waiting for @Shivansps and @wookieejedi to test and confirm that it all actually works this time.

@wookieejedi

wookieejedi commented Sep 8, 2025

Copy link
Copy Markdown
Member

Works in our FotG tests!

@notimaginative notimaginative merged commit 9d3ba25 into scp-fs2open:master Sep 9, 2025
20 checks passed
@notimaginative notimaginative deleted the fix_dds_heap_corruption branch September 9, 2025 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A fix for bugs, not-a-bugs, and/or regressions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants