Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.6.0 RC, 5.7.0 Alpha
-
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 |
164474,3 | Fix QQuickDefaultClipNode::updateGeometry() | 5.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |