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

Color faxing and setjmp seg faults and exit(EXIT_FAILURE); #69

Open
blindraccoon opened this issue Nov 6, 2023 · 0 comments
Open

Color faxing and setjmp seg faults and exit(EXIT_FAILURE); #69

blindraccoon opened this issue Nov 6, 2023 · 0 comments

Comments

@blindraccoon
Copy link

When compiling FreeSWITCH 1.10.10 on Windows x64 and enabling color faxing by defining JPEG_SUPPORT in libtiff the buffer used for setjmp/longjmp in t42_itulab_jpeg_to_srgb() is not aligned properly and the call to setjmp results in seg fault. If I 'hack' around this alignment issues and give setjmp a properly aligned buffer if the jpeg decompression fails and the jpeg error handler is called it exits to the OS via and exit(EXIT_FAILURE) in libjpeg's error_exit() function. This seems to because the initialization of the decompressor error manager is incorrect in the way it sets up it's callbacks which get overridden by the defaults when jpeg_std_error() is called. These issues are the same in t42_srgb_to_itulab_jpeg().

Any guidance is appreciated

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