qt5base-lts/tests/auto/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
..
task71021 Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
Test.framework/Headers Update copyright headers 2015-02-11 06:49:51 +00:00
testproject Update copyright headers 2015-02-11 06:49:51 +00:00
.gitattributes Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
.gitignore Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
assign-namespace.h Update copyright headers 2015-02-11 06:49:51 +00:00
backslash-newlines.h Moc: fix crash when a file ends with \\\r 2016-05-18 10:34:13 +00:00
c-comments.h Update copyright headers 2015-02-11 06:49:51 +00:00
cstyle-enums.h Update copyright headers 2015-02-11 06:49:51 +00:00
cxx11-enums.h Update copyright headers 2015-02-11 06:49:51 +00:00
cxx11-explicit-override-control.h Update copyright headers 2015-02-11 06:49:51 +00:00
cxx11-final-classes.h Update copyright headers 2015-02-11 06:49:51 +00:00
dir-in-include-path.h Update copyright headers 2015-02-11 06:49:51 +00:00
dollars.h Update copyright headers 2015-02-11 06:49:51 +00:00
error-on-wrong-notify.h Update copyright headers 2015-02-11 06:49:51 +00:00
escapes-in-string-literals.h Update copyright headers 2015-02-11 06:49:51 +00:00
extraqualification.h Update copyright headers 2015-02-11 06:49:51 +00:00
forgotten-qinterface.h Update copyright headers 2015-02-11 06:49:51 +00:00
forward-declared-param.h Update copyright headers 2015-02-11 06:49:51 +00:00
function-with-attributes.h Update copyright headers 2015-02-11 06:49:51 +00:00
gadgetwithnoenums.h Update copyright headers 2015-02-11 06:49:51 +00:00
grand-parent-gadget-class.h Update copyright headers 2015-02-11 06:49:51 +00:00
Header Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
interface-from-framework.h Update copyright headers 2015-02-11 06:49:51 +00:00
interface-from-include.h Update copyright headers 2015-02-11 06:49:51 +00:00
macro-on-cmdline.h Update copyright headers 2015-02-11 06:49:51 +00:00
moc.pro moc: Don't link to inexistent parent staticMetaObject 2015-01-13 11:25:53 +01:00
namespaced-flags.h Update copyright headers 2015-02-11 06:49:51 +00:00
no-keywords.h Update copyright headers 2015-02-11 06:49:51 +00:00
non-gadget-parent-class.h Update copyright headers 2015-02-11 06:49:51 +00:00
oldstyle-casts.h Update copyright headers 2015-02-11 06:49:51 +00:00
os9-newlines.h Update copyright headers 2015-02-11 06:49:51 +00:00
parse-boost.h Update copyright headers 2015-02-11 06:49:51 +00:00
parse-defines.h Update copyright headers 2015-02-11 06:49:51 +00:00
plugin_metadata.h Update copyright headers 2015-02-11 06:49:51 +00:00
pp-dollar-signs.h Update copyright headers 2015-02-11 06:49:51 +00:00
pure-virtual-signals.h Update copyright headers 2015-02-11 06:49:51 +00:00
qinvokable.h Update copyright headers 2015-02-11 06:49:51 +00:00
qprivateslots.h Update copyright headers 2015-02-11 06:49:51 +00:00
qtbug-35657-gadget.h Update copyright headers 2015-02-11 06:49:51 +00:00
related-metaobjects-in-gadget.h Update copyright headers 2015-02-11 06:49:51 +00:00
related-metaobjects-in-namespaces.h Update copyright headers 2015-02-11 06:49:51 +00:00
related-metaobjects-name-conflict.h Update copyright headers 2015-02-11 06:49:51 +00:00
single_function_keyword.h Update copyright headers 2015-02-11 06:49:51 +00:00
single-quote-digit-separator-n3781.h Update copyright headers 2015-02-11 06:49:51 +00:00
slots-with-void-template.h Update copyright headers 2015-02-11 06:49:51 +00:00
task87883.h Update copyright headers 2015-02-11 06:49:51 +00:00
task189996.h Update copyright headers 2015-02-11 06:49:51 +00:00
task192552.h Update copyright headers 2015-02-11 06:49:51 +00:00
task234909.h Update copyright headers 2015-02-11 06:49:51 +00:00
task240368.h Update copyright headers 2015-02-11 06:49:51 +00:00
template-gtgt.h Update copyright headers 2015-02-11 06:49:51 +00:00
trigraphs.h Update copyright headers 2015-02-11 06:49:51 +00:00
tst_moc.cpp moc: bail out early on missing or invalid options file 2016-03-31 08:57:39 +00:00
unterminated-function-macro.h Update copyright headers 2015-02-11 06:49:51 +00:00
using-namespaces.h Update copyright headers 2015-02-11 06:49:51 +00:00
warn-on-multiple-qobject-subclasses.h Update copyright headers 2015-02-11 06:49:51 +00:00
warn-on-property-without-read.h Update copyright headers 2015-02-11 06:49:51 +00:00
win-newlines.h Update copyright headers 2015-02-11 06:49:51 +00:00