Giter VIP home page Giter VIP logo

Comments (4)

viniciusfbb avatar viniciusfbb commented on May 18, 2024

Hi @carloBarazzetta, thank you so much for reporting the issue!

I tested a lot of SVGs and the problem I encountered was just the lack of built-in css (style element) support. However, the ones you sent have one more problem that I just discovered, the doctype!

Everything works when removing the line:

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
  <!ENTITY ns_svg "http://www.w3.org/2000/svg">
  <!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
]>

It's clearly a bug. I will report to the official skia channel.

A good site to discover these issues is https://jakearchibald.github.io/svgomg/. With it it is possible to adjust several types of different configurations for the svg file and go testing.

from skia4delphi.

viniciusfbb avatar viniciusfbb commented on May 18, 2024

But let's investigate further to see what can be done.

from skia4delphi.

carloBarazzetta avatar carloBarazzetta commented on May 18, 2024

Thank you very much!

from skia4delphi.

paulocesarbot avatar paulocesarbot commented on May 18, 2024

Entity processing has been disabled to inhibit internal entity expansion for security reasons.

You can get more information: https://www.cve.org/CVERecord?id=CVE-2013-0340

You can see on Skia source src/xml/SkXMLParser.cpp:

// Disable entity processing, to inhibit internal entity expansion. See expat CVE-2013-0340.
XML_SetEntityDeclHandler(ctx.fXMLParser, entity_decl_handler);

Whenever there is an entity parse is stopped.

We will close the issue but we will document and keep an eye out for any changes.

@carloBarazzetta thank you so much for reporting! We will document and add instructions and description about the case!

from skia4delphi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.