2025-11-21 08:33 ftp://ftp.de.debian.org/debian/pool/main/f/foomatic-filters/foomatic-filters_4.0.17.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 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 5374cd3 (2025-11-20 15:35:39 +0100) count: 163 153 elapsed-time: 4.5 5.9 head-timing-info: old-timing-info: head results: foomatic-filters-4.0.17/colord.c:58:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBUS_TYPE_STRING [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/colord.c:139:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBUS_TYPE_ARRAY [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/colord.c:205:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBUS_TYPE_STRING [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/colord.c:248:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/foomaticrip.c:1168:39: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] foomatic-filters-4.0.17/colord.c:125:3: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] foomatic-filters-4.0.17/colord.c:117:15: note: Assuming allocation function fails foomatic-filters-4.0.17/colord.c:117:15: note: Assignment 'key=calloc(max_keys+1,sizeof(char*))', assigned value is 0 foomatic-filters-4.0.17/colord.c:125:3: note: Null pointer dereference foomatic-filters-4.0.17/fileconverter.c:139:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/colord.c:129:3: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] foomatic-filters-4.0.17/colord.c:117:15: note: Assuming allocation function fails foomatic-filters-4.0.17/colord.c:117:15: note: Assignment 'key=calloc(max_keys+1,sizeof(char*))', assigned value is 0 foomatic-filters-4.0.17/colord.c:129:3: note: Null pointer dereference foomatic-filters-4.0.17/fileconverter.c:170:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/colord.c:133:3: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] foomatic-filters-4.0.17/colord.c:117:15: note: Assuming allocation function fails foomatic-filters-4.0.17/colord.c:117:15: note: Assignment 'key=calloc(max_keys+1,sizeof(char*))', assigned value is 0 foomatic-filters-4.0.17/colord.c:133:3: note: Null pointer dereference foomatic-filters-4.0.17/colord.c:136:3: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] foomatic-filters-4.0.17/colord.c:117:15: note: Assuming allocation function fails foomatic-filters-4.0.17/colord.c:117:15: note: Assignment 'key=calloc(max_keys+1,sizeof(char*))', assigned value is 0 foomatic-filters-4.0.17/colord.c:136:3: note: Null pointer dereference foomatic-filters-4.0.17/colord.c:137:3: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] foomatic-filters-4.0.17/colord.c:117:15: note: Assuming allocation function fails foomatic-filters-4.0.17/colord.c:117:15: note: Assignment 'key=calloc(max_keys+1,sizeof(char*))', assigned value is 0 foomatic-filters-4.0.17/colord.c:137:3: note: Null pointer dereference foomatic-filters-4.0.17/colord.c:142:13: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] foomatic-filters-4.0.17/colord.c:117:15: note: Assuming allocation function fails foomatic-filters-4.0.17/colord.c:117:15: note: Assignment 'key=calloc(max_keys+1,sizeof(char*))', assigned value is 0 foomatic-filters-4.0.17/colord.c:142:13: note: Null pointer dereference foomatic-filters-4.0.17/colord.c:151:70: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] foomatic-filters-4.0.17/colord.c:117:15: note: Assuming allocation function fails foomatic-filters-4.0.17/colord.c:117:15: note: Assignment 'key=calloc(max_keys+1,sizeof(char*))', assigned value is 0 foomatic-filters-4.0.17/colord.c:151:70: note: Null pointer dereference foomatic-filters-4.0.17/pdf.c:274:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/fileconverter.c:89:5: warning: If memory allocation fails, then there is a possible null pointer dereference: res [nullPointerOutOfMemory] foomatic-filters-4.0.17/fileconverter.c:88:17: note: Assuming allocation function fails foomatic-filters-4.0.17/fileconverter.c:88:17: note: Assignment 'res=malloc(len)', assigned value is 0 foomatic-filters-4.0.17/fileconverter.c:89:5: note: Null pointer dereference foomatic-filters-4.0.17/fileconverter.c:92:17: warning: If memory allocation fails, then there is a possible null pointer dereference: res [nullPointerOutOfMemory] foomatic-filters-4.0.17/fileconverter.c:88:17: note: Assuming allocation function fails foomatic-filters-4.0.17/fileconverter.c:88:17: note: Assignment 'res=malloc(len)', assigned value is 0 foomatic-filters-4.0.17/fileconverter.c:92:17: note: Null pointer dereference foomatic-filters-4.0.17/fileconverter.c:122:42: style: Parameter 'user_arg' can be declared as pointer to const. However it seems that 'exec_kid2' is a callback function, if 'user_arg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] foomatic-filters-4.0.17/fileconverter.c:163:34: note: You might need to cast the function pointer here foomatic-filters-4.0.17/fileconverter.c:122:42: note: Parameter 'user_arg' can be declared as pointer to const foomatic-filters-4.0.17/pdf.c:120:12: warning: Either the condition '(fd=mkstemp(filename))==-1' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] foomatic-filters-4.0.17/pdf.c:118:34: note: Assuming that condition '(fd=mkstemp(filename))==-1' is not redundant foomatic-filters-4.0.17/pdf.c:120:12: note: Invalid argument foomatic-filters-4.0.17/pdf.c:157:13: style: Condition '!pdf_extract_pages(tmpfile,filename,firstpage,lastpage)' is always false [knownConditionTrueFalse] foomatic-filters-4.0.17/pdf.c:157:31: note: Calling function 'pdf_extract_pages' returns 1 foomatic-filters-4.0.17/pdf.c:157:13: note: Condition '!pdf_extract_pages(tmpfile,filename,firstpage,lastpage)' is always false foomatic-filters-4.0.17/pdf.c:58:26: warning: If resource allocation fails, then there is a possible null pointer dereference: pd [nullPointerOutOfResources] foomatic-filters-4.0.17/pdf.c:54:21: note: Assuming allocation function fails foomatic-filters-4.0.17/pdf.c:54:21: note: Assignment 'pd=popen(gscommand,"r")', assigned value is 0 foomatic-filters-4.0.17/pdf.c:58:26: note: Null pointer dereference foomatic-filters-4.0.17/pdf.c:59:12: warning: If resource allocation fails, then there is a possible null pointer dereference: pd [nullPointerOutOfResources] foomatic-filters-4.0.17/pdf.c:54:21: note: Assuming allocation function fails foomatic-filters-4.0.17/pdf.c:54:21: note: Assignment 'pd=popen(gscommand,"r")', assigned value is 0 foomatic-filters-4.0.17/pdf.c:59:12: note: Null pointer dereference foomatic-filters-4.0.17/pdf.c:136:12: warning: If resource allocation fails, then there is a possible null pointer dereference: pd [nullPointerOutOfResources] foomatic-filters-4.0.17/pdf.c:133:21: note: Assuming allocation function fails foomatic-filters-4.0.17/pdf.c:133:21: note: Assignment 'pd=popen(gscommand,"r")', assigned value is 0 foomatic-filters-4.0.17/pdf.c:136:12: note: Null pointer dereference foomatic-filters-4.0.17/pdf.c:288:16: warning: If resource allocation fails, then there is a possible null pointer dereference: tmpfile [nullPointerOutOfResources] foomatic-filters-4.0.17/pdf.c:286:25: note: Assuming allocation function fails foomatic-filters-4.0.17/pdf.c:286:25: note: Assignment 'tmpfile=fdopen(fd,"r+")', assigned value is 0 foomatic-filters-4.0.17/pdf.c:288:16: note: Null pointer dereference foomatic-filters-4.0.17/pdf.c:203:13: style: Local variable 'cmd' shadows outer variable [shadowVariable] foomatic-filters-4.0.17/options.h:128:13: note: Shadowed declaration foomatic-filters-4.0.17/pdf.c:203:13: note: Shadow variable foomatic-filters-4.0.17/pdf.c:263:21: style: Parameter 's' can be declared as pointer to const [constParameterPointer] foomatic-filters-4.0.17/process.c:156:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/process.c:174:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/process.c:104:9: warning: Return value of function pipe() is not used. [ignoredReturnValue] foomatic-filters-4.0.17/process.c:106:9: warning: Return value of function pipe() is not used. [ignoredReturnValue] foomatic-filters-4.0.17/renderer.c:148:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/renderer.c:423:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/spooler.c:379:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_PATH [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/spooler.c:450:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIG_PATH [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/renderer.c:151:13: error: Common realloc mistake: 'line' nulled but not freed upon failure [memleakOnRealloc] foomatic-filters-4.0.17/renderer.c:192:13: error: Common realloc mistake: 'result' nulled but not freed upon failure [memleakOnRealloc] foomatic-filters-4.0.17/renderer.c:159:5: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] foomatic-filters-4.0.17/renderer.c:146:18: note: Assuming allocation function fails foomatic-filters-4.0.17/renderer.c:146:18: note: Assignment 'line=malloc(alloc)', assigned value is 0 foomatic-filters-4.0.17/renderer.c:148:32: note: Assuming condition is false foomatic-filters-4.0.17/renderer.c:159:5: note: Null pointer dereference foomatic-filters-4.0.17/renderer.c:195:27: warning: If memory allocation fails, then there is a possible null pointer dereference: jclstr [nullPointerOutOfMemory] foomatic-filters-4.0.17/renderer.c:370:28: note: Assuming allocation function fails foomatic-filters-4.0.17/renderer.c:370:28: note: Assignment 'jclstr=malloc(pos+1)', assigned value is 0 foomatic-filters-4.0.17/renderer.c:374:44: note: Calling function 'read_jcl_lines', 2nd argument 'jclstr' value is 0 foomatic-filters-4.0.17/renderer.c:195:27: note: Null pointer dereference foomatic-filters-4.0.17/renderer.c:203:5: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] foomatic-filters-4.0.17/renderer.c:184:20: note: Assuming allocation function fails foomatic-filters-4.0.17/renderer.c:184:20: note: Assignment 'result=malloc(alloc*sizeof(char*))', assigned value is 0 foomatic-filters-4.0.17/renderer.c:187:18: note: Assuming condition is false foomatic-filters-4.0.17/renderer.c:203:5: note: Null pointer dereference foomatic-filters-4.0.17/renderer.c:271:40: warning: If memory allocation fails, then there is a possible null pointer dereference: jclstr [nullPointerOutOfMemory] foomatic-filters-4.0.17/renderer.c:370:28: note: Assuming allocation function fails foomatic-filters-4.0.17/renderer.c:370:28: note: Assignment 'jclstr=malloc(pos+1)', assigned value is 0 foomatic-filters-4.0.17/renderer.c:380:50: note: Calling function 'write_merged_jcl_options', 5th argument 'jclstr' value is 0 foomatic-filters-4.0.17/renderer.c:271:40: note: Null pointer dereference foomatic-filters-4.0.17/renderer.c:371:21: warning: If memory allocation fails, then there is a possible null pointer dereference: jclstr [nullPointerOutOfMemory] foomatic-filters-4.0.17/renderer.c:370:28: note: Assuming allocation function fails foomatic-filters-4.0.17/renderer.c:370:28: note: Assignment 'jclstr=malloc(pos+1)', assigned value is 0 foomatic-filters-4.0.17/renderer.c:371:21: note: Null pointer dereference foomatic-filters-4.0.17/renderer.c:372:13: warning: If memory allocation fails, then there is a possible null pointer dereference: jclstr [nullPointerOutOfMemory] foomatic-filters-4.0.17/renderer.c:370:28: note: Assuming allocation function fails foomatic-filters-4.0.17/renderer.c:370:28: note: Assignment 'jclstr=malloc(pos+1)', assigned value is 0 foomatic-filters-4.0.17/renderer.c:372:13: note: Null pointer dereference foomatic-filters-4.0.17/renderer.c:210:21: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/renderer.c:210:26: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/renderer.c:271:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/renderer.c:394:40: warning: Uninitialized variable: driverjcl [uninitvar] foomatic-filters-4.0.17/renderer.c:362:32: note: Assuming condition is false foomatic-filters-4.0.17/renderer.c:394:40: note: Uninitialized variable: driverjcl foomatic-filters-4.0.17/postscript.c:179:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/postscript.c:192:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/postscript.c:401:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/util.c:42:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable P_tmpdir [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/util.c:714:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] foomatic-filters-4.0.17/spooler.c:408:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/spooler.c:434:11: style: Variable 'key' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/spooler.c:461:17: style: Variable 'i' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/util.c:300:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/util.c:300:54: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/util.c:519:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/util.c:519:48: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/util.c:173:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dest [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:340:21: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:340:21: note: Assignment 'tmp=malloc(len+1)', assigned value is 0 foomatic-filters-4.0.17/util.c:341:17: note: Calling function 'strlcpy', 1st argument 'tmp' value is 0 foomatic-filters-4.0.17/util.c:173:9: note: Null pointer dereference foomatic-filters-4.0.17/util.c:345:23: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: cwd [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:343:21: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:343:21: note: Assignment 'cwd=malloc(len)', assigned value is 0 foomatic-filters-4.0.17/util.c:345:23: note: Null pointer dereference foomatic-filters-4.0.17/util.c:347:23: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:340:21: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:340:21: note: Assignment 'tmp=malloc(len+1)', assigned value is 0 foomatic-filters-4.0.17/util.c:347:23: note: Null pointer dereference foomatic-filters-4.0.17/util.c:418:5: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:417:18: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:417:18: note: Assignment 'argv=malloc((cnt+1)*sizeof(char*))', assigned value is 0 foomatic-filters-4.0.17/util.c:418:5: note: Null pointer dereference foomatic-filters-4.0.17/util.c:425:17: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:424:19: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:424:19: note: Assignment 's=malloc(len+1)', assigned value is 0 foomatic-filters-4.0.17/util.c:425:17: note: Null pointer dereference foomatic-filters-4.0.17/util.c:426:9: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:424:19: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:424:19: note: Assignment 's=malloc(len+1)', assigned value is 0 foomatic-filters-4.0.17/util.c:426:9: note: Null pointer dereference foomatic-filters-4.0.17/util.c:427:2: warning: If memory allocation fails, then there is a possible null pointer dereference: argv [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:417:18: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:417:18: note: Assignment 'argv=malloc((cnt+1)*sizeof(char*))', assigned value is 0 foomatic-filters-4.0.17/util.c:427:2: note: Null pointer dereference foomatic-filters-4.0.17/util.c:549:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ds [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:548:24: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:548:24: note: Assignment 'ds=malloc(sizeof(struct dstr_t))', assigned value is 0 foomatic-filters-4.0.17/util.c:549:5: note: Null pointer dereference foomatic-filters-4.0.17/util.c:550:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ds [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:548:24: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:548:24: note: Assignment 'ds=malloc(sizeof(struct dstr_t))', assigned value is 0 foomatic-filters-4.0.17/util.c:550:5: note: Null pointer dereference foomatic-filters-4.0.17/util.c:551:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ds [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:548:24: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:548:24: note: Assignment 'ds=malloc(sizeof(struct dstr_t))', assigned value is 0 foomatic-filters-4.0.17/util.c:551:5: note: Null pointer dereference foomatic-filters-4.0.17/util.c:551:23: warning: If memory allocation fails, then there is a possible null pointer dereference: ds [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:548:24: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:548:24: note: Assignment 'ds=malloc(sizeof(struct dstr_t))', assigned value is 0 foomatic-filters-4.0.17/util.c:551:23: note: Null pointer dereference foomatic-filters-4.0.17/util.c:552:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ds [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:548:24: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:548:24: note: Assignment 'ds=malloc(sizeof(struct dstr_t))', assigned value is 0 foomatic-filters-4.0.17/util.c:552:5: note: Null pointer dereference foomatic-filters-4.0.17/util.c:764:25: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:797:18: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:797:18: note: Assignment 'strf=malloc(len+1)', assigned value is 0 foomatic-filters-4.0.17/util.c:802:25: note: Calling function 'dstrinsert', 3rd argument 'strf' value is 0 foomatic-filters-4.0.17/util.c:764:25: note: Null pointer dereference foomatic-filters-4.0.17/util.c:779:23: warning: If memory allocation fails, then there is a possible null pointer dereference: copy [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:763:25: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:763:25: note: Assignment 'copy=strdup(ds->data)', assigned value is 0 foomatic-filters-4.0.17/util.c:779:23: note: Null pointer dereference foomatic-filters-4.0.17/util.c:781:22: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:797:18: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:797:18: note: Assignment 'strf=malloc(len+1)', assigned value is 0 foomatic-filters-4.0.17/util.c:802:25: note: Calling function 'dstrinsert', 3rd argument 'strf' value is 0 foomatic-filters-4.0.17/util.c:781:22: note: Null pointer dereference foomatic-filters-4.0.17/util.c:913:5: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:912:23: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:912:23: note: Assignment 'l=malloc(sizeof(struct list_t))', assigned value is 0 foomatic-filters-4.0.17/util.c:913:5: note: Null pointer dereference foomatic-filters-4.0.17/util.c:914:5: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:912:23: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:912:23: note: Assignment 'l=malloc(sizeof(struct list_t))', assigned value is 0 foomatic-filters-4.0.17/util.c:914:5: note: Null pointer dereference foomatic-filters-4.0.17/util.c:965:5: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:964:18: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:964:18: note: Assignment 'item=malloc(sizeof(struct listitem_t))', assigned value is 0 foomatic-filters-4.0.17/util.c:965:5: note: Null pointer dereference foomatic-filters-4.0.17/util.c:966:5: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:964:18: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:964:18: note: Assignment 'item=malloc(sizeof(struct listitem_t))', assigned value is 0 foomatic-filters-4.0.17/util.c:966:5: note: Null pointer dereference foomatic-filters-4.0.17/util.c:987:5: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:986:18: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:986:18: note: Assignment 'item=malloc(sizeof(struct listitem_t))', assigned value is 0 foomatic-filters-4.0.17/util.c:987:5: note: Null pointer dereference foomatic-filters-4.0.17/util.c:988:5: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] foomatic-filters-4.0.17/util.c:986:18: note: Assuming allocation function fails foomatic-filters-4.0.17/util.c:986:18: note: Assignment 'item=malloc(sizeof(struct listitem_t))', assigned value is 0 foomatic-filters-4.0.17/util.c:988:5: note: Null pointer dereference foomatic-filters-4.0.17/util.c:147:28: style: Variable 'np' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/util.c:221:11: style: Variable 'pstr' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/util.c:293:11: style: Variable 'path' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/util.c:809:16: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/util.c:841:11: style: Variable 'pstr' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/util.c:942:17: style: Variable 'i' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/util.c:1072:11: style: Variable 'i_name' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/util.c:88:10: style: Variable 'pstr' is assigned a value that is never used. [unreadVariable] foomatic-filters-4.0.17/postscript.c:711:33: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/postscript.c:712:33: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/postscript.c:715:33: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/postscript.c:722:33: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/postscript.c:723:33: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/postscript.c:725:33: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/postscript.c:712:31: style: Variable 'p' is reassigned a value before the old one has been used. [redundantAssignment] foomatic-filters-4.0.17/postscript.c:711:31: note: p is assigned foomatic-filters-4.0.17/postscript.c:712:31: note: p is overwritten foomatic-filters-4.0.17/postscript.c:851:51: style: Variable 'width' is reassigned a value before the old one has been used. [redundantAssignment] foomatic-filters-4.0.17/postscript.c:848:51: note: width is assigned foomatic-filters-4.0.17/postscript.c:851:51: note: width is overwritten foomatic-filters-4.0.17/postscript.c:336:23: style: Variable 'fromcomposite' is assigned a value that is never used. [unreadVariable] foomatic-filters-4.0.17/postscript.c:463:31: style: Variable 'p' is assigned a value that is never used. [unreadVariable] foomatic-filters-4.0.17/postscript.c:1201:25: style: Variable 'prologfound' is assigned a value that is never used. [unreadVariable] foomatic-filters-4.0.17/postscript.c:1202:24: style: Variable 'setupfound' is assigned a value that is never used. [unreadVariable] foomatic-filters-4.0.17/postscript.c:1203:28: style: Variable 'pagesetupfound' is assigned a value that is never used. [unreadVariable] foomatic-filters-4.0.17/options.c:1925:9: warning:inconclusive: The buffer 'cmd_pdf' may not be null-terminated after the call to strncpy(). [terminateStrncpy] foomatic-filters-4.0.17/options.c:662:20: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/options.c:662:53: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/options.c:895:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/options.c:895:48: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/options.c:987:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/options.c:987:48: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/options.c:1154:20: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] foomatic-filters-4.0.17/options.c:2048:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/options.c:2051:23: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/options.c:2156:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/options.c:2156:48: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foomatic-filters-4.0.17/options.c:1383:9: warning:inconclusive: Width 15 given in format string (no. 2) is smaller than destination buffer 'typestr[33]'. [invalidScanfFormatWidth_smaller] foomatic-filters-4.0.17/options.c:1637:13: warning:inconclusive: Width 127 given in format string (no. 1) is smaller than destination buffer 'printer_id[256]'. [invalidScanfFormatWidth_smaller] foomatic-filters-4.0.17/options.c:2163:25: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] foomatic-filters-4.0.17/options.c:2163:25: warning: %d in format string (no. 2) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] foomatic-filters-4.0.17/options.c:1476:9: error: Common realloc mistake: 'optionsets' nulled but not freed upon failure [memleakOnRealloc] foomatic-filters-4.0.17/options.c:337:21: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:1879:27: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:1879:27: note: Assignment 'icc_qual2=strdup("MediaType")', assigned value is 0 foomatic-filters-4.0.17/options.c:1880:40: note: Calling function 'find_option', 1st argument 'icc_qual2' value is 0 foomatic-filters-4.0.17/options.c:337:21: note: Null pointer dereference foomatic-filters-4.0.17/options.c:454:9: warning: If memory allocation fails, then there is a possible null pointer dereference: val [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:453:21: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:453:21: note: Assignment 'val=calloc(1,sizeof(struct value_t))', assigned value is 0 foomatic-filters-4.0.17/options.c:454:9: note: Null pointer dereference foomatic-filters-4.0.17/options.c:527:22: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:526:28: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:526:28: note: Assignment 'result=malloc(32)', assigned value is 0 foomatic-filters-4.0.17/options.c:527:22: note: Null pointer dereference foomatic-filters-4.0.17/options.c:548:22: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:547:28: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:547:28: note: Assignment 'result=malloc(32)', assigned value is 0 foomatic-filters-4.0.17/options.c:548:22: note: Null pointer dereference foomatic-filters-4.0.17/options.c:650:9: warning: If memory allocation fails, then there is a possible null pointer dereference: paramvalues [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:649:29: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:649:29: note: Assignment 'paramvalues=malloc(sizeof(char*))', assigned value is 0 foomatic-filters-4.0.17/options.c:650:9: note: Null pointer dereference foomatic-filters-4.0.17/options.c:652:14: warning: If memory allocation fails, then there is a possible null pointer dereference: paramvalues [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:649:29: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:649:29: note: Assignment 'paramvalues=malloc(sizeof(char*))', assigned value is 0 foomatic-filters-4.0.17/options.c:652:14: note: Null pointer dereference foomatic-filters-4.0.17/options.c:1143:17: warning: If memory allocation fails, then there is a possible null pointer dereference: choice [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:1138:24: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:1138:24: note: Assignment 'choice=calloc(1,sizeof(struct choice_t))', assigned value is 0 foomatic-filters-4.0.17/options.c:1143:17: note: Null pointer dereference foomatic-filters-4.0.17/options.c:1380:13: warning: If memory allocation fails, then there is a possible null pointer dereference: param [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:1375:28: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:1375:28: note: Assignment 'param=calloc(1,sizeof(struct param_t))', assigned value is 0 foomatic-filters-4.0.17/options.c:1380:13: note: Null pointer dereference foomatic-filters-4.0.17/options.c:1381:13: warning: If memory allocation fails, then there is a possible null pointer dereference: param [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:1375:28: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:1375:28: note: Assignment 'param=calloc(1,sizeof(struct param_t))', assigned value is 0 foomatic-filters-4.0.17/options.c:1381:13: note: Null pointer dereference foomatic-filters-4.0.17/options.c:1384:33: warning: If memory allocation fails, then there is a possible null pointer dereference: param [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:1375:28: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:1375:28: note: Assignment 'param=calloc(1,sizeof(struct param_t))', assigned value is 0 foomatic-filters-4.0.17/options.c:1384:33: note: Null pointer dereference foomatic-filters-4.0.17/options.c:1384:45: warning: If memory allocation fails, then there is a possible null pointer dereference: param [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:1375:28: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:1375:28: note: Assignment 'param=calloc(1,sizeof(struct param_t))', assigned value is 0 foomatic-filters-4.0.17/options.c:1384:45: note: Null pointer dereference foomatic-filters-4.0.17/options.c:1443:12: warning: If memory allocation fails, then there is a possible null pointer dereference: param [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:1442:19: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:1442:19: note: Assignment 'param=calloc(1,sizeof(struct param_t))', assigned value is 0 foomatic-filters-4.0.17/options.c:1443:12: note: Null pointer dereference foomatic-filters-4.0.17/options.c:1444:5: warning: If memory allocation fails, then there is a possible null pointer dereference: param [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:1442:19: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:1442:19: note: Assignment 'param=calloc(1,sizeof(struct param_t))', assigned value is 0 foomatic-filters-4.0.17/options.c:1444:5: note: Null pointer dereference foomatic-filters-4.0.17/options.c:1445:5: warning: If memory allocation fails, then there is a possible null pointer dereference: param [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:1442:19: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:1442:19: note: Assignment 'param=calloc(1,sizeof(struct param_t))', assigned value is 0 foomatic-filters-4.0.17/options.c:1445:5: note: Null pointer dereference foomatic-filters-4.0.17/options.c:1835:13: warning: If memory allocation fails, then there is a possible null pointer dereference: entry [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:1834:27: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:1834:27: note: Assignment 'entry=calloc(1,sizeof(struct icc_mapping_entry_t))', assigned value is 0 foomatic-filters-4.0.17/options.c:1835:13: note: Null pointer dereference foomatic-filters-4.0.17/options.c:1836:13: warning: If memory allocation fails, then there is a possible null pointer dereference: entry [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:1834:27: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:1834:27: note: Assignment 'entry=calloc(1,sizeof(struct icc_mapping_entry_t))', assigned value is 0 foomatic-filters-4.0.17/options.c:1836:13: note: Null pointer dereference foomatic-filters-4.0.17/options.c:2024:22: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:2023:23: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:2023:23: note: Assignment 'p=malloc(3)', assigned value is 0 foomatic-filters-4.0.17/options.c:2024:22: note: Null pointer dereference foomatic-filters-4.0.17/options.c:2026:22: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] foomatic-filters-4.0.17/options.c:2025:23: note: Assuming allocation function fails foomatic-filters-4.0.17/options.c:2025:23: note: Assignment 's=malloc(cmdvar->len+3)', assigned value is 0 foomatic-filters-4.0.17/options.c:2026:22: note: Null pointer dereference foomatic-filters-4.0.17/options.c:792:50: style:inconclusive: Function 'option_get_value' argument 2 names different: declaration 'optset' definition 'optionset'. [funcArgNamesDifferent] foomatic-filters-4.0.17/options.h:157:50: note: Function 'option_get_value' argument 2 names different: declaration 'optset' definition 'optionset'. foomatic-filters-4.0.17/options.c:792:50: note: Function 'option_get_value' argument 2 names different: declaration 'optset' definition 'optionset'. foomatic-filters-4.0.17/options.c:935:56: style:inconclusive: Function 'option_get_command' argument 3 names different: declaration 'optset' definition 'optionset'. [funcArgNamesDifferent] foomatic-filters-4.0.17/options.h:160:56: note: Function 'option_get_command' argument 3 names different: declaration 'optset' definition 'optionset'. foomatic-filters-4.0.17/options.c:935:56: note: Function 'option_get_command' argument 3 names different: declaration 'optset' definition 'optionset'. foomatic-filters-4.0.17/options.c:1016:41: style:inconclusive: Function 'option_set_value' argument 2 names different: declaration 'optset' definition 'optionset'. [funcArgNamesDifferent] foomatic-filters-4.0.17/options.h:156:41: note: Function 'option_set_value' argument 2 names different: declaration 'optset' definition 'optionset'. foomatic-filters-4.0.17/options.c:1016:41: note: Function 'option_set_value' argument 2 names different: declaration 'optset' definition 'optionset'. foomatic-filters-4.0.17/options.c:2011:23: style: Local variable 's' shadows outer variable [shadowVariable] foomatic-filters-4.0.17/options.c:1938:11: note: Shadowed declaration foomatic-filters-4.0.17/options.c:2011:23: note: Shadow variable foomatic-filters-4.0.17/options.c:324:15: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/options.c:398:31: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] foomatic-filters-4.0.17/options.c:409:35: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] foomatic-filters-4.0.17/options.c:414:36: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] foomatic-filters-4.0.17/options.c:419:33: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] foomatic-filters-4.0.17/options.c:424:41: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] foomatic-filters-4.0.17/options.c:429:34: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] foomatic-filters-4.0.17/options.c:494:33: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] foomatic-filters-4.0.17/options.c:721:11: style: Variable 'res' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/options.c:722:15: style: Variable 'choice' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/options.c:850:14: style: Variable 'param' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/options.c:863:14: style: Variable 'param' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/options.c:918:36: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] foomatic-filters-4.0.17/options.c:938:15: style: Variable 'choice' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/options.c:1020:15: style: Variable 'choice' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/options.c:1072:27: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] foomatic-filters-4.0.17/options.c:1154:16: style: Variable 't' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/options.c:1489:14: style: Variable 'val' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/options.c:2152:20: style: Variable 'tok' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/options.c:2208:19: style: Variable 'pr' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/options.c:2253:20: style: Variable 'bestvalue' can be declared as pointer to const [constVariablePointer] foomatic-filters-4.0.17/options.c:2189:12: warning: Uninitialized variables: head.even, head.odd, head.first, head.last, head.next [uninitvar] foomatic-filters-4.0.17/options.c:2156:37: note: Assuming condition is false foomatic-filters-4.0.17/options.c:2189:12: note: Uninitialized variables: head.even, head.odd, head.first, head.last, head.next foomatic-filters-4.0.17/options.c:699:15: style: Variable 'param' is assigned a value that is never used. [unreadVariable] foomatic-filters-4.0.17/options.c:1516:21: style: Variable 'val' is assigned a value that is never used. [unreadVariable] diff: head foomatic-filters-4.0.17/options.c:1489:14: style: Variable 'val' can be declared as pointer to const [constVariablePointer] head foomatic-filters-4.0.17/options.c:2152:20: style: Variable 'tok' can be declared as pointer to const [constVariablePointer] head foomatic-filters-4.0.17/options.c:2208:19: style: Variable 'pr' can be declared as pointer to const [constVariablePointer] head foomatic-filters-4.0.17/options.c:324:15: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] head foomatic-filters-4.0.17/options.c:722:15: style: Variable 'choice' can be declared as pointer to const [constVariablePointer] head foomatic-filters-4.0.17/options.c:850:14: style: Variable 'param' can be declared as pointer to const [constVariablePointer] head foomatic-filters-4.0.17/options.c:863:14: style: Variable 'param' can be declared as pointer to const [constVariablePointer] head foomatic-filters-4.0.17/spooler.c:461:17: style: Variable 'i' can be declared as pointer to const [constVariablePointer] head foomatic-filters-4.0.17/util.c:293:11: style: Variable 'path' can be declared as pointer to const [constVariablePointer] head foomatic-filters-4.0.17/util.c:942:17: style: Variable 'i' can be declared as pointer to const [constVariablePointer] DONE