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

libthai th_brk is limited to ≤ 2Gi characters

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • None
    • 8
    • Foundation PM Prioritized

    Description

      The th_brk() function takes the length of the input as a size_t, but it stores breaks in an int array, thereby limiting possible hits to the first INT_MAX characters.

      To fix, we need to, if we can, loop over the input in increments of INT_MAX and adjust the positions afterwards. We should also ping upstream about this problem.

      th_brk() is deprecated, btw, but the replacement th_brk_find_breaks() has the same API issue.

       

      Attachments

        Issue Links

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

          Activity

            People

              cnn Qt Core & Network
              mmutz Marc Mutz
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes