Merge pull request #543 from lovell/svg-buffer-is-buffer-illustrator
Increase SVG buffer check length by 50 bytes
This commit is contained in:
commit
d9c335fd91
|
@ -482,7 +482,7 @@ vips_foreign_load_svg_is_a_buffer( const void *buf, size_t len )
|
|||
if( !isascii( str[i] ) )
|
||||
return( FALSE );
|
||||
|
||||
for( i = 0; i < 200 && i < len - 5; i++ )
|
||||
for( i = 0; i < 250 && i < len - 5; i++ )
|
||||
if( g_ascii_strncasecmp( str + i, "<svg", 4 ) == 0 )
|
||||
return( TRUE );
|
||||
|
||||
|
|
Loading…
Reference in New Issue