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

fix(iv): avoid crash with OpenGL + multi-channel images #4087

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Dec 21, 2023

For image with more than 4 channels, we were misallocating the OpenGL buffer by using the total channels instead of the 4 we wanted to create the texture out of. Also, make sure the calculation usees wide types to avoid possible integer overflow.

For image with more than 4 channels, we were misallocating the OpenGL
buffer by using the total channels instead of the 4 we wanted to
create the texture out of. Also, make sure the calculation usees wide
types to avoid possible integer overflow.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz
Copy link
Collaborator Author

lgritz commented Dec 27, 2023

No objections + fixes a crash = merge

@lgritz lgritz merged commit a9c937d into AcademySoftwareFoundation:master Dec 27, 2023
25 checks passed
@lgritz lgritz deleted the lg-ivchans branch December 27, 2023 20:29
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Dec 27, 2023
…areFoundation#4087)

For image with more than 4 channels, we were misallocating the OpenGL
buffer by using the total channels instead of the 4 we wanted to create
the texture out of. Also, make sure the calculation usees wide types to
avoid possible integer overflow.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
1div0 pushed a commit to 1div0/OpenImageIO that referenced this pull request Feb 24, 2024
…areFoundation#4087)

For image with more than 4 channels, we were misallocating the OpenGL
buffer by using the total channels instead of the 4 we wanted to create
the texture out of. Also, make sure the calculation usees wide types to
avoid possible integer overflow.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
Signed-off-by: Peter Kovář <peter.kovar@reflexion.tv>
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.

1 participant