
5 Dec
2010
5 Dec
'10
5:42 p.m.
Hi Phil,
Sorry, there is a misunderstanding here. I should have clearer. For instance, when reading a jpeg you set a mark with setjmp() see read.hpp[49] in the jpeg folder. Just before that I set the error handler "error_exit()" which will be called in case of an error. It's only here that longjmp will be called. Though, you are correct in your assumption that longjmp is only called when there is an error.
Great, we're agreed. So, can you now point out which tests exercise this setjmp/longjmp error path?
There are no tests that read an erroneous images. I remember testing setjmp/longjmp on my laptop and it worked with Windows. If you insists I can add some tests to prove my point. Christian