Ensure VIPS_CODING_ERROR is handled for vips images (#2420)

This commit is contained in:
Lovell Fuller 2021-08-29 20:16:31 +01:00 committed by GitHub
parent 30897e8e36
commit 01c39d0774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -400,6 +400,11 @@ vips__read_header_bytes( VipsImage *im, unsigned char *from )
* are sane.
*/
switch( im->Coding ) {
case VIPS_CODING_ERROR:
vips_error( "VipsImage",
"%s", _( "unknown coding" ) );
return( -1 );
case VIPS_CODING_NONE:
break;