Skip to content

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

Description

@illwieckz

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions