| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| |
| |
| | |
4022b286 clang-tidy: blacklist "modernize" checks
2b4c32c9 clang-format: format all code as Cpp11
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1191
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
ea359bc5 Tests: Teach Server test to print server return code
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1212
|
| |/
| |
| |
| | |
This will aid in diagnosing failures.
|
|\ \
| |/
|/|
| |
| |
| |
| | |
14d9a11b ListFileLexer: fix heap-buffer-overflow on malicious input
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1153
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In case a list file contains a null terminated string that is continued
until a later space, the lexer token information got inconsistent:
e.g. an argument "TEST\0FOOBAR" is passed by the lexer as a token
char* = "TEST\0FOOBAR" and length 11
^^ note: ascii 0x00
Using strdup in cmListFileLexer leads lexer->token.text to be allocated
with size 5 and lexer->token.length to be set to 11
A subsequent call to this function with an argument of 5 < length <= 11
wrongly assumed a sufficiently sized buffer and therefore corrupted the
heap buffer. The program might crash due to this corruption.
The case "NullTerminatedArgument" is intentionally using a quite large
'rest' to increase the chance to actually hit the issue. It will reliably
crash with address sanitizer enabled though.
This fix addresses all rules where arbitrary characters are matched to
ignore \0 in order to fall through to the rule that matches an arbitrary
character as BadCharacter.
Signed-off-by: Matthias Maennich <matthias@maennich.net>
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
311b7b1a Add properties to run cppcheck along with the compiler
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1147
|
| |/
| |
| |
| |
| |
| | |
Create a `<LANG>_CPPCHECK` target property (initialized by a
`CMAKE_<LANG>_CPPCHECK` variable) to specify a `cppcheck` command line
to be run along with the compiler.
|
|\ \
| |/
|/|
| |
| |
| |
| | |
18454ea4 cmake: Fix --find-package mode with imported targets
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1208
|
| |
| |
| |
| |
| |
| |
| |
| | |
The change in commit v3.9.0-rc1~116^2~6 (cmakemain: use script role for
-P, 2017-05-11) accidentally left project commands out of find-package
mode, causing packages that provide imported targets to break.
Fixes: #17124
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
ebc91a44 Avoid CRLF newlines in Git repo blobs
c69b4c8d bzip2: Drop unused .dsp files
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !1211
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In commit 8ed03baa76 (gitattributes: prefer `eol=crlf` to `-crlf`,
2017-08-23) we left a few CRLF blobs in the repository. Some Git
versions get confused by text files with CRLF blobs. Convert them
to LF blobs. Use the `eol=crlf` attribute to tell Git to use CRLF
on checkout.
|
|\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | | |
190e3825 Replace C-style casts
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1176
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
ce602feb Tests: Fix RunCMake.BuildDepends on VS 2017 with v90 toolset
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1186
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The MSVC toolsets v100 and below forget to re-link when a manifest
changes. Exclude this part of the test case for them.
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
27d87fbd CTestCustom: Suppress exception loosening warning
7f29bbe6 server: always enable server
4614a3b2 server: backport to C++11
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1149
|
| | |/ /
| |/| | |
|
|/ / /
| | |
| | |
| | | |
Also remove `#include "cmConfigure.h"` from most source files.
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
5962db43 Use C++11 nullptr
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1175
|
| | | | |
|
|\ \ \ \
| |_|/ /
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
8ed03baa gitattributes: prefer `eol=crlf` to `-crlf`
40470031 MumpsCoverage: remove unnecessary attribute
d20485d8 gitattributes: prefer `eol=lf` to `crlf=input`
b85c2589 gitattributes: prefer `-text` for binary files
377f3685 gitattributes: remove unused attributes
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1173
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The `crlf` attribute is deprecated in Git. This also changes the given
files to be in the index using LF newlines, but they will be checked
out with CRLF newlines due to the attribute.
|
| | | |
| | | |
| | | |
| | | | |
The file has Unix newline endings.
|
| | | |
| | | |
| | | |
| | | | |
The `crlf` attribute is deprecated in Git.
|
| | | | |
|
|\ \ \ \
| |_|/ /
|/| | |
| | | |
| | | |
| | | |
| | | | |
6756b552 Tests: Print more info on CheckIPOSupported test failure
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1177
|
| |/ / |
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
80047bd6 CPack: extend testing framework
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1162
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Some CPack tests require running
commands after the inclusion of
CPack.cmake and this patch enables
such tests to declare run_after_include_cpack
function which is run after the
inclusion.
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
d8ecc254 Add PREPEND sub-command to string command
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1129
|
| | | |
|
|\ \ \ |
|
| | |/
| |/| |
|
| |\ \
| | | |
| | | |
| | | | |
Merge-request: !1116
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
15ef2728 Autogen: Add test for OBJECT libraries
362f9bd7 Autogen: Merge and remove redundant function calls
952fc65d Autogen: Clear sources meta data cache
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1120
|
| | |_|/
| |/| | |
|
|\ \ \ \
| |/ / /
|/| | |
| | | |
| | | |
| | | |
| | | | |
4f7d9eef Features: Fix COMPILE_FEATURES genex for C++ 14 and 17 features
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1118
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When `CXX_STANDARD` is not at least 14 or 17, features enabled by the
compiler for those standards should not be reported as existing by the
`COMPILE_FEATURES` genex. Fix the implementation and add a test.
|
|\ \ \ \
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | | |
e574bce1 Tests: Simplify RunCMake.find_package PackageRoot case regexes
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Chuck Atkins <chuck.atkins@kitware.com>
Merge-request: !1115
|
| | | | |
|
|\ \ \ \
| |_|/ /
|/| | /
| | |/
| |/|
| | |
| | | |
578d95f8 find_*: Disable the PACKAGE_ROOT search path group for CMake 3.9
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1116
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Disable the feature added by commit v3.9.0-rc1~71^2~2 (find_*: Add a new
PackageRoot search path group, 2017-05-03) and remove documentation
added by commit v3.9.0-rc1~71^2 (find_*: Add docs for PackageRoot search
path group, 2017-05-03). Unfortunately the name `<pkg>_ROOT` may
already be set by projects for their own incompatible purposes. Disable
the behavior change for now to fix the regression for CMake 3.9. We can
restore it later with a policy.
In order to keep the implementation and tests working, add an
undocumented variable we can use in the tests to enable the behavior
before the policy is introduced.
Fixes: #17144
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
bfcda401 Add dynamic test discovery for for Google Test
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1056
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add a new gtest_discover_tests function to GoogleTest.cmake,
implementing dynamic test discovery (i.e. tests are discovered by
actually running the test executable and asking for the list of
available tests, which is used to dynamically declare the tests) rather
than the source-parsing approach used by gtest_add_tests. Compared to
the source-parsing approach, this has the advantage of being robust
against users declaring tests in unusual ways, and much better support
for advanced features such as parameterized tests.
A unit test, modeled after the TEST_INCLUDE_DIR[S] test, is also
included. Note that the unit test does not actually require that Google
Test is available. The new functionality does not actually depend on
Google Test as such; it only requires that the test executable lists
tests in the expected format when invoked with --gtest_list_tests, which
the unit test can fake readily.
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
49640d36 HP-UX: Drop support for building CMake on HP-UX
acd462dd README: Add AIX to list of supported platforms
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1105
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
CMake will soon require both C++11 and libuv to build. Neither of
these works on HP-UX, so unfortunately we need to drop support for
the platform until someone can get them working.
Issue: #17137
|