summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qstl/.gitignore
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2023-04-21 13:24:47 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2023-06-08 08:00:06 +0000
commit1dc88a1b5f826219a58cefc03b4118917be2da96 (patch)
tree7c29139dd96669eed841e2c1a31eefd9e672c589 /tests/auto/corelib/tools/qstl/.gitignore
parent90e3f0bd73e5fea6e0ed3fec65e3a5864d5e132f (diff)
Avoid infinite loop when loading huge files
QTextDocumentLayout could get into an infinite loop when the contents exceeded QFIXED_MAX. Specifically, QFIXED_MAX is used as meaning "one infinite page" which means that newPage() will just return when it sees this page height. If the page actually grew larger than this, though, we would treat it as a page break and enter a loop where we try to call newPage() to create new pages and never return. The layout engine cannot support documents this large, so we detect the case and then just finish the layout loop early when it is encountered. Pick-to: 6.5 6.6 Fixes: QTBUG-112968 Change-Id: I485303d714d112119a971c43e0086bf6d3d23e9f Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'tests/auto/corelib/tools/qstl/.gitignore')
0 files changed, 0 insertions, 0 deletions