Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crn_decompress_dds_to_images() is returning an array of null pointers #62

Open
illwieckz opened this issue Jul 7, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@illwieckz
Copy link
Member

The crn_decompress_dds_to_images() function is expected to populate the ppImages array with pointers to mipmap images.

But pImg->get_pixel_buf().assume_ownership() always return a null pointer when called in crn_decompress_dds_to_images().

Here is how to reproduce (better use the branch from #61):

./crunch -file ../test/unvanquished_64.png -out test.dds
./example1 d test.dds -out test.tga

The second command is expected to write one tga file per mipmap, but it segfaults because of attempting to read null pointers.

@illwieckz illwieckz added the bug Something isn't working label Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant