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

lupdate segfault on \0 in Java

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.8.4
    • Tools: Linguist
    • ubuntu 13.04 AMD64

    Description

      The 'lupdate' tool has a segmentation fault when encountering \0 in Java code.

      I'm not 100% sure whether "\0" is legal Java, but javac doesn't complain about it. In any case, lupdate shouldn't segfault (I had to do a sort of binary search to work out what was going on).

      Test case:

      $ cat nullChar.java
      class X{
      static void main(String[] args)

      { String x = "\0"; }

      }
      $ lupdate nullChar.java -ts nullChar.ts
      Segmentation fault

      Attachments

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

        Activity

          People

            kkohne Kai Köhne
            dhardy Diggory Hardy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes