Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tianxiaogu
Copy link
Contributor

This fixes the following issue: #34 #38 #36 #37 #39.

#40 turns out to be a heap-use-after-free error. Please review the usage of the following two API from stb.

  • stbi__gif_load_next
  • stbi__load_main

@posva
Copy link
Owner

posva commented Sep 12, 2018

Nice, thanks! Do you think you could add back ico support (#24), it seems to be removed right now.
It doesn't seem to handle gifs correctly anymore either

@tianxiaogu
Copy link
Contributor Author

The patch just replaces the new stb_image.h and fixes some incompatible API usage with default arguments. Sorry for not validating more. I will try to resolve it later this weekend.

@posva
Copy link
Owner

posva commented Sep 12, 2018

ok, thanks!

@tianxiaogu
Copy link
Contributor Author

Hi @posva , I have made two additional commits in this pull request. Now it works on gif and ico. Could you look over them? I have no knowledge about any image file format.

@posva
Copy link
Owner

posva commented Sep 30, 2018

Hey, it still doesn't work with GIFs

@tianxiaogu
Copy link
Contributor Author

Hi, I am sorry for not testing the patch with multi-frame gifs. I reverted the previous patch on gif and made a new commit. The crash seems to be fixed by the new patch (3fa8440). Thanks.

Copy link
Owner

@posva posva left a comment

Choose a reason for hiding this comment

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

Thanks!

@posva posva merged commit ffa86ff into posva:master Sep 30, 2018
@highvoltage
Copy link

@posva Hi! Do you mind tagging a new release now that this is fixed? thanks!

@posva
Copy link
Owner

posva commented Nov 27, 2018

Done, If someone could create the PRs to homebrew that would be perfect. Otherwise I will do in Xmas

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants