Don't always return success from this function, NanoSVG just skips everything until the start of the XML prologue and doesn't return an error even if it doesn't find it at all, so check that it could parse at least something to avoid returning a "valid" bundle not containing anything at all. Add a unit test checking that we actually can't create an SVG from a .bmp file (which is something that "worked" before).
7.0 KiB
7.0 KiB