libdnf-0.73.1-1.fc41
List of Defects
Error: COMPILER_WARNING (CWE-758): [#def1]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_common_types.dir/common_typesPYTHON_wrap.cxx:3225:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__common_types()’
# 3225 | # define SWIG_init PyInit__common_types
# | ^~~~~~~~~~~~~~~~~~~~
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_common_types.dir/common_typesPYTHON_wrap.cxx:17880:1: note: in expansion of macro ‘SWIG_init’
#17880 | SWIG_init(void) {
# | ^~~~~~~~~
# 3223| ------------------------------------------------*/
# 3224| #if PY_VERSION_HEX >= 0x03000000
# 3225|-> # define SWIG_init PyInit__common_types
# 3226|
# 3227| #else
Error: COMPILER_WARNING (CWE-758): [#def2]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_conf.dir/confPYTHON_wrap.cxx:3257:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__conf()’
# 3257 | # define SWIG_init PyInit__conf
# | ^~~~~~~~~~~~
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_conf.dir/confPYTHON_wrap.cxx:30310:1: note: in expansion of macro ‘SWIG_init’
#30310 | SWIG_init(void) {
# | ^~~~~~~~~
# 3255| ------------------------------------------------*/
# 3256| #if PY_VERSION_HEX >= 0x03000000
# 3257|-> # define SWIG_init PyInit__conf
# 3258|
# 3259| #else
Error: COMPILER_WARNING (CWE-758): [#def3]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_error.dir/errorPYTHON_wrap.cxx:3175:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__error()’
# 3175 | # define SWIG_init PyInit__error
# | ^~~~~~~~~~~~~
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_error.dir/errorPYTHON_wrap.cxx:3677:1: note: in expansion of macro ‘SWIG_init’
# 3677 | SWIG_init(void) {
# | ^~~~~~~~~
# 3173| ------------------------------------------------*/
# 3174| #if PY_VERSION_HEX >= 0x03000000
# 3175|-> # define SWIG_init PyInit__error
# 3176|
# 3177| #else
Error: COMPILER_WARNING (CWE-758): [#def4]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx: scope_hint: At global scope
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:3233:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__module()’
# 3233 | # define SWIG_init PyInit__module
# | ^~~~~~~~~~~~~~
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:32225:1: note: in expansion of macro ‘SWIG_init’
#32225 | SWIG_init(void) {
# | ^~~~~~~~~
# 3231| ------------------------------------------------*/
# 3232| #if PY_VERSION_HEX >= 0x03000000
# 3233|-> # define SWIG_init PyInit__module
# 3234|
# 3235| #else
Error: COMPILER_WARNING (CWE-477): [#def5]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx: scope_hint: In function ‘PyObject* _wrap_ModulePackageContainer_getDisabledStreams(PyObject*, PyObject*)’
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:29622:42: warning[-Wdeprecated-declarations]: ‘std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > libdnf::ModulePackageContainer::getDisabledStreams()’ is deprecated: Will be removed after 2019-12-31. Use getDisabledModules() instead.
#29622 | result = (arg1)->getDisabledStreams();
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:3899: included_from: Included from here.
libdnf-0.73.1/libdnf/module/ModulePackageContainer.hpp:251:40: note: declared here
# 251 | std::map<std::string, std::string> getDisabledStreams();
# | ^~~~~~~~~~~~~~~~~~
#29620| {
#29621| try {
#29622|-> result = (arg1)->getDisabledStreams();
#29623| } catch (const libdnf::Error & e) {
#29624| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: COMPILER_WARNING (CWE-477): [#def6]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx: scope_hint: In function ‘PyObject* _wrap_ModulePackageContainer_getResetStreams(PyObject*, PyObject*)’
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:29692:39: warning[-Wdeprecated-declarations]: ‘std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > libdnf::ModulePackageContainer::getResetStreams()’ is deprecated: Will be removed after 2019-12-31. Use getResetModules() instead.
#29692 | result = (arg1)->getResetStreams();
# | ~~~~~~~~~~~~~~~~~~~~~~~^~
libdnf-0.73.1/libdnf/module/ModulePackageContainer.hpp:263:40: note: declared here
# 263 | std::map<std::string, std::string> getResetStreams();
# | ^~~~~~~~~~~~~~~
#29690| {
#29691| try {
#29692|-> result = (arg1)->getResetStreams();
#29693| } catch (const libdnf::Error & e) {
#29694| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: COMPILER_WARNING (CWE-758): [#def7]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_repo.dir/repoPYTHON_wrap.cxx:3718:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__repo()’
# 3718 | # define SWIG_init PyInit__repo
# | ^~~~~~~~~~~~
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_repo.dir/repoPYTHON_wrap.cxx:17560:1: note: in expansion of macro ‘SWIG_init’
#17560 | SWIG_init(void) {
# | ^~~~~~~~~
# 3716| ------------------------------------------------*/
# 3717| #if PY_VERSION_HEX >= 0x03000000
# 3718|-> # define SWIG_init PyInit__repo
# 3719|
# 3720| #else
Error: COMPILER_WARNING (CWE-758): [#def8]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:3199:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__smartcols()’
# 3199 | # define SWIG_init PyInit__smartcols
# | ^~~~~~~~~~~~~~~~~
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:11743:1: note: in expansion of macro ‘SWIG_init’
#11743 | SWIG_init(void) {
# | ^~~~~~~~~
# 3197| ------------------------------------------------*/
# 3198| #if PY_VERSION_HEX >= 0x03000000
# 3199|-> # define SWIG_init PyInit__smartcols
# 3200|
# 3201| #else
Error: CPPCHECK_WARNING (CWE-476): [#def9]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:4339: warning[nullPointer]: Possible null pointer dereference: arg1
# 4337| {
# 4338| try {
# 4339|-> (arg1)->setDefaultSymbols();
# 4340| } catch (const libdnf::Error & e) {
# 4341| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def10]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:4545: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 4543| {
# 4544| try {
# 4545|-> result = (char *)((Table const *)arg1)->getName();
# 4546| } catch (const libdnf::Error & e) {
# 4547| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def11]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:4592: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 4590| {
# 4591| try {
# 4592|-> result = (char *)((Table const *)arg1)->getColumnSeparator();
# 4593| } catch (const libdnf::Error & e) {
# 4594| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def12]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:4639: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 4637| {
# 4638| try {
# 4639|-> result = (char *)((Table const *)arg1)->getLineSeparator();
# 4640| } catch (const libdnf::Error & e) {
# 4641| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def13]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:4686: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 4684| {
# 4685| try {
# 4686|-> result = ((Table const *)arg1)->getNumberOfColumns();
# 4687| } catch (const libdnf::Error & e) {
# 4688| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def14]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:4733: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 4731| {
# 4732| try {
# 4733|-> result = ((Table const *)arg1)->getNumberOfLines();
# 4734| } catch (const libdnf::Error & e) {
# 4735| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def15]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:4780: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 4778| {
# 4779| try {
# 4780|-> result = ((Table const *)arg1)->getTitle();
# 4781| } catch (const libdnf::Error & e) {
# 4782| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def16]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:4944: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 4942| {
# 4943| try {
# 4944|-> result = (Table::TermForce)((Table const *)arg1)->getTermforce();
# 4945| } catch (const libdnf::Error & e) {
# 4946| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def17]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:4991: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 4989| {
# 4990| try {
# 4991|-> result = (libscols_symbols *)((Table const *)arg1)->getSymbols();
# 4992| } catch (const libdnf::Error & e) {
# 4993| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def18]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:5038: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 5036| {
# 5037| try {
# 5038|-> result = ((Table const *)arg1)->getTermwidth();
# 5039| } catch (const libdnf::Error & e) {
# 5040| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def19]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:5085: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 5083| {
# 5084| try {
# 5085|-> result = (FILE *)((Table const *)arg1)->getStream();
# 5086| } catch (const libdnf::Error & e) {
# 5087| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def20]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:5132: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 5130| {
# 5131| try {
# 5132|-> result = (bool)((Table const *)arg1)->isColorsEnabled();
# 5133| } catch (const libdnf::Error & e) {
# 5134| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def21]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:5179: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 5177| {
# 5178| try {
# 5179|-> result = (bool)((Table const *)arg1)->isRaw();
# 5180| } catch (const libdnf::Error & e) {
# 5181| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def22]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:5226: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 5224| {
# 5225| try {
# 5226|-> result = (bool)((Table const *)arg1)->isAscii();
# 5227| } catch (const libdnf::Error & e) {
# 5228| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def23]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:5273: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 5271| {
# 5272| try {
# 5273|-> result = (bool)((Table const *)arg1)->isJson();
# 5274| } catch (const libdnf::Error & e) {
# 5275| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def24]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:5320: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 5318| {
# 5319| try {
# 5320|-> result = (bool)((Table const *)arg1)->isNoheadings();
# 5321| } catch (const libdnf::Error & e) {
# 5322| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def25]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:5367: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 5365| {
# 5366| try {
# 5367|-> result = (bool)((Table const *)arg1)->isEmpty();
# 5368| } catch (const libdnf::Error & e) {
# 5369| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def26]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:5414: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 5412| {
# 5413| try {
# 5414|-> result = (bool)((Table const *)arg1)->isExport();
# 5415| } catch (const libdnf::Error & e) {
# 5416| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def27]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:5461: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 5459| {
# 5460| try {
# 5461|-> result = (bool)((Table const *)arg1)->isMaxout();
# 5462| } catch (const libdnf::Error & e) {
# 5463| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def28]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:5508: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 5506| {
# 5507| try {
# 5508|-> result = (bool)((Table const *)arg1)->isNowrap();
# 5509| } catch (const libdnf::Error & e) {
# 5510| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def29]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:5555: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 5553| {
# 5554| try {
# 5555|-> result = (bool)((Table const *)arg1)->isNoLineSeparator();
# 5556| } catch (const libdnf::Error & e) {
# 5557| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def30]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:5602: warning[nullPointer]: Possible null pointer dereference: (const Table*)arg1
# 5600| {
# 5601| try {
# 5602|-> result = (bool)((Table const *)arg1)->isTree();
# 5603| } catch (const libdnf::Error & e) {
# 5604| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def31]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:6251: warning[nullPointer]: Possible null pointer dereference: arg1
# 6249| {
# 6250| try {
# 6251|-> (arg1)->removeColumns();
# 6252| } catch (const libdnf::Error & e) {
# 6253| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def32]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:6850: warning[nullPointer]: Possible null pointer dereference: arg1
# 6848| {
# 6849| try {
# 6850|-> (arg1)->removeLines();
# 6851| } catch (const libdnf::Error & e) {
# 6852| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def33]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:6895: warning[nullPointer]: Possible null pointer dereference: arg1
# 6893| {
# 6894| try {
# 6895|-> result = (arg1)->newLine();
# 6896| } catch (const libdnf::Error & e) {
# 6897| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def34]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:7224: warning[nullPointer]: Possible null pointer dereference: arg1
# 7222| {
# 7223| try {
# 7224|-> (arg1)->sortByTree();
# 7225| } catch (const libdnf::Error & e) {
# 7226| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def35]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:7268: warning[nullPointer]: Possible null pointer dereference: arg1
# 7266| {
# 7267| try {
# 7268|-> (arg1)->print();
# 7269| } catch (const libdnf::Error & e) {
# 7270| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def36]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:7435: warning[nullPointer]: Possible null pointer dereference: arg1
# 7433| {
# 7434| try {
# 7435|-> result = (arg1)->toString();
# 7436| } catch (const libdnf::Error & e) {
# 7437| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def37]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:7884: warning[nullPointer]: Possible null pointer dereference: (const Column*)arg1
# 7882| {
# 7883| try {
# 7884|-> result = (bool)((Column const *)arg1)->isTree();
# 7885| } catch (const libdnf::Error & e) {
# 7886| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def38]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:7931: warning[nullPointer]: Possible null pointer dereference: (const Column*)arg1
# 7929| {
# 7930| try {
# 7931|-> result = (bool)((Column const *)arg1)->isTrunc();
# 7932| } catch (const libdnf::Error & e) {
# 7933| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def39]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:7978: warning[nullPointer]: Possible null pointer dereference: (const Column*)arg1
# 7976| {
# 7977| try {
# 7978|-> result = (bool)((Column const *)arg1)->isRight();
# 7979| } catch (const libdnf::Error & e) {
# 7980| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def40]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:8025: warning[nullPointer]: Possible null pointer dereference: (const Column*)arg1
# 8023| {
# 8024| try {
# 8025|-> result = (bool)((Column const *)arg1)->isStrictWidth();
# 8026| } catch (const libdnf::Error & e) {
# 8027| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def41]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:8072: warning[nullPointer]: Possible null pointer dereference: (const Column*)arg1
# 8070| {
# 8071| try {
# 8072|-> result = (bool)((Column const *)arg1)->isHidden();
# 8073| } catch (const libdnf::Error & e) {
# 8074| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def42]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:8119: warning[nullPointer]: Possible null pointer dereference: (const Column*)arg1
# 8117| {
# 8118| try {
# 8119|-> result = (bool)((Column const *)arg1)->isNoextremes();
# 8120| } catch (const libdnf::Error & e) {
# 8121| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def43]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:8166: warning[nullPointer]: Possible null pointer dereference: (const Column*)arg1
# 8164| {
# 8165| try {
# 8166|-> result = (bool)((Column const *)arg1)->isWrap();
# 8167| } catch (const libdnf::Error & e) {
# 8168| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def44]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:8213: warning[nullPointer]: Possible null pointer dereference: (const Column*)arg1
# 8211| {
# 8212| try {
# 8213|-> result = (bool)((Column const *)arg1)->isCustomwrap();
# 8214| } catch (const libdnf::Error & e) {
# 8215| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def45]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:8260: warning[nullPointer]: Possible null pointer dereference: (const Column*)arg1
# 8258| {
# 8259| try {
# 8260|-> result = (int)((Column const *)arg1)->getFlags();
# 8261| } catch (const libdnf::Error & e) {
# 8262| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def46]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:8307: warning[nullPointer]: Possible null pointer dereference: (const Column*)arg1
# 8305| {
# 8306| try {
# 8307|-> result = (double)((Column const *)arg1)->getWidthHint();
# 8308| } catch (const libdnf::Error & e) {
# 8309| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def47]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:8354: warning[nullPointer]: Possible null pointer dereference: (const Column*)arg1
# 8352| {
# 8353| try {
# 8354|-> result = ((Column const *)arg1)->getWidth();
# 8355| } catch (const libdnf::Error & e) {
# 8356| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def48]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:8401: warning[nullPointer]: Possible null pointer dereference: (const Column*)arg1
# 8399| {
# 8400| try {
# 8401|-> result = ((Column const *)arg1)->getSafechars();
# 8402| } catch (const libdnf::Error & e) {
# 8403| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def49]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:8448: warning[nullPointer]: Possible null pointer dereference: (const Column*)arg1
# 8446| {
# 8447| try {
# 8448|-> result = ((Column const *)arg1)->getColor();
# 8449| } catch (const libdnf::Error & e) {
# 8450| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def50]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:8495: warning[nullPointer]: Possible null pointer dereference: (const Column*)arg1
# 8493| {
# 8494| try {
# 8495|-> result = ((Column const *)arg1)->getHeader();
# 8496| } catch (const libdnf::Error & e) {
# 8497| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def51]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:8946: warning[nullPointer]: Possible null pointer dereference: arg1
# 8944| {
# 8945| try {
# 8946|-> (arg1)->setNewlineWrapFunction();
# 8947| } catch (const libdnf::Error & e) {
# 8948| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def52]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:9222: warning[nullPointer]: Possible null pointer dereference: arg1
# 9220| {
# 9221| try {
# 9222|-> (arg1)->freeCells();
# 9223| } catch (const libdnf::Error & e) {
# 9224| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def53]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:9596: warning[nullPointer]: Possible null pointer dereference: (const Line*)arg1
# 9594| {
# 9595| try {
# 9596|-> result = (bool)((Line const *)arg1)->hasChildren();
# 9597| } catch (const libdnf::Error & e) {
# 9598| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def54]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:9709: warning[nullPointer]: Possible null pointer dereference: (const Line*)arg1
# 9707| {
# 9708| try {
# 9709|-> result = ((Line const *)arg1)->getCellCount();
# 9710| } catch (const libdnf::Error & e) {
# 9711| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def55]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:9756: warning[nullPointer]: Possible null pointer dereference: (const Line*)arg1
# 9754| {
# 9755| try {
# 9756|-> result = (char *)((Line const *)arg1)->getColor();
# 9757| } catch (const libdnf::Error & e) {
# 9758| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def56]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:10036: warning[nullPointer]: Possible null pointer dereference: (const Line*)arg1
#10034| {
#10035| try {
#10036|-> result = ((Line const *)arg1)->getParent();
#10037| } catch (const libdnf::Error & e) {
#10038| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def57]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:10086: warning[nullPointer]: Possible null pointer dereference: (const Line*)arg1
#10084| {
#10085| try {
#10086|-> result = (void *)((Line const *)arg1)->getUserdata();
#10087| } catch (const libdnf::Error & e) {
#10088| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def58]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:10566: warning[nullPointer]: Possible null pointer dereference: arg1
#10564| {
#10565| try {
#10566|-> (arg1)->reset();
#10567| } catch (const libdnf::Error & e) {
#10568| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def59]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:10613: warning[nullPointer]: Possible null pointer dereference: (const Cell*)arg1
#10611| {
#10612| try {
#10613|-> result = (int)((Cell const *)arg1)->getFlags();
#10614| } catch (const libdnf::Error & e) {
#10615| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def60]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:10660: warning[nullPointer]: Possible null pointer dereference: (const Cell*)arg1
#10658| {
#10659| try {
#10660|-> result = (int)((Cell const *)arg1)->getAlignment();
#10661| } catch (const libdnf::Error & e) {
#10662| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def61]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:10707: warning[nullPointer]: Possible null pointer dereference: (const Cell*)arg1
#10705| {
#10706| try {
#10707|-> result = (char *)((Cell const *)arg1)->getData();
#10708| } catch (const libdnf::Error & e) {
#10709| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def62]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:10754: warning[nullPointer]: Possible null pointer dereference: (const Cell*)arg1
#10752| {
#10753| try {
#10754|-> result = (char *)((Cell const *)arg1)->getColor();
#10755| } catch (const libdnf::Error & e) {
#10756| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def63]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:10801: warning[nullPointer]: Possible null pointer dereference: (const Cell*)arg1
#10799| {
#10800| try {
#10801|-> result = (void *)((Cell const *)arg1)->getUserdata();
#10802| } catch (const libdnf::Error & e) {
#10803| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: COMPILER_WARNING (CWE-758): [#def64]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:3230:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__transaction()’
# 3230 | # define SWIG_init PyInit__transaction
# | ^~~~~~~~~~~~~~~~~~~
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:20907:1: note: in expansion of macro ‘SWIG_init’
#20907 | SWIG_init(void) {
# | ^~~~~~~~~
# 3228| ------------------------------------------------*/
# 3229| #if PY_VERSION_HEX >= 0x03000000
# 3230|-> # define SWIG_init PyInit__transaction
# 3231|
# 3232| #else
Error: COMPILER_WARNING (CWE-758): [#def65]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_utils.dir/utilsPYTHON_wrap.cxx:3675:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__utils()’
# 3675 | # define SWIG_init PyInit__utils
# | ^~~~~~~~~~~~~
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_utils.dir/utilsPYTHON_wrap.cxx:7176:1: note: in expansion of macro ‘SWIG_init’
# 7176 | SWIG_init(void) {
# | ^~~~~~~~~
# 3673| ------------------------------------------------*/
# 3674| #if PY_VERSION_HEX >= 0x03000000
# 3675|-> # define SWIG_init PyInit__utils
# 3676|
# 3677| #else
Error: CPPCHECK_WARNING (CWE-476): [#def66]
libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_utils.dir/utilsPYTHON_wrap.cxx:4333: warning[nullPointer]: Possible null pointer dereference: arg1
# 4331| {
# 4332| try {
# 4333|-> (arg1)->close();
# 4334| } catch (const libdnf::Error & e) {
# 4335| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-562): [#def67]
libdnf-0.73.1/libdnf/conf/ConfigParser.cpp:194: error[invalidLifetime]: Using pointer to local variable 'empty' that is out of scope.
# 192|
# 193| // If there is no substitution to make, move past the variable expression and continue.
# 194|-> if (subst_str == nullptr) {
# 195| total_scanned += pos_after_variable_expression - pos;
# 196| pos = pos_after_variable_expression;
Error: CLANG_WARNING: [#def68]
libdnf-0.73.1/libdnf/conf/ConfigParser.cpp:21: included_from: Included from here.
libdnf-0.73.1/libdnf/conf/ConfigParser.hpp:201:9: warning[cplusplus.Move]: Moved-from object 'rawItem' of type 'std::basic_string' is moved
# 199| return false;
# 200| if (!rawLine.empty())
# 201|-> rawItems[section] = std::move(rawLine);
# 202| data[std::move(section)] = {};
# 203| return true;
Error: CLANG_WARNING: [#def69]
libdnf-0.73.1/libdnf/conf/ConfigParser.hpp:243:5: warning[cplusplus.Move]: Moved-from object 'value' of type 'std::basic_string' is moved
# 241| else
# 242| rawItems[section + ']' + key] = std::move(rawItem);
# 243|-> sectionIter->second[std::move(key)] = std::move(value);
# 244| }
# 245|
Error: CLANG_WARNING: [#def70]
libdnf-0.73.1/libdnf/dnf-repo.cpp:986:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'baseurls'
# 984| }
# 985| if (!lr_handle_setopt(priv->repo_handle, error, LRO_URLS, baseurls))
# 986|-> return FALSE;
# 987|
# 988| const char *mirrorlisturl = NULL;
Error: CLANG_WARNING: [#def71]
libdnf-0.73.1/libdnf/dnf-sack.cpp:1799:28: warning[deadcode.DeadStores]: Although the value stored to 'flags' is used in the enclosing expression, the value is never actually read from 'flags'
# 1797| auto repoImpl = libdnf::repoGetImpl(hrepo);
# 1798|
# 1799|-> repoImpl->load_flags = flags &= ~DNF_SACK_LOAD_FLAG_BUILD_CACHE;
# 1800|
# 1801| repo = repo_create(pool, HY_SYSTEM_REPO_NAME);
Error: CPPCHECK_WARNING (CWE-562): [#def72]
libdnf-0.73.1/libdnf/hy-iutil.cpp:547: error[returnDanglingLifetime]: Returning pointer to local variable 'dup' that will be invalid when returning.
# 545| {
# 546| char *dup = pool_alloctmpspace(pool, strlen(s) + 1);
# 547|-> return strcpy(dup, s);
# 548| }
# 549|
Error: COMPILER_WARNING: [#def73]
libdnf-0.73.1/libdnf/hy-package.cpp:58:3: warning[-Wodr]: type ‘struct DnfPackagePrivate’ violates the C++ One Definition Rule
# 58 | } DnfPackagePrivate;
# | ^
libdnf-0.73.1/libdnf/dnf-package.cpp:62:3: note: a different type is defined in another translation unit
# 62 | } DnfPackagePrivate;
# | ^
libdnf-0.73.1/libdnf/hy-package.cpp:55:22: note: the first difference of corresponding definitions is field ‘loaded’
# 55 | gboolean loaded;
# | ^
libdnf-0.73.1/libdnf/dnf-package.cpp:54:22: note: a field with different name is defined in another translation unit
# 54 | char *checksum_str;
# | ^
# 56| Id id;
# 57| DnfSack *sack;
# 58|-> } DnfPackagePrivate;
# 59|
# 60| G_DEFINE_TYPE_WITH_PRIVATE(DnfPackage, dnf_package, G_TYPE_OBJECT)
Error: CPPCHECK_WARNING (CWE-476): [#def74]
libdnf-0.73.1/libdnf/utils/smartcols/Line.hpp:44: warning[nullPointer]: Possible null pointer dereference: child
# 42| void freeCells() { scols_line_free_cells(line); }
# 43|
# 44|-> void addChild(Line *child) { scols_line_add_child(line, child->line); }
# 45| void removeChild(Line *child) { scols_line_remove_child(line, child->line); }
# 46| std::shared_ptr<Line> nextChild(struct libscols_iter *iter);
Error: CPPCHECK_WARNING (CWE-476): [#def75]
libdnf-0.73.1/libdnf/utils/smartcols/Line.hpp:45: warning[nullPointer]: Possible null pointer dereference: child
# 43|
# 44| void addChild(Line *child) { scols_line_add_child(line, child->line); }
# 45|-> void removeChild(Line *child) { scols_line_remove_child(line, child->line); }
# 46| std::shared_ptr<Line> nextChild(struct libscols_iter *iter);
# 47|
Error: CPPCHECK_WARNING (CWE-476): [#def76]
libdnf-0.73.1/libdnf/utils/smartcols/Line.hpp:52: warning[nullPointer]: Possible null pointer dereference: parent
# 50|
# 51| bool hasChildren() const noexcept { return scols_line_has_children(line) == 1; }
# 52|-> bool isAncestor(Line *parent) const noexcept { return scols_line_is_ancestor(line, parent->line) == 1; }
# 53|
# 54| size_t getCellCount() const noexcept { return scols_line_get_ncells(line); }
Error: CLANG_WARNING: [#def77]
libdnf-0.73.1/python/hawkey/subject-py.cpp:196:17: warning[cplusplus.Move]: Method called on moved-from object 'nevraObj'
# 194| } else {
# 195| for (std::size_t i = 0; HY_FORMS_MOST_SPEC[i] != _HY_FORM_STOP_; ++i) {
# 196|-> if (nevraObj.parse(self->pattern, HY_FORMS_MOST_SPEC[i])) {
# 197| if (!addNevraToPyList(list.get(), std::move(nevraObj)))
# 198| return NULL;
Error: CLANG_WARNING: [#def78]
libdnf-0.73.1/python/hawkey/subject-py.cpp:261:17: warning[cplusplus.Move]: Method called on moved-from object 'nsvcapObj'
# 259| } else {
# 260| for (std::size_t i = 0; HY_MODULE_FORMS_MOST_SPEC[i] != _HY_MODULE_FORM_STOP_; ++i) {
# 261|-> if (nsvcapObj.parse(self->pattern, HY_MODULE_FORMS_MOST_SPEC[i])) {
# 262| if (!addNsvcapToPyList(list.get(), std::move(nsvcapObj)))
# 263| return NULL;
Error: COMPILER_WARNING: [#def79]
libdnf-0.73.1/tests/hawkey/test_goal.cpp:54:17: warning: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 52| GPtrArray *plist = hy_query_run(q);
# 53| fail_unless(plist->len == 1,
# 54|-> "get_latest_pkg() failed finding '%s'.", name);
# 55| auto pkg = static_cast<DnfPackage *>(g_object_ref(g_ptr_array_index(plist, 0)));
# 56| hy_query_free(q);
Error: COMPILER_WARNING: [#def80]
libdnf-0.73.1/tests/hawkey/test_goal.cpp:54:17: warning: 474 | assert_list_names<&dnf_package_get_name>(true, plist, "penny", NULL);
# 52| GPtrArray *plist = hy_query_run(q);
# 53| fail_unless(plist->len == 1,
# 54|-> "get_latest_pkg() failed finding '%s'.", name);
# 55| auto pkg = static_cast<DnfPackage *>(g_object_ref(g_ptr_array_index(plist, 0)));
# 56| hy_query_free(q);
Error: COMPILER_WARNING (CWE-685): [#def81]
libdnf-0.73.1/tests/hawkey/test_suites.h:24: included_from: Included from here.
libdnf-0.73.1/tests/hawkey/test_goal.cpp:38: included_from: Included from here.
libdnf-0.73.1/tests/hawkey/test_goal.cpp: scope_hint: In function ‘DnfPackage* get_latest_pkg(DnfSack*, const char*)’
libdnf-0.73.1/tests/hawkey/test_goal.cpp:54:17: warning[-Wformat-extra-args]: too many arguments for format
# 54 | "get_latest_pkg() failed finding '%s'.", name);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 52| GPtrArray *plist = hy_query_run(q);
# 53| fail_unless(plist->len == 1,
# 54|-> "get_latest_pkg() failed finding '%s'.", name);
# 55| auto pkg = static_cast<DnfPackage *>(g_object_ref(g_ptr_array_index(plist, 0)));
# 56| hy_query_free(q);
Error: COMPILER_WARNING (CWE-685): [#def82]
libdnf-0.73.1/tests/hawkey/test_goal.cpp:439:18: warning[-Wformat-extra-args]: too many arguments for format
# 439 | fail("assert_list_names(): list too short");
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 437| while ((name = va_arg(names, char *)) != NULL) {
# 438| if (i++ >= count) {
# 439|-> fail("assert_list_names(): list too short");
# 440| }
# 441| bool found = false;
Error: COMPILER_WARNING (CWE-685): [#def83]
libdnf-0.73.1/tests/hawkey/test_goal.cpp:449:32: warning[-Wformat-extra-args]: too many arguments for format
# 449 | fail_unless(false, "assert_list_names(): element '%s' %sfound '%zu'",
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 447| }
# 448| if ((wanted && !found) || (!wanted && found)) {
# 449|-> fail_unless(false, "assert_list_names(): element '%s' %sfound '%zu'",
# 450| name, wanted ? "not ": "", stringVector.size());
# 451| }
Error: COMPILER_WARNING: [#def84]
libdnf-0.73.1/tests/hawkey/test_goal.cpp:458:33: warning: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 456| // already checked above.
# 457| if (wanted) {
# 458|-> fail_unless(i == count, "assert_list_names(): too many items in the list (%d vs %d)", i, count);
# 459| }
# 460| va_end(names);
Error: COMPILER_WARNING: [#def85]
libdnf-0.73.1/tests/hawkey/test_goal.cpp:458:33: warning: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1065 | "flying-3.1-0.x86_64", "pilchard-1.2.4-1.x86_64", "pilchard-1.2.4-1.i686", NULL);
# 456| // already checked above.
# 457| if (wanted) {
# 458|-> fail_unless(i == count, "assert_list_names(): too many items in the list (%d vs %d)", i, count);
# 459| }
# 460| va_end(names);
Error: COMPILER_WARNING: [#def86]
libdnf-0.73.1/tests/hawkey/test_goal.cpp:458:33: warning: 1064 | assert_list_names<&dnf_package_get_nevra>(true, plist, "bloop-2.0-1.noarch", "dog-1-2.x86_64", "fool-1-5.noarch",
# 456| // already checked above.
# 457| if (wanted) {
# 458|-> fail_unless(i == count, "assert_list_names(): too many items in the list (%d vs %d)", i, count);
# 459| }
# 460| va_end(names);
Error: COMPILER_WARNING (CWE-685): [#def87]
libdnf-0.73.1/tests/hawkey/test_goal.cpp:458:33: warning[-Wformat-extra-args]: too many arguments for format
# 458 | fail_unless(i == count, "assert_list_names(): too many items in the list (%d vs %d)", i, count);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 456| // already checked above.
# 457| if (wanted) {
# 458|-> fail_unless(i == count, "assert_list_names(): too many items in the list (%d vs %d)", i, count);
# 459| }
# 460| va_end(names);
Scan Properties
analyzer-version-clang | 18.1.3 |
analyzer-version-cppcheck | 2.13.0 |
analyzer-version-gcc | 14.0.1 |
analyzer-version-gcc-analyzer | 14.0.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-127.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | libdnf-0.73.1-1.fc41 |
store-results-to | /tmp/tmpcwsgjgs2/libdnf-0.73.1-1.fc41.tar.xz |
time-created | 2024-04-22 11:08:21 |
time-finished | 2024-04-22 11:13:12 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpcwsgjgs2/libdnf-0.73.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpcwsgjgs2/libdnf-0.73.1-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |