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

Oss-fuzz issue 390461337 "graphicsmagick:coder_AVIF_fuzzer: Unexpected-exit in error_exit" #1446

Open
bobfriesenhahn opened this issue Jan 23, 2025 · 0 comments

Comments

@bobfriesenhahn
Copy link

Oss-fuzz has found a test case where (when accessed via GraphicsMagick) libheif allows libjpeg to exit due to its default error handler if libheif is compiled with JPEG support (likely a rare configuration). Libjpeg clients normally use setjmp/longjmp for error handling. The error message which comes out (produced by libjpeg) is "Empty input file".

If I use libheif's utilities I see results like:

heif-convert clusterfuzz-testcase-minimized-coder_AVIF_fuzzer-5972439477059584 crap.jpg
File contains 1 image
Input image has undefined bit-depth

and

heif-info clusterfuzz-testcase-minimized-coder_AVIF_fuzzer-5972439477059584
MIME type: unknown
main brand:     
compatible brands:     , mif1,     ,     

image: 32x32 (id=1), primary
Invalid input: Unspecified: Invalid JPEG SOF header

The POC file is attached with a jpg extension to satisfy github:

Image

Please advise if special error handling methodologies are required to deal with this.

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

No branches or pull requests

1 participant