Hi everyone,
We came across crashes when loading/processing extreme-sized images through HioOiio. After investigation, we figured out the root cause and proposed a PR to fix the crashes: Autodesk: Adopt size_t and add checks to fix image loading/processing crash by erikaharrison-adsk · Pull Request #3119 · PixarAnimationStudios/OpenUSD · GitHub.
Changes are:
- Use
size_t
instead ofint
to fix the crash caused byint
overflow. - Add more checks as IO may fail due to users’ environment.
Does anyone have any comments?
Thank you,
Lumina Wang