diff --git a/src/fl_images_core.cxx b/src/fl_images_core.cxx index 45835fa20..de34fe3e9 100644 --- a/src/fl_images_core.cxx +++ b/src/fl_images_core.cxx @@ -126,12 +126,22 @@ fl_check_images(const char *name, // I - Filename // SVG or SVGZ (gzip'ed SVG) #ifdef FLTK_USE_SVG - uchar header2[300]; // buffer for decompression + uchar header2[300]; // buffer for decompression uchar *buf = header; // original header data int count = headerlen; // original header data size // Note: variables 'buf' and 'count' may be overwritten subsequently - // if the image data is gzip'ed *and* we can decompress the data + // if the image data is xml or gzip'ed *and* we can decompress the data + + if (count >= 5 && memcmp(header, "= 4 && memcmp(buf, "= 5 && memcmp(buf, "