Update to cppcheck 2.18.0

This commit is contained in:
matt335672
2025-07-21 10:10:51 +01:00
parent 854d9489df
commit 5853a781b9
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ jobs:
CC: gcc
# This is required to use a version of cppcheck other than that
# supplied with the operating system
CPPCHECK_VER: "2.17.1"
CPPCHECK_VER: "2.18.0"
CPPCHECK_REPO: https://github.com/danmar/cppcheck.git
steps:
# Set steps.os.outputs.image to the specific OS (e.g. 'ubuntu20')
+1
View File
@@ -86,6 +86,7 @@ if [ -z "$CPPCHECK_FLAGS" ]; then
CPPCHECK_FLAGS="--quiet --force --std=c11 --std=c++11 --inline-suppr \
--enable=warning --error-exitcode=1 -i third_party \
--suppress=uninitMemberVar:ulalaca/ulalaca.cpp \
--suppress=dangerousTypeCast:ulalaca/XrdpStream.template.cpp \
--suppress=shiftTooManyBits:libxrdp/xrdp_mppc_enc.c"
# Check for flags added in later versions
+3
View File
@@ -225,6 +225,7 @@ tconfig_load_gfx_x264_ct(toml_table_t *tfile, const int connection_type,
datum.u.s,
sizeof(param[connection_type].preset) - 1);
free(datum.u.s);
datum.u.s = NULL;
}
else if (connection_type == 0)
{
@@ -245,6 +246,7 @@ tconfig_load_gfx_x264_ct(toml_table_t *tfile, const int connection_type,
datum.u.s,
sizeof(param[connection_type].tune) - 1);
free(datum.u.s);
datum.u.s = NULL;
}
else if (connection_type == 0)
{
@@ -265,6 +267,7 @@ tconfig_load_gfx_x264_ct(toml_table_t *tfile, const int connection_type,
datum.u.s,
sizeof(param[connection_type].profile) - 1);
free(datum.u.s);
datum.u.s = NULL; // Prevent double-free warning with cppcheck 2.18.0
}
else if (connection_type == 0)
{