diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-11-20 12:07:27 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-11-20 20:47:13 +0100 |
commit | 6f3c749f0e85c0bfd93a6d176fce2f25edf58962 (patch) | |
tree | ec0a44c0d7f8dfebc63932565811956aaf57f1fd /src/qdoc/cppcodemarker.cpp | |
parent | b34a39904c8bb03ef37bb3d9278cde5cfb69f6ac (diff) | |
download | qttools-6f3c749f0e85c0bfd93a6d176fce2f25edf58962.tar.gz |
lupdate: Fix assertion in C++ parser
The parser reserves space for the the string yyWord: the length of the
input string, e.g. the file. Later, it checks via Q_ASSERT whether the
string is still attached to the initial buffer.
In Qt6 we cannot rely anymore on QString staying attached to it's buffer
for all operations. Therefore, the assertion cannot hold in all cases.
Change the assertion to something weaker: ensure that the buffer
size (the string's capacity) stays the same during the parser run.
Pick-to: 6.0 6.0.0
Fixes: QTBUG-88647
Change-Id: I62ef2598b7023bc5bbc44aa477ac3bca60d6f355
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/qdoc/cppcodemarker.cpp')
0 files changed, 0 insertions, 0 deletions