-
Notifications
You must be signed in to change notification settings - Fork 626
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 misc issues due to OSS-fuzz #1173
Fix misc issues due to OSS-fuzz #1173
Conversation
- Adds a (disabled) error handler print to make th test cases easier to part - Fixes an initialization of buffers to use the better half - mark a couple of functions internal (static) Signed-off-by: Kimball Thurston <[email protected]>
Signed-off-by: Kimball Thurston <[email protected]>
Signed-off-by: Kimball Thurston <[email protected]>
Signed-off-by: Kimball Thurston <[email protected]>
…sampling Signed-off-by: Kimball Thurston <[email protected]>
src/lib/OpenEXRUtil/ImfCheckFile.cpp
Outdated
static void | ||
core_error_handler_cb (exr_const_context_t f, int code, const char* msg) | ||
{ | ||
#if 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dead code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, yes and no. I should add a comment to this at the very least. Peter requested to silence the error prints to make the oss fuzz logs smaller and easier to parse, but then I also want the debug prints to know something has happened. Let me circle back with him and we can decide how to enable it. perhaps an env var instead of if 0 and re-compile.
Signed-off-by: Kimball Thurston <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Fix issues with fuzz test driver - Adds a (disabled) error handler print to make th test cases easier to part - Fixes an initialization of buffers to use the better half - mark a couple of functions internal (static) Signed-off-by: Kimball Thurston <[email protected]> * Add chunk for offsets in chunk table to be (somewhat validate) Signed-off-by: Kimball Thurston <[email protected]> * Clarify comment, simplify logic check Signed-off-by: Kimball Thurston <[email protected]> * Add check in mirror decode pipeline for alloc of 0 bytes Signed-off-by: Kimball Thurston <[email protected]> * Adjust logic so we can handle single scanline compression with image sampling Signed-off-by: Kimball Thurston <[email protected]> * switch to controlling prints for checking behind a getenv Signed-off-by: Kimball Thurston <[email protected]>
* Fix issues with fuzz test driver - Adds a (disabled) error handler print to make th test cases easier to part - Fixes an initialization of buffers to use the better half - mark a couple of functions internal (static) Signed-off-by: Kimball Thurston <[email protected]> * Add chunk for offsets in chunk table to be (somewhat validate) Signed-off-by: Kimball Thurston <[email protected]> * Clarify comment, simplify logic check Signed-off-by: Kimball Thurston <[email protected]> * Add check in mirror decode pipeline for alloc of 0 bytes Signed-off-by: Kimball Thurston <[email protected]> * Adjust logic so we can handle single scanline compression with image sampling Signed-off-by: Kimball Thurston <[email protected]> * switch to controlling prints for checking behind a getenv Signed-off-by: Kimball Thurston <[email protected]>
Many errors were masked by the fix to properly interpret the channel list attribute size parameter. This attempts to fix those issues as a first pass