aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/data/fuzzed.1.errors.txt
diff options
context:
space:
mode:
authorJan Arve Sæther <jan-arve.saether@qt.io>2024-04-30 11:00:28 +0200
committerJan Arve Sæther <jan-arve.saether@qt.io>2024-04-30 17:27:55 +0000
commit6f7deef6d54dea7e033f5bf2c3ba0ee54ab562ed (patch)
tree002c500a5c08126758a2f15ac53eaf1b3efc97a0 /tests/auto/qml/qqmllanguage/data/fuzzed.1.errors.txt
parent5da51e012094c6aad75238a04e0897d43a4975c6 (diff)
Do not try to rearrange if the width/height is < 0HEADdev
This also fixes a crash in this peculiar condition: Item { width: 0 height: 0 RowLayout { anchors.fill: parent anchors.leftMargin: 1 anchors.leftMargin: 1 } } Reason for crash: As a consequence the layout was rearranged with size == (-1, -1), (which happens to be the value of uninitialized QSizeF). This invalid size was passed down to QGridLayoutEngine::setGeometries() (in the contentsGeometry QRect), and again to ensureGeometries(). ensureGeometries() would return early because of the condition if (q_cachedSize == size) (q_cachedSize is an uninitialized QSizeF by default, and size == (-1, -1) This caused the q_xx, q_yy, q_widths, and q_height to not be properly initialized, and it would crash inside QGridLayoutEngine::setGeometries() when accessing the list: qreal x = q_xx.at(item->firstColumn()); Pick-to: 6.2 6.5 6.7 Fixes: QTBUG-124456 Change-Id: I2e3586389aa1728c3622e92bd589af87d11955ae Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmllanguage/data/fuzzed.1.errors.txt')
0 files changed, 0 insertions, 0 deletions