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

crash in QTextCodec::toUnicode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.7.0
    • 4.7.0
    • None
    • Linux x64
    • 860094d4e2614c0926f2af0e3538412ece31f726

    Description

      The following was reported by email:

      QTextCodec *tc=QTextCodec::codecForName("gbk");
      const char *str = "鸿鹄安知燕雀之志";
      // this is what QString::fromAscii_helper does
      tc->toUnicode(str, qstrlen(str));
      

      produces a crash with a fairly recent Qt 4.7 (25da7da1b5b454eae0b8080a97fd4a37d688aa54) on linux. It works fine with Qt 4.6.

      Attachments

        1. debug.txt
          20 kB
          Christian Kamm
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            poulain Benjamin Poulain (closed Nokia identity) (Inactive)
            ckamm Christian Kamm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes