diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2019-12-22 17:53:20 +0100 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2020-01-05 12:59:03 +0100 |
commit | c62333424839b3229706a6ebb64ba271689a3b8c (patch) | |
tree | 82b6ce4e32ab225de27f34a9f4b0beebd1491dc3 /configure.bat | |
parent | 02ddf08db808304363454a9ef7cba9b41af3f112 (diff) |
QPlainTextEdit: make sure firstVisibleBlock() is valid
Under some circumstances it's possible that firstVisibleBlock() returns
an invalid block within QPlainTextEditPrivate::_q_textChanged() which
results in a nullptr access later on.
Therefore add a check similar to other places and test the validity of
the returned block before accessing it.
Fixes: QTBUG-80929
Change-Id: I1fd4643b10b842acfe1c356048379f0ba225dddf
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'configure.bat')
0 files changed, 0 insertions, 0 deletions