From 495e0b2d14a126c23af40376ee30792f50145000 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 6 Jun 2018 08:17:08 +0100 Subject: [PATCH] bump svg header size to 1000 bytes see https://github.com/jcupitt/libvips/pull/543 --- libvips/foreign/svgload.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/libvips/foreign/svgload.c b/libvips/foreign/svgload.c index ef91320e..c00f4252 100644 --- a/libvips/foreign/svgload.c +++ b/libvips/foreign/svgload.c @@ -67,9 +67,13 @@ #include #include +/* The 0 && + return( (bytes = vips__get_bytes( filename, + buf, SVG_HEADER_SIZE )) > 0 && vips_foreign_load_svg_is_a( buf, bytes ) ); }