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

QQuickDefaultClipNode memory faults

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.6.2
    • 5.6.0 RC, 5.7.0 Alpha
    • Quick: SceneGraph
    • None
    • The code is wrong on all platforms
    • b65b6bd5a6d571ad7047d85508f85c62ca9ad8ce

    Description

      In case of having a radius QQuickDefaultClipNode allocates not enough memory, followed by writing to unallocated memory.

      In qquickclipnode.cpp line 90 you find: "g->allocate((segments + 1) * 2)", but it has to be: "g->allocate((segments + 1) * 4);"

      We have segments top + border and for each segment 2 points -> 4.

      This bug is so fundamental and can probably be found in all versions of Qt 5 ( didn't check it ), that it gives me the impression, that nobody ever used clips with rounded borders - at least not by using this class.

      Attachments

        For Gerrit Dashboard: QTBUG-51894
        # Subject Branch Project Status CR V

        Activity

          People

            Unassigned Unassigned
            uwe Uwe Rathmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes