libdnf-0.73.0-1.fc40
List of Defects
Error: COMPILER_WARNING (CWE-758): [#def1]
libdnf-0.73.0/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.0/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.0/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.0/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.0/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.0/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.0/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx: scope_hint: At global scope
libdnf-0.73.0/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.0/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.0/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx: scope_hint: In function ‘PyObject* _wrap_ModulePackageContainer_getDisabledStreams(PyObject*, PyObject*)’
libdnf-0.73.0/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.0/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:3899: included_from: Included from here.
libdnf-0.73.0/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.0/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx: scope_hint: In function ‘PyObject* _wrap_ModulePackageContainer_getResetStreams(PyObject*, PyObject*)’
libdnf-0.73.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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: CPPCHECK_WARNING (CWE-476): [#def65]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:9361: warning[nullPointer]: Possible null pointer dereference: (const libdnf::Item*)arg1
# 9359| {
# 9360| try {
# 9361|-> result = (int64_t)((libdnf::Item const *)arg1)->getId();
# 9362| } catch (const libdnf::Error & e) {
# 9363| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def66]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:9461: warning[nullPointer]: Possible null pointer dereference: (const libdnf::Item*)arg1
# 9459| {
# 9460| try {
# 9461|-> result = (libdnf::ItemType)((libdnf::Item const *)arg1)->getItemType();
# 9462| } catch (const libdnf::Error & e) {
# 9463| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def67]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:9508: warning[nullPointer]: Possible null pointer dereference: (const libdnf::Item*)arg1
# 9506| {
# 9507| try {
# 9508|-> result = ((libdnf::Item const *)arg1)->toStr();
# 9509| } catch (const libdnf::Error & e) {
# 9510| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def68]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:9554: warning[nullPointer]: Possible null pointer dereference: arg1
# 9552| {
# 9553| try {
# 9554|-> (arg1)->save();
# 9555| } catch (const libdnf::Error & e) {
# 9556| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def69]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:9786: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsEnvironmentItem*)arg1
# 9784| {
# 9785| try {
# 9786|-> result = (std::string *) &((libdnf::CompsEnvironmentItem const *)arg1)->getEnvironmentId();
# 9787| } catch (const libdnf::Error & e) {
# 9788| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def70]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:9893: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsEnvironmentItem*)arg1
# 9891| {
# 9892| try {
# 9893|-> result = (std::string *) &((libdnf::CompsEnvironmentItem const *)arg1)->getName();
# 9894| } catch (const libdnf::Error & e) {
# 9895| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def71]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:10000: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsEnvironmentItem*)arg1
# 9998| {
# 9999| try {
#10000|-> result = (std::string *) &((libdnf::CompsEnvironmentItem const *)arg1)->getTranslatedName();
#10001| } catch (const libdnf::Error & e) {
#10002| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def72]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:10107: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsEnvironmentItem*)arg1
#10105| {
#10106| try {
#10107|-> result = (CompsPackageType)((libdnf::CompsEnvironmentItem const *)arg1)->getPackageTypes();
#10108| } catch (const libdnf::Error & e) {
#10109| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def73]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:10207: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsEnvironmentItem*)arg1
#10205| {
#10206| try {
#10207|-> result = ((libdnf::CompsEnvironmentItem const *)arg1)->toStr();
#10208| } catch (const libdnf::Error & e) {
#10209| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def74]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:10254: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsEnvironmentItem*)arg1
#10252| {
#10253| try {
#10254|-> result = (libdnf::ItemType)((libdnf::CompsEnvironmentItem const *)arg1)->getItemType();
#10255| } catch (const libdnf::Error & e) {
#10256| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def75]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:10300: warning[nullPointer]: Possible null pointer dereference: arg1
#10298| {
#10299| try {
#10300|-> (arg1)->save();
#10301| } catch (const libdnf::Error & e) {
#10302| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def76]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:10422: warning[nullPointer]: Possible null pointer dereference: arg1
#10420| {
#10421| try {
#10422|-> result = (arg1)->getGroups();
#10423| } catch (const libdnf::Error & e) {
#10424| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def77]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:10686: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsEnvironmentGroup*)arg1
#10684| {
#10685| try {
#10686|-> result = (int64_t)((libdnf::CompsEnvironmentGroup const *)arg1)->getId();
#10687| } catch (const libdnf::Error & e) {
#10688| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def78]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:10786: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsEnvironmentGroup*)arg1
#10784| {
#10785| try {
#10786|-> result = (libdnf::CompsEnvironmentItem *) &((libdnf::CompsEnvironmentGroup const *)arg1)->getEnvironment();
#10787| } catch (const libdnf::Error & e) {
#10788| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def79]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:10836: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsEnvironmentGroup*)arg1
#10834| {
#10835| try {
#10836|-> result = (std::string *) &((libdnf::CompsEnvironmentGroup const *)arg1)->getGroupId();
#10837| } catch (const libdnf::Error & e) {
#10838| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def80]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:10943: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsEnvironmentGroup*)arg1
#10941| {
#10942| try {
#10943|-> result = (bool)((libdnf::CompsEnvironmentGroup const *)arg1)->getInstalled();
#10944| } catch (const libdnf::Error & e) {
#10945| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def81]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:11043: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsEnvironmentGroup*)arg1
#11041| {
#11042| try {
#11043|-> result = (CompsPackageType)((libdnf::CompsEnvironmentGroup const *)arg1)->getGroupType();
#11044| } catch (const libdnf::Error & e) {
#11045| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def82]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:11142: warning[nullPointer]: Possible null pointer dereference: arg1
#11140| {
#11141| try {
#11142|-> (arg1)->save();
#11143| } catch (const libdnf::Error & e) {
#11144| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def83]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:11810: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsGroupItem*)arg1
#11808| {
#11809| try {
#11810|-> result = (std::string *) &((libdnf::CompsGroupItem const *)arg1)->getGroupId();
#11811| } catch (const libdnf::Error & e) {
#11812| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def84]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:11917: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsGroupItem*)arg1
#11915| {
#11916| try {
#11917|-> result = (std::string *) &((libdnf::CompsGroupItem const *)arg1)->getName();
#11918| } catch (const libdnf::Error & e) {
#11919| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def85]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:12024: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsGroupItem*)arg1
#12022| {
#12023| try {
#12024|-> result = (std::string *) &((libdnf::CompsGroupItem const *)arg1)->getTranslatedName();
#12025| } catch (const libdnf::Error & e) {
#12026| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def86]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:12131: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsGroupItem*)arg1
#12129| {
#12130| try {
#12131|-> result = (libdnf::CompsPackageType)((libdnf::CompsGroupItem const *)arg1)->getPackageTypes();
#12132| } catch (const libdnf::Error & e) {
#12133| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def87]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:12231: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsGroupItem*)arg1
#12229| {
#12230| try {
#12231|-> result = ((libdnf::CompsGroupItem const *)arg1)->toStr();
#12232| } catch (const libdnf::Error & e) {
#12233| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def88]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:12278: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsGroupItem*)arg1
#12276| {
#12277| try {
#12278|-> result = (libdnf::ItemType)((libdnf::CompsGroupItem const *)arg1)->getItemType();
#12279| } catch (const libdnf::Error & e) {
#12280| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def89]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:12324: warning[nullPointer]: Possible null pointer dereference: arg1
#12322| {
#12323| try {
#12324|-> (arg1)->save();
#12325| } catch (const libdnf::Error & e) {
#12326| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def90]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:12446: warning[nullPointer]: Possible null pointer dereference: arg1
#12444| {
#12445| try {
#12446|-> result = (arg1)->getPackages();
#12447| } catch (const libdnf::Error & e) {
#12448| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def91]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:12710: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsGroupPackage*)arg1
#12708| {
#12709| try {
#12710|-> result = (int64_t)((libdnf::CompsGroupPackage const *)arg1)->getId();
#12711| } catch (const libdnf::Error & e) {
#12712| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def92]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:12810: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsGroupPackage*)arg1
#12808| {
#12809| try {
#12810|-> result = (libdnf::CompsGroupItem *) &((libdnf::CompsGroupPackage const *)arg1)->getGroup();
#12811| } catch (const libdnf::Error & e) {
#12812| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def93]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:12860: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsGroupPackage*)arg1
#12858| {
#12859| try {
#12860|-> result = (std::string *) &((libdnf::CompsGroupPackage const *)arg1)->getName();
#12861| } catch (const libdnf::Error & e) {
#12862| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def94]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:12967: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsGroupPackage*)arg1
#12965| {
#12966| try {
#12967|-> result = (bool)((libdnf::CompsGroupPackage const *)arg1)->getInstalled();
#12968| } catch (const libdnf::Error & e) {
#12969| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def95]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:13067: warning[nullPointer]: Possible null pointer dereference: (const libdnf::CompsGroupPackage*)arg1
#13065| {
#13066| try {
#13067|-> result = (libdnf::CompsPackageType)((libdnf::CompsGroupPackage const *)arg1)->getPackageType();
#13068| } catch (const libdnf::Error & e) {
#13069| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def96]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:13166: warning[nullPointer]: Possible null pointer dereference: arg1
#13164| {
#13165| try {
#13166|-> (arg1)->save();
#13167| } catch (const libdnf::Error & e) {
#13168| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def97]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:13444: warning[nullPointer]: Possible null pointer dereference: (const libdnf::RPMItem*)arg1
#13442| {
#13443| try {
#13444|-> result = (std::string *) &((libdnf::RPMItem const *)arg1)->getName();
#13445| } catch (const libdnf::Error & e) {
#13446| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def98]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:13551: warning[nullPointer]: Possible null pointer dereference: (const libdnf::RPMItem*)arg1
#13549| {
#13550| try {
#13551|-> result = (int32_t)((libdnf::RPMItem const *)arg1)->getEpoch();
#13552| } catch (const libdnf::Error & e) {
#13553| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def99]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:13651: warning[nullPointer]: Possible null pointer dereference: (const libdnf::RPMItem*)arg1
#13649| {
#13650| try {
#13651|-> result = (std::string *) &((libdnf::RPMItem const *)arg1)->getVersion();
#13652| } catch (const libdnf::Error & e) {
#13653| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def100]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:13758: warning[nullPointer]: Possible null pointer dereference: (const libdnf::RPMItem*)arg1
#13756| {
#13757| try {
#13758|-> result = (std::string *) &((libdnf::RPMItem const *)arg1)->getRelease();
#13759| } catch (const libdnf::Error & e) {
#13760| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def101]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:13865: warning[nullPointer]: Possible null pointer dereference: (const libdnf::RPMItem*)arg1
#13863| {
#13864| try {
#13865|-> result = (std::string *) &((libdnf::RPMItem const *)arg1)->getArch();
#13866| } catch (const libdnf::Error & e) {
#13867| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def102]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:13972: warning[nullPointer]: Possible null pointer dereference: (const libdnf::RPMItem*)arg1
#13970| {
#13971| try {
#13972|-> result = ((libdnf::RPMItem const *)arg1)->getNEVRA();
#13973| } catch (const libdnf::Error & e) {
#13974| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def103]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:14019: warning[nullPointer]: Possible null pointer dereference: (const libdnf::RPMItem*)arg1
#14017| {
#14018| try {
#14019|-> result = ((libdnf::RPMItem const *)arg1)->toStr();
#14020| } catch (const libdnf::Error & e) {
#14021| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def104]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:14066: warning[nullPointer]: Possible null pointer dereference: (const libdnf::RPMItem*)arg1
#14064| {
#14065| try {
#14066|-> result = (libdnf::ItemType)((libdnf::RPMItem const *)arg1)->getItemType();
#14067| } catch (const libdnf::Error & e) {
#14068| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def105]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:14112: warning[nullPointer]: Possible null pointer dereference: arg1
#14110| {
#14111| try {
#14112|-> (arg1)->save();
#14113| } catch (const libdnf::Error & e) {
#14114| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def106]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:16486: warning[nullPointer]: Possible null pointer dereference: (const libdnf::Transaction*)arg1
#16484| {
#16485| try {
#16486|-> result = (int64_t)((libdnf::Transaction const *)arg1)->getId();
#16487| } catch (const libdnf::Error & e) {
#16488| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def107]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:16533: warning[nullPointer]: Possible null pointer dereference: (const libdnf::Transaction*)arg1
#16531| {
#16532| try {
#16533|-> result = (int64_t)((libdnf::Transaction const *)arg1)->getDtBegin();
#16534| } catch (const libdnf::Error & e) {
#16535| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def108]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:16580: warning[nullPointer]: Possible null pointer dereference: (const libdnf::Transaction*)arg1
#16578| {
#16579| try {
#16580|-> result = (int64_t)((libdnf::Transaction const *)arg1)->getDtEnd();
#16581| } catch (const libdnf::Error & e) {
#16582| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def109]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:16627: warning[nullPointer]: Possible null pointer dereference: (const libdnf::Transaction*)arg1
#16625| {
#16626| try {
#16627|-> result = (std::string *) &((libdnf::Transaction const *)arg1)->getRpmdbVersionBegin();
#16628| } catch (const libdnf::Error & e) {
#16629| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def110]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:16674: warning[nullPointer]: Possible null pointer dereference: (const libdnf::Transaction*)arg1
#16672| {
#16673| try {
#16674|-> result = (std::string *) &((libdnf::Transaction const *)arg1)->getRpmdbVersionEnd();
#16675| } catch (const libdnf::Error & e) {
#16676| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def111]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:16721: warning[nullPointer]: Possible null pointer dereference: (const libdnf::Transaction*)arg1
#16719| {
#16720| try {
#16721|-> result = (std::string *) &((libdnf::Transaction const *)arg1)->getReleasever();
#16722| } catch (const libdnf::Error & e) {
#16723| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def112]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:16768: warning[nullPointer]: Possible null pointer dereference: (const libdnf::Transaction*)arg1
#16766| {
#16767| try {
#16768|-> result = (uint32_t)((libdnf::Transaction const *)arg1)->getUserId();
#16769| } catch (const libdnf::Error & e) {
#16770| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def113]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:16815: warning[nullPointer]: Possible null pointer dereference: (const libdnf::Transaction*)arg1
#16813| {
#16814| try {
#16815|-> result = (std::string *) &((libdnf::Transaction const *)arg1)->getCmdline();
#16816| } catch (const libdnf::Error & e) {
#16817| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def114]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:16862: warning[nullPointer]: Possible null pointer dereference: (const libdnf::Transaction*)arg1
#16860| {
#16861| try {
#16862|-> result = (libdnf::TransactionState)((libdnf::Transaction const *)arg1)->getState();
#16863| } catch (const libdnf::Error & e) {
#16864| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def115]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:16909: warning[nullPointer]: Possible null pointer dereference: (const libdnf::Transaction*)arg1
#16907| {
#16908| try {
#16909|-> result = (std::string *) &((libdnf::Transaction const *)arg1)->getComment();
#16910| } catch (const libdnf::Error & e) {
#16911| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def116]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:16956: warning[nullPointer]: Possible null pointer dereference: arg1
#16954| {
#16955| try {
#16956|-> result = (arg1)->getItems();
#16957| } catch (const libdnf::Error & e) {
#16958| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def117]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:17003: warning[nullPointer]: Possible null pointer dereference: (const libdnf::Transaction*)arg1
#17001| {
#17002| try {
#17003|-> result = ((libdnf::Transaction const *)arg1)->getSoftwarePerformedWith();
#17004| } catch (const libdnf::Error & e) {
#17005| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def118]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:17050: warning[nullPointer]: Possible null pointer dereference: (const libdnf::Transaction*)arg1
#17048| {
#17049| try {
#17050|-> result = ((libdnf::Transaction const *)arg1)->getConsoleOutput();
#17051| } catch (const libdnf::Error & e) {
#17052| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def119]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:17108: warning[nullPointer]: Possible null pointer dereference: (const libdnf::TransactionItemBase*)arg1
#17106| {
#17107| try {
#17108|-> result = ((libdnf::TransactionItemBase const *)arg1)->getItem();
#17109| } catch (const libdnf::Error & e) {
#17110| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def120]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:17215: warning[nullPointer]: Possible null pointer dereference: (const libdnf::TransactionItemBase*)arg1
#17213| {
#17214| try {
#17215|-> result = ((libdnf::TransactionItemBase const *)arg1)->getCompsEnvironmentItem();
#17216| } catch (const libdnf::Error & e) {
#17217| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def121]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:17265: warning[nullPointer]: Possible null pointer dereference: (const libdnf::TransactionItemBase*)arg1
#17263| {
#17264| try {
#17265|-> result = ((libdnf::TransactionItemBase const *)arg1)->getCompsGroupItem();
#17266| } catch (const libdnf::Error & e) {
#17267| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def122]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:17315: warning[nullPointer]: Possible null pointer dereference: (const libdnf::TransactionItemBase*)arg1
#17313| {
#17314| try {
#17315|-> result = ((libdnf::TransactionItemBase const *)arg1)->getRPMItem();
#17316| } catch (const libdnf::Error & e) {
#17317| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def123]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:17365: warning[nullPointer]: Possible null pointer dereference: (const libdnf::TransactionItemBase*)arg1
#17363| {
#17364| try {
#17365|-> result = (std::string *) &((libdnf::TransactionItemBase const *)arg1)->getRepoid();
#17366| } catch (const libdnf::Error & e) {
#17367| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def124]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:17472: warning[nullPointer]: Possible null pointer dereference: (const libdnf::TransactionItemBase*)arg1
#17470| {
#17471| try {
#17472|-> result = (libdnf::TransactionItemAction)((libdnf::TransactionItemBase const *)arg1)->getAction();
#17473| } catch (const libdnf::Error & e) {
#17474| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def125]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:17572: warning[nullPointer]: Possible null pointer dereference: (const libdnf::TransactionItemBase*)arg1
#17570| {
#17571| try {
#17572|-> result = (libdnf::TransactionItemReason)((libdnf::TransactionItemBase const *)arg1)->getReason();
#17573| } catch (const libdnf::Error & e) {
#17574| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def126]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:17672: warning[nullPointer]: Possible null pointer dereference: arg1
#17670| {
#17671| try {
#17672|-> result = (std::string *) &(arg1)->getActionName();
#17673| } catch (const libdnf::Error & e) {
#17674| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def127]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:17719: warning[nullPointer]: Possible null pointer dereference: arg1
#17717| {
#17718| try {
#17719|-> result = (std::string *) &(arg1)->getActionShort();
#17720| } catch (const libdnf::Error & e) {
#17721| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def128]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:17766: warning[nullPointer]: Possible null pointer dereference: (const libdnf::TransactionItemBase*)arg1
#17764| {
#17765| try {
#17766|-> result = (libdnf::TransactionItemState)((libdnf::TransactionItemBase const *)arg1)->getState();
#17767| } catch (const libdnf::Error & e) {
#17768| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def129]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:17866: warning[nullPointer]: Possible null pointer dereference: (const libdnf::TransactionItemBase*)arg1
#17864| {
#17865| try {
#17866|-> result = (bool)((libdnf::TransactionItemBase const *)arg1)->isForwardAction();
#17867| } catch (const libdnf::Error & e) {
#17868| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def130]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:17913: warning[nullPointer]: Possible null pointer dereference: (const libdnf::TransactionItemBase*)arg1
#17911| {
#17912| try {
#17913|-> result = (bool)((libdnf::TransactionItemBase const *)arg1)->isBackwardAction();
#17914| } catch (const libdnf::Error & e) {
#17915| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def131]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:18181: warning[nullPointer]: Possible null pointer dereference: (const libdnf::TransactionItem*)arg1
#18179| {
#18180| try {
#18181|-> result = (int64_t)((libdnf::TransactionItem const *)arg1)->getId();
#18182| } catch (const libdnf::Error & e) {
#18183| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def132]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:18281: warning[nullPointer]: Possible null pointer dereference: (const libdnf::TransactionItem*)arg1
#18279| {
#18280| try {
#18281|-> result = (uint32_t)((libdnf::TransactionItem const *)arg1)->getInstalledBy();
#18282| } catch (const libdnf::Error & e) {
#18283| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def133]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:18328: warning[nullPointer]: Possible null pointer dereference: (const libdnf::TransactionItem*)arg1
#18326| {
#18327| try {
#18328|-> result = (std::vector< libdnf::TransactionItemPtr,std::allocator< libdnf::TransactionItemPtr > > *) &((libdnf::TransactionItem const *)arg1)->getReplacedBy();
#18329| } catch (const libdnf::Error & e) {
#18330| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def134]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:18431: warning[nullPointer]: Possible null pointer dereference: arg1
#18429| {
#18430| try {
#18431|-> (arg1)->save();
#18432| } catch (const libdnf::Error & e) {
#18433| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def135]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:18477: warning[nullPointer]: Possible null pointer dereference: arg1
#18475| {
#18476| try {
#18477|-> (arg1)->saveReplacedBy();
#18478| } catch (const libdnf::Error & e) {
#18479| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def136]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:18523: warning[nullPointer]: Possible null pointer dereference: arg1
#18521| {
#18522| try {
#18523|-> (arg1)->saveState();
#18524| } catch (const libdnf::Error & e) {
#18525| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def137]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:18570: warning[nullPointer]: Possible null pointer dereference: arg1
#18568| {
#18569| try {
#18570|-> result = (arg1)->getHash();
#18571| } catch (const libdnf::Error & e) {
#18572| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def138]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:19117: warning[nullPointer]: Possible null pointer dereference: (const libdnf::MergedTransaction*)arg1
#19115| {
#19116| try {
#19117|-> result = ((libdnf::MergedTransaction const *)arg1)->listIds();
#19118| } catch (const libdnf::Error & e) {
#19119| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def139]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:19164: warning[nullPointer]: Possible null pointer dereference: (const libdnf::MergedTransaction*)arg1
#19162| {
#19163| try {
#19164|-> result = ((libdnf::MergedTransaction const *)arg1)->listUserIds();
#19165| } catch (const libdnf::Error & e) {
#19166| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def140]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:19211: warning[nullPointer]: Possible null pointer dereference: (const libdnf::MergedTransaction*)arg1
#19209| {
#19210| try {
#19211|-> result = ((libdnf::MergedTransaction const *)arg1)->listCmdlines();
#19212| } catch (const libdnf::Error & e) {
#19213| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def141]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:19258: warning[nullPointer]: Possible null pointer dereference: (const libdnf::MergedTransaction*)arg1
#19256| {
#19257| try {
#19258|-> result = ((libdnf::MergedTransaction const *)arg1)->listStates();
#19259| } catch (const libdnf::Error & e) {
#19260| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def142]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:19305: warning[nullPointer]: Possible null pointer dereference: (const libdnf::MergedTransaction*)arg1
#19303| {
#19304| try {
#19305|-> result = ((libdnf::MergedTransaction const *)arg1)->listReleasevers();
#19306| } catch (const libdnf::Error & e) {
#19307| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def143]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:19352: warning[nullPointer]: Possible null pointer dereference: (const libdnf::MergedTransaction*)arg1
#19350| {
#19351| try {
#19352|-> result = ((libdnf::MergedTransaction const *)arg1)->listComments();
#19353| } catch (const libdnf::Error & e) {
#19354| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def144]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:19399: warning[nullPointer]: Possible null pointer dereference: (const libdnf::MergedTransaction*)arg1
#19397| {
#19398| try {
#19399|-> result = (int64_t)((libdnf::MergedTransaction const *)arg1)->getDtBegin();
#19400| } catch (const libdnf::Error & e) {
#19401| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def145]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:19446: warning[nullPointer]: Possible null pointer dereference: (const libdnf::MergedTransaction*)arg1
#19444| {
#19445| try {
#19446|-> result = (int64_t)((libdnf::MergedTransaction const *)arg1)->getDtEnd();
#19447| } catch (const libdnf::Error & e) {
#19448| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def146]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:19493: warning[nullPointer]: Possible null pointer dereference: (const libdnf::MergedTransaction*)arg1
#19491| {
#19492| try {
#19493|-> result = (std::string *) &((libdnf::MergedTransaction const *)arg1)->getRpmdbVersionBegin();
#19494| } catch (const libdnf::Error & e) {
#19495| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def147]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:19540: warning[nullPointer]: Possible null pointer dereference: (const libdnf::MergedTransaction*)arg1
#19538| {
#19539| try {
#19540|-> result = (std::string *) &((libdnf::MergedTransaction const *)arg1)->getRpmdbVersionEnd();
#19541| } catch (const libdnf::Error & e) {
#19542| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def148]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:19587: warning[nullPointer]: Possible null pointer dereference: (const libdnf::MergedTransaction*)arg1
#19585| {
#19586| try {
#19587|-> result = ((libdnf::MergedTransaction const *)arg1)->getSoftwarePerformedWith();
#19588| } catch (const libdnf::Error & e) {
#19589| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def149]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:19634: warning[nullPointer]: Possible null pointer dereference: arg1
#19632| {
#19633| try {
#19634|-> result = (arg1)->getConsoleOutput();
#19635| } catch (const libdnf::Error & e) {
#19636| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: CPPCHECK_WARNING (CWE-476): [#def150]
libdnf-0.73.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:19681: warning[nullPointer]: Possible null pointer dereference: arg1
#19679| {
#19680| try {
#19681|-> result = (arg1)->getItems();
#19682| } catch (const libdnf::Error & e) {
#19683| PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));
Error: COMPILER_WARNING (CWE-758): [#def151]
libdnf-0.73.0/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.0/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): [#def152]
libdnf-0.73.0/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): [#def153]
libdnf-0.73.0/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: [#def154]
libdnf-0.73.0/libdnf/conf/ConfigParser.cpp:21: included_from: Included from here.
libdnf-0.73.0/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: [#def155]
libdnf-0.73.0/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: [#def156]
libdnf-0.73.0/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: [#def157]
libdnf-0.73.0/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): [#def158]
libdnf-0.73.0/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: [#def159]
libdnf-0.73.0/libdnf/hy-package.cpp:58:3: warning[-Wodr]: type ‘struct DnfPackagePrivate’ violates the C++ One Definition Rule
# 58 | } DnfPackagePrivate;
# | ^
libdnf-0.73.0/libdnf/dnf-package.cpp:62:3: note: a different type is defined in another translation unit
# 62 | } DnfPackagePrivate;
# | ^
libdnf-0.73.0/libdnf/hy-package.cpp:55:22: note: the first difference of corresponding definitions is field ‘loaded’
# 55 | gboolean loaded;
# | ^
libdnf-0.73.0/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): [#def160]
libdnf-0.73.0/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): [#def161]
libdnf-0.73.0/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): [#def162]
libdnf-0.73.0/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: [#def163]
libdnf-0.73.0/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: [#def164]
libdnf-0.73.0/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: [#def165]
libdnf-0.73.0/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: [#def166]
libdnf-0.73.0/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): [#def167]
libdnf-0.73.0/tests/hawkey/test_suites.h:24: included_from: Included from here.
libdnf-0.73.0/tests/hawkey/test_goal.cpp:38: included_from: Included from here.
libdnf-0.73.0/tests/hawkey/test_goal.cpp: scope_hint: In function ‘DnfPackage* get_latest_pkg(DnfSack*, const char*)’
libdnf-0.73.0/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): [#def168]
libdnf-0.73.0/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): [#def169]
libdnf-0.73.0/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: [#def170]
libdnf-0.73.0/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: [#def171]
libdnf-0.73.0/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: [#def172]
libdnf-0.73.0/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): [#def173]
libdnf-0.73.0/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.2 |
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-15.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | libdnf-0.73.0-1.fc40 |
store-results-to | /tmp/tmp6a8jhabt/libdnf-0.73.0-1.fc40.tar.xz |
time-created | 2024-04-17 06:10:25 |
time-finished | 2024-04-17 06:15:21 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'shellcheck,clang,cppcheck,gcc' '-o' '/tmp/tmp6a8jhabt/libdnf-0.73.0-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp6a8jhabt/libdnf-0.73.0-1.fc40.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |