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

Parsing ObjC @selector causes memory exhaustion and crash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • Qt Creator 2.1.0-rc1
    • Qt Creator 2.0.0, Qt Creator 2.1.0
    • None
    • Confirmed on Linux (x86)
    • 192ca70649a278e8593bff91151956bc7649ac07

    Description

      Qt Creator crashes when user types (or loads from a file) the following snippet in editor window:

      int main() {
      @selector(:enum);
      }

      This selector statement will trigger a bug in Qt Creator's ObjC parser, causing it to allocate excessive amount of memory. Qt Creator will eventually crash due to memory exhaustion (see attached backtrace).

      Attachments

        1. backtrace
          3 kB
          Adam Jakubek
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            erikv Erik Verbruggen
            naur Adam Jakubek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes