-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
SDL_BlitSurface segfault #8897
Comments
I see, this should be |
done. |
@Starbuck5 please give a try |
@1bsyl I'm not @Starbuck5, but I just tried with the SDL 2.29.2 prerelease, and it seems to be working correctly now. The tests that were segfaulting before no longer do so with that prerelease. I've got a draft pull request up that's running through the entire test suite on all of our platforms, so when those all finish I can update this comment with any findings Update: looks fine so far Update to the update: |
Thanks for the quick action @1bsyl, I've tested your patch and confirmed it works. (no longer segfaults) Thanks @oddbookworm for checking up on this too :) |
I've been chewing on the SDL 2.29.1 pre-release for a few days now trying to figure out some failures and segfaults in the pygame-ce test suite.
I found that one of our image saving routines was segfaulting, and I tracked it down to SDL_BlitSurface and this commit bb969ac
Here is a minimum reproducible example (this segfaults for me):
This code lacks a dest rect, and SDL_UpperBlit now sends that NULL through into SDL_LowerBlit, where it didn't previously.
The text was updated successfully, but these errors were encountered: