From de6a415832c6ae6ec3300b8ff5587aa7e2e1a0c7 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Wed, 19 Oct 2016 21:40:18 +0100 Subject: [PATCH] Increase SVG buffer check length by 50 bytes Provides support for files exported by Illustrator --- libvips/foreign/svgload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvips/foreign/svgload.c b/libvips/foreign/svgload.c index aa055506..62c747de 100644 --- a/libvips/foreign/svgload.c +++ b/libvips/foreign/svgload.c @@ -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, "