| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Similar to the other includes, this one should be suppressed as well.
|
|
|
|
|
|
| |
Move a declaration added by commit 3f6ff4b5db (create_test_sourcelist:
add test driver option to run all tests, 2021-04-27, v3.21.0-rc1~257^2)
into its own scope.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
New option `-A` passed to test binary allows to run all testcases at
once and prints a report in a standard format - TestAnythingProtocol v.13 [1].
Execution of test whose names will be passed after an option will be skipped.
Sample of output:
TAP version 13
1..6
ok 1 TestCryptoHash # 0.030000
ok 2 TestCryptoRand # 0.008000
not ok 3 TestCryptoCipher # 0.005000
ok 4 TestCryptoProtectData # 0.000000
cbPlainText: 21 cbCipherText: 32
PlainText: MySecretPassword123! (cbPlainText = 21, cbCipherText = 32)
Decrypted CipherText: MySecretPassword123!
ok 5 TestCryptoProtectMemory # 0.014000
ok 6 TestCryptoCertEnumCertificatesInStore # 0.000000
1. https://testanything.org/
Fixes: #19367
|
|
|
|
| |
Rename `CMAKE_FUNCTION_TABLE_{ENTIRES => ENTRIES}`.
|
| |
|
|
|
|
|
| |
clang-analyzer has a check for any use of `strcpy`. This usage is safe
because it is allocated above using the length of the string.
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
bbbcbb1a48 TestDriver: Disable clang-tidy 'modernize-use-using'
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2118
|
| | |
|
|/
|
|
|
|
|
|
| |
GCC 8.1.0 now gives an error if `strncpy` is called with a bound
depending on the length of the source argument. Replace `strncpy` with
`strcpy` as the length is known a priori.
Fixes: #18038
|
|
|
|
|
| |
When applied on a user project, cppcheck complains that the 'test_name'
variable could have a reduced scope.
|
|
|
|
|
|
|
| |
Since commit v3.8.0-rc1~51^2~1 (TestDriver: calc NumTests at compile
time, 2017-01-24) we convert an expression that uses `sizeof()` to an
`int` as a compile-time constant. Some GCC versions warn about this
with `-Wconversion`. Add a cast to avoid the warning.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Clang-tidy advises to use a safer function in place of strcpy.
This should avoid such warnings in user build using clang-tidy.
|
|
|
|
| |
Suggested-by: Ken Moreland <kmorel@sandia.gov>
|
|
|
|
| |
Clang -Wconditional-uninitialized warns otherwise.
|
|
|
|
| |
Mark private function/global with static linkage.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As reported by Coverity Scan, if the configured file contains a #include,
Untrusted array index read
The array index could be controlled by an attacker, leading to reads outside
the bounds of the array.
In main: Read from array at index computed using an unscrutinized value from
an untrusted source (CWE-129)
CID 1081283 (#1 of 1): Untrusted array index read (TAINTED_SCALAR)
25. tainted_data: Using tainted variable "testToRun" as an index into an array
"cmakeGeneratedFunctionMapEntries".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Our Git commit hooks disallow modification or addition of lines with
trailing whitespace. Wipe out all remnants of trailing whitespace
everywhere except third-party code.
Run the following shell code:
git ls-files -z -- \
bootstrap doxygen.config '*.readme' \
'*.c' '*.cmake' '*.cpp' '*.cxx' \
'*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \
'*.mm' '*.pike' '*.py' '*.txt' '*.vim' |
egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' |
egrep -z -v '^(Modules/CPack\..*\.in)' |
xargs -0 sed -i 's/ \+$//'
|
|
|
|
| |
allow being configured as C. Thanks to Monsieur Francois Bertel for the patch.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
generating all the code. fixes bug 28
|