diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-11-30 13:09:39 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-11-30 12:43:54 +0000 |
commit | 448cdb7bb5ec58f55ea5065de5325e1be9eaf238 (patch) | |
tree | 8654674697c2ea86255a90ca36935352e22aed88 /src/plugins/cpptools/compileroptionsbuilder.cpp | |
parent | 1a8fdb13791f93fe404589cc3f1e4f792f92fa96 (diff) | |
download | qt-creator-448cdb7bb5ec58f55ea5065de5325e1be9eaf238.tar.gz |
Fix a crash when editing cpp file
std::mismach() overload taking 3 arg assumes, that
second string is at least as long as the first one.
We don't guarantee this, as somethimes filePath2 is
empty string. Use 4 arg overload instead, which
ensure we don't exceed the valid range.
Fixes: QTCREATORBUG-24970
Change-Id: I8b7b11d124f69c7c9cb3246ee969f134fa026e08
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/cpptools/compileroptionsbuilder.cpp')
0 files changed, 0 insertions, 0 deletions