Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-16838

[REG 4.0->4.1] Infinite loop on raw debugger string processing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.2.1
    • Qt Creator 4.1.0
    • Debugger
    • None
    • Windows 7
    • 26331f771a48f8123d2106b5e3c9ecf95a24a32e et al

    Description

      I have a dumper which calls d.putValue(gdbValue.string()) without encoding it.

      For a particular case, it causes an infinite loop in GdbMi::parseList().

      The processed line is:

      parseList:  "[{iname=\"local.j\",name=\"j\",numchild=\"0\",type=\"int\",value=\"2\",address=\"0x12c0e750\",},{iname=\"local.this\",name=\"this\",numchild=\"7\",type=\"HTTPMessageHeaderList\",value=\"\",address=\"0x15b6af78\",},{iname=\"local.Buff\",name=\"Buff\",numchild=\"1\",type=\"AcSIPString &\",value=\"\\\"HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 16\r\nETag: \"57cd6418-10\"\r\nServer: nginx/1....\\\"\",address=\"0x12c0e888\",},{iname=\"local.Version\",name=\"Version\",numchild=\"0\",type=\"short\",value=\"0\",address=\"0x12c0e748\",},{iname=\"local.Offsets\",name=\"Offsets\",numchild=\"19\",type=\"SIPMessageOffsets &\",value=\"\",address=\"0x15b6af30\",},{iname=\"local.KeepHeadersOrder\",name=\"KeepHeadersOrder\",numchild=\"0\",type=\"bool\",value=\"false\",address=\"0x12c0e744\",},],typeinfo=[],partial=\"0\"\n\"[{}, [['locals', 0], ['all-local.j', 0], ['all-local.this', 223000], ['all-local.Buff', 0], ['all-local.Version', 0], ['all-local.Offsets', 999], ['all-local.KeepHeadersOrder', 0], ['watches', 0], ['safePrint', 0]]]\""

      The part that is infinitely processed is:

      : nginx/1....\\\"\",address=\"0x12c0e888\",

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes