Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Howto protect my app from xml bombs?

Howto protect my app from xml bombs?

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 575 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cyril1729
    wrote on last edited by
    #1

    My Qt app displays Html text that is supplied by external users, and I can't control what content it will get to display. In order to prevent my app from crashing because of a Xml bomb (e.g. blillion laughs bombs etc) I would like Qt to use my own XmlEntityResolver in all qwidgets.

    Where can I replace the default QXmlEntityResolver throughout the entire application ?

    I'm looking for something like:

    QApplication::setDefaultXmlEntityResolver( new MyOwnEntityResolver() )

    ... but it appears it's not so easy.

    Can you help me?

    Thanks a lot in advance

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved