Skip to content

factor out parts of IMG_LoadJPG where locals can be clobbered by longjmp (SDL3 version) #545

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

Merged
merged 1 commit into from
Apr 15, 2025

Conversation

sezero
Copy link
Contributor

@sezero sezero commented Apr 9, 2025

Closes: #435

CC: @smcv

@sezero sezero requested a review from slouken April 9, 2025 04:26
@sezero
Copy link
Contributor Author

sezero commented Apr 10, 2025

PING @slouken

@sezero
Copy link
Contributor Author

sezero commented Apr 11, 2025

@smcv : Is this OK with you? (Also its SDL2 counterpart.) The error message stuff you noted requires another go at the full source tree, as far as I can see.

@sezero sezero requested a review from smcv April 11, 2025 20:23
@sezero
Copy link
Contributor Author

sezero commented Apr 11, 2025

Well, I did went ahead and sanitized error setting a bit for png and jpg loaders, both here and in the SDL2 version as well. Please review.

@sezero sezero force-pushed the jpg-longjmp3 branch 2 times, most recently from 2066be8 to f4ac1e5 Compare April 11, 2025 21:10
Also sanitize error setting a bit in IMG_LoadPNG()

Fixes libsdl-org#435
@sezero sezero merged commit b2eed83 into libsdl-org:main Apr 15, 2025
5 checks passed
@sezero sezero deleted the jpg-longjmp3 branch April 15, 2025 09:25
@sezero
Copy link
Contributor Author

sezero commented Apr 15, 2025

This is in now. If there are any issues, please open a new ticket for it.

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.

Factor out the parts of IMG_LoadJPG_RW where locals can be clobbered by setjmp()/longjmp()
2 participants