From ed7a648d6e717679a196f72904d9df2db1916ed50e5369810292cc124276a5b7 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 4 Mar 2020 12:06:10 +0000 Subject: [PATCH 1/3] Accepting request 781469 from home:dalgaaf:branches:devel:tools - Update to version 1.90 * alias to vector element invalid after vector is changed * improved value flow analysis for struct members * improved value flow analysis for pointer alias * CERT: Added ENV33-C: Do not call system() * MISRA: added rules 2.7, 3.2, 4.2, 14.2, 21.1, 21.12 - update to version 1.89 * The default warning message format was changed. The new format is similar to GCC. If you want to get warnings in the old format, add --template=cppcheck1 to the command line. * improved value flow analysis for pointer aliases * improved checking for uninitialized variables/structs * better checking of smart pointers * better checking of global variables * Added Cppcheck annotations cppcheck_low(VALUE) and cppcheck_high(VALUE) * shadow variables; warn when argument is shadowed * warn if local reference variable can be const * Added API01-C: Avoid laying out strings in memory directly before sensitive data * Added MSC24-C: Do not use deprecated or obsolescent functions * Added STR11-C: Do not specify the bound of a character array initialized with a string literal * MISRA: added rules 17.2, 18.4, 18.7 OBS-URL: https://build.opensuse.org/request/show/781469 OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=64 --- cppcheck-1.88.tar.bz2 | 3 --- cppcheck-1.90.tar.bz2 | 3 +++ cppcheck.changes | 29 +++++++++++++++++++++++++++++ cppcheck.spec | 4 ++-- 4 files changed, 34 insertions(+), 5 deletions(-) delete mode 100644 cppcheck-1.88.tar.bz2 create mode 100644 cppcheck-1.90.tar.bz2 diff --git a/cppcheck-1.88.tar.bz2 b/cppcheck-1.88.tar.bz2 deleted file mode 100644 index 28a9663..0000000 --- a/cppcheck-1.88.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bb25441749977713476dc630dfe7617b3d9e95c46fec0edbec4ff8ff6fda38ca -size 1865568 diff --git a/cppcheck-1.90.tar.bz2 b/cppcheck-1.90.tar.bz2 new file mode 100644 index 0000000..7d4789c --- /dev/null +++ b/cppcheck-1.90.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c362c891b6653931a49b046b71035e3185688461cfd0a266dfd606ab46f7937e +size 2033302 diff --git a/cppcheck.changes b/cppcheck.changes index a89260e..2671966 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -1,3 +1,32 @@ +------------------------------------------------------------------- +Wed Mar 4 11:32:52 UTC 2020 - Danny Al-Gaaf + +- Update to version 1.90 + * alias to vector element invalid after vector is changed + * improved value flow analysis for struct members + * improved value flow analysis for pointer alias + * CERT: Added ENV33-C: Do not call system() + * MISRA: added rules 2.7, 3.2, 4.2, 14.2, 21.1, 21.12 + +- update to version 1.89 + * The default warning message format was changed. The new format + is similar to GCC. If you want to get warnings in the old + format, add --template=cppcheck1 to the command line. + * improved value flow analysis for pointer aliases + * improved checking for uninitialized variables/structs + * better checking of smart pointers + * better checking of global variables + * Added Cppcheck annotations cppcheck_low(VALUE) and + cppcheck_high(VALUE) + * shadow variables; warn when argument is shadowed + * warn if local reference variable can be const + * Added API01-C: Avoid laying out strings in memory directly + before sensitive data + * Added MSC24-C: Do not use deprecated or obsolescent functions + * Added STR11-C: Do not specify the bound of a character array + initialized with a string literal + * MISRA: added rules 17.2, 18.4, 18.7 + ------------------------------------------------------------------- Mon Jul 1 08:22:46 UTC 2019 - Martin Liška diff --git a/cppcheck.spec b/cppcheck.spec index 05dddcb..ad5ffa8 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -1,7 +1,7 @@ # # spec file for package cppcheck # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: cppcheck -Version: 1.88 +Version: 1.90 Release: 0 Summary: A tool for static C/C++ code analysis License: GPL-3.0-or-later From 9735479051a1c0b0bf00aa40c1fe239d1762da868187138d821981f5c445d139 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 4 Mar 2020 12:18:09 +0000 Subject: [PATCH 2/3] - Use cmake macros OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=65 --- cppcheck.changes | 5 +++++ cppcheck.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cppcheck.changes b/cppcheck.changes index 2671966..414dcff 100644 --- a/cppcheck.changes +++ b/cppcheck.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 4 12:17:56 UTC 2020 - Martin Pluskal + +- Use cmake macros + ------------------------------------------------------------------- Wed Mar 4 11:32:52 UTC 2020 - Danny Al-Gaaf diff --git a/cppcheck.spec b/cppcheck.spec index ad5ffa8..e618271 100644 --- a/cppcheck.spec +++ b/cppcheck.spec @@ -78,11 +78,11 @@ doesn't see. -DBUILD_GUI=ON \ -DBUILD_TESTS=ON \ -DHAVE_RULES=yes -%make_jobs +%cmake_build # does not work with CMake, directly call provided Makefile from source directory cd .. -make man \ +%make_build man \ DB2MAN=%{_datadir}/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl # use python3 as interpreter @@ -90,7 +90,7 @@ sed -i "s|env python|python3|g" htmlreport/cppcheck-htmlreport %check export CXXFLAGS="%{optflags}" -%make_jobs check +%ctest %install install -Dpm 0755 build/bin/cppcheck \ From bb5690291a4d5a3bb6941e01b4dba2b0be90a229889eea45c4209d460079a422 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 4 Mar 2020 12:27:05 +0000 Subject: [PATCH 3/3] OBS-URL: https://build.opensuse.org/package/show/devel:tools/cppcheck?expand=0&rev=66 --- cppcheck-1.90.tar.bz2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cppcheck-1.90.tar.bz2 b/cppcheck-1.90.tar.bz2 index 7d4789c..b295018 100644 --- a/cppcheck-1.90.tar.bz2 +++ b/cppcheck-1.90.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c362c891b6653931a49b046b71035e3185688461cfd0a266dfd606ab46f7937e -size 2033302 +oid sha256:43758d56613596c29440e55ea96a5a13e36f81ca377a8939648b5242faf61883 +size 2025457