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

Prevent crash when saving RGBA image where only one channel was added… #1955

Conversation

peterurbanec
Copy link
Contributor

… to Imf::FrameBuffer

Do this by considering the chanstofill != channel_count case before the channel_count special cases.

… to Imf::FrameBuffer

Do this by considering the chanstofill != channel_count case before the channel_count special cases.

Signed-off-by: Peter Urbanec <[email protected]>
@cary-ilm
Copy link
Member

@kdt3rd, does this look right to you?

@kdt3rd
Copy link
Contributor

kdt3rd commented Jan 22, 2025

Huh, I really need to make that a more selection algorithm than just randomly adding tests in there. I did change this on january first, which is already merged to main, and that fix looks net identical, does that not work?

@peterurbanec
Copy link
Contributor Author

I was probably too slow getting this patch out the door. Our fix was against 3.2.1 back in November 2024, but I was not able to create the merge request until January 2025.

@cary-ilm
Copy link
Member

@peterurbanec, can you confirm whether the crash you saw is fixed on the main branch?

@peterurbanec
Copy link
Contributor Author

We can no longer reproduce the crash in our application.

@kdt3rd
Copy link
Contributor

kdt3rd commented Jan 24, 2025

Thanks for not only noticing the crash but also suggesting a fix, much appreciated!

@kdt3rd kdt3rd closed this Jan 24, 2025
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