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

QRawFont::alphaMapForGlyph() shows garbage and eventually leads to crash

    XMLWordPrintable

Details

    • Linux/Wayland
    • ef763e195892a6d8ce207f5d947fe508f645cb6d (qt/qtbase/dev) c67eaed8468c36629597aead9a768c9fe711ad85 (qt/qtbase/6.0) 9807573764bea70d1e449881c5fb67fc262ca8c4 (qt/qtbase/6.1) 6a64b8ed56d70d76cc154e66f03824b3c3a2a786 (qt/tqtc-qtbase/tqtc/lts-5.15)

    Description

      We try to render texts in an OpenGL application. For this we assemble the text glyph by glyph using QRawFont.

      On Debian Buster we get wrong results: The resulting QImage contains the correct glyph but is followed by lots of garbage.

      On Windows the result seems to be correct.

      See screenshots.

      You may reproduce the effect using the attached code.

      With real world code with whole texts instead of only a single glyph this leads to crashes, probably because of memory corruption.

      Attachments

        1. RawFontBug.zip
          0.8 kB
          Harald Prasser
        2. screenshot_DebianBuster.png
          39 kB
          Harald Prasser
        3. screenshot_Windows10.png
          5 kB
          Harald Prasser
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            cyril Harald Prasser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes