Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-40062

QJsonDocument::fromJson doesn't check the length of the string to see if it has parsed everything

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.4.0 Beta
    • 5.3.1
    • Core: Other
    • None

      If you try parsing a malformed Json like this one :

      {key1 : "ok", key2 : {key3: "ok"}}, key4 : "outsideOfMainJsonObject"}

      QJsonDocument will parse :

      {key1 : "ok", key2 : {key3: "ok"}}

      and return without error but in reality the json is malformed

        For Gerrit Dashboard: QTBUG-40062
        # Subject Branch Project Status CR V

            laknoll Lars Knoll
            think-free Christophe
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes