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

IMG_LoadTexture_RW read too much data, far beyond the end of the PNG data #360

Open
furious-programming opened this issue Apr 15, 2023 · 0 comments

Comments

@furious-programming
Copy link

The IMG_LoadTexture_RW function can load a PNG image saved in the stream, but if the stream contains some data after it (because it is, for example, a binary file with a lot of data), then after reading the PNG, the stream pointer is moved much too far, which further data could not be read correctly. The same problem occurs with the IMG_LoadTextureTyped_RW function.

The original discussion is here: https://discourse.libsdl.org/t/img-loadtexture-rw-seems-to-load-too-much-data

@furious-programming furious-programming changed the title IMG_LoadTexture_RW read too much data, far behind IEND chunk IMG_LoadTexture_RW read too much data, far beyond the end of the PNG data Apr 15, 2023
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

No branches or pull requests

1 participant