fix a setjmp() loop in pngread
see https://github.com/jcupitt/libvips/issues/175 stupid setjmp()
This commit is contained in:
parent
158237254d
commit
8875e23128
@ -509,6 +509,11 @@ png2vips_generate( VipsRegion *or,
|
||||
read->y_pos += 1;
|
||||
}
|
||||
|
||||
/* Turn errors back on. png_read_end() can trigger them too.
|
||||
*/
|
||||
if( setjmp( png_jmpbuf( read->pPng ) ) )
|
||||
return( -1 );
|
||||
|
||||
/* We need to shut down the reader immediately at the end of read or
|
||||
* we won't detach ready for the next image.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user