2025-05-10 16:05 ftp://ftp.de.debian.org/debian/pool/main/f/foomatic-db-engine/foomatic-db-engine_4.0.13.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: beb3362 (2025-05-10 14:33:23 +0200) count: 63 63 elapsed-time: 21.7 23.0 head-timing-info: old-timing-info: head results: foomatic-db-engine-4.0.13/foomatic-combo-xml.c:127:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:382:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2136:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2356:25: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2448:23: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2503:23: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:1879:6: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:1874:23: note: outer condition: !incomment foomatic-db-engine-4.0.13/foomatic-combo-xml.c:1879:6: note: identical inner condition: !incomment foomatic-db-engine-4.0.13/foomatic-combo-xml.c:1890:7: style: The if condition is the same as the previous if condition [duplicateCondition] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:1888:7: note: First condition foomatic-db-engine-4.0.13/foomatic-combo-xml.c:1890:7: note: Second condition foomatic-db-engine-4.0.13/foomatic-combo-xml.c:1548:30: style: Condition 'dfunctionalityentry!=NULL' is always true [knownConditionTrueFalse] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:1864:23: style: Condition '(*scan=='>')&&0' is always false [knownConditionTrueFalse] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:98:5: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:105:3: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2187:6: error: Common realloc mistake: 'defaultsettings' nulled but not freed upon failure [memleakOnRealloc] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2365:4: error: Common realloc mistake: 'optbuffers' nulled but not freed upon failure [memleakOnRealloc] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:96:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:95:24: note: Assuming allocation function fails foomatic-db-engine-4.0.13/foomatic-combo-xml.c:95:10: note: Assignment 'data=(char*)malloc(size)', assigned value is 0 foomatic-db-engine-4.0.13/foomatic-combo-xml.c:96:3: note: Null pointer dereference foomatic-db-engine-4.0.13/foomatic-combo-xml.c:158:4: warning: If memory allocation fails, then there is a possible null pointer dereference: newitem [nullPointerOutOfMemory] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:157:24: note: Assuming allocation function fails foomatic-db-engine-4.0.13/foomatic-combo-xml.c:157:6: note: Assignment 'newitem=(struct idlist_t*)malloc(sizeof(struct idlist_t))', assigned value is 0 foomatic-db-engine-4.0.13/foomatic-combo-xml.c:158:4: note: Null pointer dereference foomatic-db-engine-4.0.13/foomatic-combo-xml.c:159:4: warning: If memory allocation fails, then there is a possible null pointer dereference: newitem [nullPointerOutOfMemory] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:157:24: note: Assuming allocation function fails foomatic-db-engine-4.0.13/foomatic-combo-xml.c:157:6: note: Assignment 'newitem=(struct idlist_t*)malloc(sizeof(struct idlist_t))', assigned value is 0 foomatic-db-engine-4.0.13/foomatic-combo-xml.c:159:4: note: Null pointer dereference foomatic-db-engine-4.0.13/foomatic-combo-xml.c:160:4: warning: If memory allocation fails, then there is a possible null pointer dereference: newitem [nullPointerOutOfMemory] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:157:24: note: Assuming allocation function fails foomatic-db-engine-4.0.13/foomatic-combo-xml.c:157:6: note: Assignment 'newitem=(struct idlist_t*)malloc(sizeof(struct idlist_t))', assigned value is 0 foomatic-db-engine-4.0.13/foomatic-combo-xml.c:160:4: note: Null pointer dereference foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2282:17: warning: If memory allocation fails, then there is a possible null pointer dereference: make [nullPointerOutOfMemory] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2281:15: note: Assuming allocation function fails foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2281:15: note: Assignment 'make=strdup(pid)', assigned value is 0 foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2282:17: note: Null pointer dereference foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2430:14: warning: If memory allocation fails, then there is a possible null pointer dereference: plistpointer [nullPointerOutOfMemory] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2429:25: note: Assuming allocation function fails foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2429:2: note: Assignment 'plistpointer=(struct printerlist_t*)malloc(sizeof(struct printerlist_t))', assigned value is 0 foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2430:14: note: Null pointer dereference foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2431:7: warning: If memory allocation fails, then there is a possible null pointer dereference: plistpointer [nullPointerOutOfMemory] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2429:25: note: Assuming allocation function fails foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2429:2: note: Assignment 'plistpointer=(struct printerlist_t*)malloc(sizeof(struct printerlist_t))', assigned value is 0 foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2431:7: note: Null pointer dereference foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2432:7: warning: If memory allocation fails, then there is a possible null pointer dereference: plistpointer [nullPointerOutOfMemory] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2429:25: note: Assuming allocation function fails foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2429:2: note: Assignment 'plistpointer=(struct printerlist_t*)malloc(sizeof(struct printerlist_t))', assigned value is 0 foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2432:7: note: Null pointer dereference foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2552:24: style: Pointer expression 'id' converted to bool is always true. [knownPointerToBool] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2587:24: style: Pointer expression 'name' converted to bool is always true. [knownPointerToBool] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:239:18: style: Variable 'trpid' can be declared as pointer to const [constVariablePointer] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2085:12: style: Parameter 'argv' can be declared as const array [constParameter] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:2124:18: style: Variable 'direntry' can be declared as pointer to const [constVariablePointer] foomatic-db-engine-4.0.13/foomatic-combo-xml.c:1954:17: style: Variable 'plistpreventry' is assigned a value that is never used. [unreadVariable] foomatic-db-engine-4.0.13/foomatic-perl-data.c:450:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xmlChar [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:491:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:559:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:675:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:759:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:817:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:1338:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:1769:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:2183:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:2259:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:2528:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:2983:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:3388:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:3434:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:3523:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:3617:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:3676:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:3731:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:5131:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-db-engine-4.0.13/foomatic-perl-data.c:3930:7: style: Condition 'overview->overviewDrivers[k]->supportcontacturls[l]!=NULL' is always true [knownConditionTrueFalse] foomatic-db-engine-4.0.13/foomatic-perl-data.c:4372:6: style: Condition 'combo->supportcontacturls[i]!=NULL' is always true [knownConditionTrueFalse] foomatic-db-engine-4.0.13/foomatic-perl-data.c:4892:6: style: Condition 'driver->supportcontacturls[i]!=NULL' is always true [knownConditionTrueFalse] foomatic-db-engine-4.0.13/foomatic-perl-data.c:449:5: error: Common realloc mistake: 'dest' nulled but not freed upon failure [memleakOnRealloc] foomatic-db-engine-4.0.13/foomatic-perl-data.c:5108:2: error: Common realloc mistake: 'defaultsettings' nulled but not freed upon failure [memleakOnRealloc] foomatic-db-engine-4.0.13/foomatic-perl-data.c:799:19: style: Unused variable: id [unusedVariable] foomatic-db-engine-4.0.13/foomatic-perl-data.c:800:19: style: Unused variable: charset [unusedVariable] foomatic-db-engine-4.0.13/foomatic-perl-data.c:2162:18: style: Unused variable: cur3 [unusedVariable] foomatic-db-engine-4.0.13/foomatic-perl-data.c:3385:9: style: Unused variable: f [unusedVariable] foomatic-db-engine-4.0.13/foomatic-perl-data.c:4827:12: style: Unused variable: id [unusedVariable] foomatic-db-engine-4.0.13/foomatic-perl-data.c:4828:12: style: Unused variable: name [unusedVariable] foomatic-db-engine-4.0.13/foomatic-perl-data.c:4829:12: style: Unused variable: url [unusedVariable] foomatic-db-engine-4.0.13/foomatic-perl-data.c:4830:12: style: Unused variable: driver_type [unusedVariable] foomatic-db-engine-4.0.13/foomatic-perl-data.c:4831:12: style: Unused variable: cmd [unusedVariable] foomatic-db-engine-4.0.13/foomatic-perl-data.c:4832:12: style: Unused variable: comment [unusedVariable] foomatic-db-engine-4.0.13/foomatic-perl-data.c:4833:11: style: Unused variable: num_printers [unusedVariable] diff: DONE