qt6-bb10/src/tools/moc
Olivier Goffart 27425e62c0 Moc: fix crash when a file ends with \\\r
make the 'cleaned' more robust by making sure we do not read past the
buffer in some cases. We must also use resize and not reserve on the
outpt buffer because reseve is meant as a hint and we are not supposed
to write past the size of the QByteArray even if it is reserved.

[ChangeLog][moc] Fixed crash on file ending with \\\r

Task-number: QTBUG-53441
Change-Id: I901e6c0ffc7f8877de3d07fd08cf26495461d294
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
2016-05-18 10:34:13 +00:00
..
util Fixed license headers 2015-02-17 18:46:09 +00:00
generator.cpp Speed up QObject::connect with function pointers 2016-01-22 21:50:01 +00:00
generator.h Update copyright headers 2015-02-11 06:49:51 +00:00
keywords.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
main.cpp moc: bail out early on missing or invalid options file 2016-03-31 08:57:39 +00:00
moc.cpp Fix moc warning detected by ICC 2016-05-09 05:30:52 +00:00
moc.h Update copyright headers 2015-02-11 06:49:51 +00:00
moc.pri
moc.pro
mwerks_mac.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
mwerks_mac.h Update copyright headers 2015-02-11 06:49:51 +00:00
outputrevision.h Update copyright headers 2015-02-11 06:49:51 +00:00
parser.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
parser.h Update copyright headers 2015-02-11 06:49:51 +00:00
ppkeywords.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
preprocessor.cpp Moc: fix crash when a file ends with \\\r 2016-05-18 10:34:13 +00:00
preprocessor.h moc: Make toExpand const, we do not modify it. 2015-07-23 08:23:23 +00:00
symbols.h tools: mark some types movable/primitive 2015-07-22 21:13:13 +00:00
token.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
token.h Update copyright headers 2015-02-11 06:49:51 +00:00
utils.h Update copyright headers 2015-02-11 06:49:51 +00:00