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

Parsing ObjC @selector causes memory exhaustion and crash

XMLWordPrintable

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

      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).

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes