Skip to content

Conversation

@lgritz
Copy link
Collaborator

@lgritz lgritz commented Jun 9, 2012

When reading tiled images, where the image is not a whole number of tiles,
this bug could misallocate and run off the end of the buffer while dealing
with the partial tiles on the right or bottom edge of the image.

lgritz added 2 commits June 11, 2012 15:56
When reading tiled images, where the image is not a whole number of tiles,
this bug could misallocate and run off the end of the buffer while dealing
with the partial tiles on the right or bottom edge of the image.
@lgritz
Copy link
Collaborator Author

lgritz commented Jun 11, 2012

Updated with another fix to some bugs related to strides inside read_scanlines() for images with differing data formats per channel.

Sorry, these are in some ways separate issues, but I was chasing down what I thought initially was one bug but turned out to lead to both of these problems. Forgive me.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this 0 mean here? Should it be related to z-depth instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only converting within one z "plane", the zstride is not used. So I passed 0 instead of the more complicated expression that would be the correct zstride if the call needed it.

@lgritz
Copy link
Collaborator Author

lgritz commented Jun 12, 2012

I just realized, however, that I may need to make the same fix when reading tiled images. Stay tuned for a possible update.

@lgritz
Copy link
Collaborator Author

lgritz commented Jun 12, 2012

Nah, the fix I already did is desperately needed. I'll address the tiled case separately after I get this fix out.

@lgritz lgritz merged commit c9018e1 into AcademySoftwareFoundation:master Jun 12, 2012
GerHobbelt pushed a commit to GerHobbelt/oiio that referenced this pull request Dec 10, 2024
…369/noop_profile_yaml

Fix issue where loading profiles with yaml-cpp 0.5.x would crash.
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.

2 participants