2026-05-01 15:16 ftp://ftp.de.debian.org/debian/pool/main/d/discover/discover_2.1.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=bsd --library=libcurl --library=zlib --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 -j6 platform: Linux-7.0.3+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a734 (2026-05-01 11:10:43 +0200) count: 172 171 elapsed-time: 0.3 0.2 head-timing-info: old-timing-info: head results: discover-2.1.2/lib/core.c:70:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable discover_error_t [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/core.c:126:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_MAJOR [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/core.c:135:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_MINOR [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/core.c:144:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_MICRO [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/core.c:86:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] discover-2.1.2/lib/core.c:82:59: style: Parameter 'message' can be declared as pointer to const. However it seems that '_discover_create_message' is a callback function, if 'message' is declared with const you might also need to cast function pointer(s). [constParameterCallback] discover-2.1.2/lib/core.c:73:30: note: You might need to cast the function pointer here discover-2.1.2/lib/core.c:82:59: note: Parameter 'message' can be declared as pointer to const discover-2.1.2/lib/conf.c:412:36: error: There is an unknown macro here somewhere. Configuration is required. If SYSCONFDIR is a macro then please configure it. [unknownMacro] discover-2.1.2/discover-xml/discover-xml.c:72:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] discover-2.1.2/discover-xml/discover-xml.c:98:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_BUGREPORT [valueFlowBailoutIncompleteVar] discover-2.1.2/discover-xml/discover-xml.c:104:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_STRING [valueFlowBailoutIncompleteVar] discover-2.1.2/discover-xml/discover-xml.c:111:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] discover-2.1.2/discover-xml/discover-xml.c:133:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DISCOVER_ESYS [valueFlowBailoutIncompleteVar] discover-2.1.2/discover-xml/discover-xml.c:158:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] discover-2.1.2/discover-xml/discover-xml.c:220:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/busclass-xml.c:191:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DISCOVER_EIO [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/busclass-xml.c:223:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUSCLASS_TYPE [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/busclass-xml.c:250:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUS_COUNT [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/busclass-xml.c:367:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable discover_xml_busclass_t [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/load-url.c:97:13: warning: Uninitialized variable: parse_result [uninitvar] discover-2.1.2/lib/load-url.c:91:17: note: Assuming condition is false discover-2.1.2/lib/load-url.c:97:13: note: Uninitialized variable: parse_result discover-2.1.2/lib/load-url.c:58:11: style: Unused variable: tmp [unusedVariable] discover-2.1.2/lib/device.c:79:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/device.c:417:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable discover_data_t [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/device.c:570:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable discover_device_t [valueFlowBailoutIncompleteVar] discover-2.1.2/discover/discover.c:244:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_STRING [valueFlowBailoutIncompleteVar] discover-2.1.2/discover/discover.c:282:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_BUGREPORT [valueFlowBailoutIncompleteVar] discover-2.1.2/discover/discover.c:291:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] discover-2.1.2/discover/discover.c:328:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] discover-2.1.2/discover/discover.c:408:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] discover-2.1.2/discover/discover.c:503:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] discover-2.1.2/discover/discover.c:575:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] discover-2.1.2/discover/discover.c:597:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] discover-2.1.2/discover/discover.c:636:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] discover-2.1.2/discover/discover.c:686:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/busclass-xml.c:263:38: style: Parameter 'busclass' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/busclass-xml.c:264:57: style: Parameter 'busclasses' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/busclass-xml.c:295:49: style: Parameter 'discover_class' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/busclass-xml.c:298:11: style: Variable 'found_class_name' can be declared as pointer to const [constVariablePointer] discover-2.1.2/lib/busclass-xml.c:327:55: style: Parameter 'busclass' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/busclass-xml.c:340:57: style: Parameter 'busclass' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/stack.c:51:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable discover_xml_stack [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/busclass-xml.c:352:57: style: Parameter 'busclass' can be declared as pointer to const [constParameterPointer] discover-2.1.2/discover-xml/discover-xml.c:67:24: style: Parameter 's' can be declared as pointer to const [constParameterPointer] discover-2.1.2/discover-xml/discover-xml.c:142:46: style: Parameter 'busmap' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/device-xml.c:119:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DISCOVER_EIO [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/device-xml.c:462:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DISCOVER_EIO [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/device-xml.c:534:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUS_COUNT [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/stack.c:103:51: style: Parameter 'stack' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/stack.c:111:25: style: Variable 'S' can be declared as pointer to const [constVariablePointer] discover-2.1.2/lib/utils.c:59:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EX_OSERR [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/utils.c:75:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EX_OSERR [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/utils.c:70:17: style: Unsigned expression 'size' can't be negative so it is unnecessary to test it. [unsignedPositive] discover-2.1.2/lib/sysdep.c:69:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable discover_sysdep_data_t [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/sysdep.c:83:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable discover_sysdep_device_data_t [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/sysdep.c:216:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DISCOVER_SUCCESS [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/sysdep.c:308:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUS_COUNT [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/device.c:67:25: style: Variable 'busmap' can be declared as pointer to const [constVariablePointer] discover-2.1.2/lib/device.c:133:45: style: Parameter 'discover_class' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/device.c:312:42: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/device.c:323:41: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/device.c:334:43: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/device.c:345:42: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/device.c:356:41: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/device.c:367:41: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/device.c:489:49: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/device.c:500:49: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/device.c:511:51: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/device.c:522:50: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/device.c:533:52: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/device.c:544:52: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/device.c:555:45: style: Parameter 'device' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/url-xml.c:219:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DISCOVER_EIO [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/url-xml.c:279:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DISCOVER_EDATANOTFOUND [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/url-xml.c:314:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUS_COUNT [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/url-xml.c:330:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable discover_xml_url_t [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/vendor-xml.c:193:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DISCOVER_EIO [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/vendor-xml.c:225:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VENDOR_TYPE [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/vendor-xml.c:251:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUS_COUNT [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/vendor-xml.c:327:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable discover_xml_vendor_t [valueFlowBailoutIncompleteVar] discover-2.1.2/lib/sysdep.c:190:9: warning: Possible null pointer dereference: data_current [nullPointer] discover-2.1.2/lib/sysdep.c:153:24: note: Assignment 'data_current=NULL', assigned value is 0 discover-2.1.2/lib/sysdep.c:160:52: note: Assuming condition is false discover-2.1.2/lib/sysdep.c:190:9: note: Null pointer dereference discover-2.1.2/lib/sysdep.c:208:40: style: Unused variable: tmp [unusedVariable] discover-2.1.2/lib/sysdep.c:208:46: style: Unused variable: i [unusedVariable] discover-2.1.2/lib/url-xml.c:265:11: style: Variable 'busname' can be declared as pointer to const [constVariablePointer] discover-2.1.2/lib/url-xml.c:266:11: style: Variable 'filetypename' can be declared as pointer to const [constVariablePointer] discover-2.1.2/lib/url-xml.c:376:46: style: Parameter 'url' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/url-xml.c:387:48: style: Parameter 'url' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/url-xml.c:398:46: style: Parameter 'url' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/url-xml.c:409:47: style: Parameter 'url' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/url-xml.c:420:47: style: Parameter 'url' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/url-xml.c:431:47: style: Parameter 'url' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/vendor-xml.c:264:67: style: Parameter 'id' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/vendor-xml.c:266:28: style: Variable 'vendor' can be declared as pointer to const [constVariablePointer] discover-2.1.2/lib/vendor-xml.c:290:51: style: Parameter 'vendor' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/vendor-xml.c:301:53: style: Parameter 'vendor' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/vendor-xml.c:312:53: style: Parameter 'vendor' can be declared as pointer to const [constParameterPointer] discover-2.1.2/lib/version-cmp.c:478:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DISCOVER_EBADVERSION [valueFlowBailoutIncompleteVar] discover-2.1.2/portability/mkdtemp.c:97:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] discover-2.1.2/portability/mkstemp.c:106:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] discover-2.1.2/portability/alloca.c:214:6: warning: If memory allocation fails, then there is a possible null pointer dereference: (union header*)new [nullPointerOutOfMemory] discover-2.1.2/portability/alloca.c:211:35: note: Assuming allocation function fails discover-2.1.2/portability/alloca.c:211:35: note: Assignment 'new=xmalloc(sizeof(union header)+size)', assigned value is 0 discover-2.1.2/portability/alloca.c:214:6: note: Null pointer dereference discover-2.1.2/portability/alloca.c:215:6: warning: If memory allocation fails, then there is a possible null pointer dereference: (union header*)new [nullPointerOutOfMemory] discover-2.1.2/portability/alloca.c:211:35: note: Assuming allocation function fails discover-2.1.2/portability/alloca.c:211:35: note: Assignment 'new=xmalloc(sizeof(union header)+size)', assigned value is 0 discover-2.1.2/portability/alloca.c:215:6: note: Null pointer dereference discover-2.1.2/portability/alloca.c:221:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] discover-2.1.2/portability/alloca.c:211:35: note: Assuming allocation function fails discover-2.1.2/portability/alloca.c:211:35: note: Assignment 'new=xmalloc(sizeof(union header)+size)', assigned value is 0 discover-2.1.2/portability/alloca.c:221:36: note: Null pointer addition discover-2.1.2/portability/alloca.c:112:16: style: Variable 'addr' can be declared as pointer to const [constVariablePointer] discover-2.1.2/portability/alloca.c:146:8: style: union member 'hdr::align' is never used. [unusedStructMember] discover-2.1.2/lib/device-xml.c:113:59: style: Parameter 'url' can be declared as pointer to const [constParameterPointer] discover-2.1.2/sysdeps/linux/pcmcia.c:96:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] discover-2.1.2/sysdeps/linux/pcmcia.c:122:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IREAD [valueFlowBailoutIncompleteVar] discover-2.1.2/sysdeps/linux/pcmcia.c:132:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TUPLE_RETURN_COMMON [valueFlowBailoutIncompleteVar] discover-2.1.2/sysdeps/linux/pcmcia.c:175:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CISTPL_MANFID [valueFlowBailoutIncompleteVar] discover-2.1.2/sysdeps/linux/ata.c:59:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_PROC_IDE [valueFlowBailoutIncompleteVar] discover-2.1.2/sysdeps/linux/pci.c:76:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_PROC_PCI [valueFlowBailoutIncompleteVar] discover-2.1.2/sysdeps/linux/pci.c:170:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_SYS_PCI [valueFlowBailoutIncompleteVar] discover-2.1.2/sysdeps/linux/pci.c:314:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_SYS_PCI [valueFlowBailoutIncompleteVar] discover-2.1.2/sysdeps/linux/pcmcia.c:119:14: style: Obsolescent function 'tmpnam' called. It is recommended to use 'tmpfile', 'mkstemp' or 'mkdtemp' instead. [prohibitedtmpnamCalled] discover-2.1.2/sysdeps/linux/pcmcia.c:99:12: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] discover-2.1.2/sysdeps/linux/pcmcia.c:89:29: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] discover-2.1.2/sysdeps/linux/pcmcia.c:117:11: style: Variable 'fn' can be declared as pointer to const [constVariablePointer] discover-2.1.2/sysdeps/linux/pcmcia.c:160:22: style: Variable 'manfid' can be declared as pointer to const [constVariablePointer] discover-2.1.2/sysdeps/linux/pcmcia.c:106:22: warning: Uninitialized variable: t [uninitvar] discover-2.1.2/sysdeps/linux/pcmcia.c:98:27: note: Assuming condition is false discover-2.1.2/sysdeps/linux/pcmcia.c:106:22: note: Uninitialized variable: t discover-2.1.2/sysdeps/linux/scsi.c:98:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_PROC_SCSI [valueFlowBailoutIncompleteVar] discover-2.1.2/sysdeps/linux/usb.c:56:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_PROC_USB [valueFlowBailoutIncompleteVar] discover-2.1.2/sysdeps/linux/usb.c:62:17: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] discover-2.1.2/sysdeps/linux/usb.c:53:18: style: Unused variable: id [unusedVariable] discover-2.1.2/discover/discover.c:168:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new_node [nullPointerOutOfMemory] discover-2.1.2/discover/discover.c:167:22: note: Assuming allocation function fails discover-2.1.2/discover/discover.c:167:22: note: Assignment 'new_node=calloc(1,sizeof(struct linked_list_node_t))', assigned value is 0 discover-2.1.2/discover/discover.c:168:5: note: Null pointer dereference discover-2.1.2/discover/discover.c:386:25: warning: If memory allocation fails, then there is a possible null pointer dereference: details [nullPointerOutOfMemory] discover-2.1.2/discover/discover.c:454:39: note: Assuming allocation function fails discover-2.1.2/discover/discover.c:454:39: note: Assignment 'details=calloc(1,sizeof(struct format_details_t))', assigned value is 0 discover-2.1.2/discover/discover.c:461:31: note: Calling function 'format_handler', 2nd argument 'details' value is 0 discover-2.1.2/discover/discover.c:386:25: note: Null pointer dereference discover-2.1.2/discover/discover.c:388:5: warning: If memory allocation fails, then there is a possible null pointer dereference: details [nullPointerOutOfMemory] discover-2.1.2/discover/discover.c:454:39: note: Assuming allocation function fails discover-2.1.2/discover/discover.c:454:39: note: Assignment 'details=calloc(1,sizeof(struct format_details_t))', assigned value is 0 discover-2.1.2/discover/discover.c:461:31: note: Calling function 'format_handler', 2nd argument 'details' value is 0 discover-2.1.2/discover/discover.c:388:5: note: Null pointer dereference discover-2.1.2/discover/discover.c:389:5: warning: If memory allocation fails, then there is a possible null pointer dereference: details [nullPointerOutOfMemory] discover-2.1.2/discover/discover.c:454:39: note: Assuming allocation function fails discover-2.1.2/discover/discover.c:454:39: note: Assignment 'details=calloc(1,sizeof(struct format_details_t))', assigned value is 0 discover-2.1.2/discover/discover.c:461:31: note: Calling function 'format_handler', 2nd argument 'details' value is 0 discover-2.1.2/discover/discover.c:389:5: note: Null pointer dereference discover-2.1.2/discover/discover.c:390:5: warning: If memory allocation fails, then there is a possible null pointer dereference: details [nullPointerOutOfMemory] discover-2.1.2/discover/discover.c:454:39: note: Assuming allocation function fails discover-2.1.2/discover/discover.c:454:39: note: Assignment 'details=calloc(1,sizeof(struct format_details_t))', assigned value is 0 discover-2.1.2/discover/discover.c:461:31: note: Calling function 'format_handler', 2nd argument 'details' value is 0 discover-2.1.2/discover/discover.c:390:5: note: Null pointer dereference discover-2.1.2/discover/discover.c:462:13: warning: If memory allocation fails, then there is a possible null pointer dereference: details [nullPointerOutOfMemory] discover-2.1.2/discover/discover.c:454:39: note: Assuming allocation function fails discover-2.1.2/discover/discover.c:454:39: note: Assignment 'details=calloc(1,sizeof(struct format_details_t))', assigned value is 0 discover-2.1.2/discover/discover.c:462:13: note: Null pointer dereference discover-2.1.2/discover/discover.c:145:25: style: Variable 'cur_node' can be declared as pointer to const [constVariablePointer] discover-2.1.2/discover/discover.c:161:35: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] discover-2.1.2/discover/discover.c:185:25: style: Variable 'cur_node' can be declared as pointer to const [constVariablePointer] discover-2.1.2/discover/discover.c:286:24: style: Parameter 's' can be declared as pointer to const [constParameterPointer] discover-2.1.2/discover/discover.c:353:11: style: Variable 'end' can be declared as pointer to const [constVariablePointer] discover-2.1.2/discover/discover.c:456:11: style: Variable 'list_text' can be declared as pointer to const [constVariablePointer] discover-2.1.2/discover/discover.c:486:25: style: Variable 'busmap' can be declared as pointer to const [constVariablePointer] discover-2.1.2/discover/discover.c:585:25: style: Parameter 'id' can be declared as pointer to const [constParameterPointer] discover-2.1.2/discover/discover.c:587:25: style: Variable 'busmap' can be declared as pointer to const [constVariablePointer] discover-2.1.2/discover/discover.c:624:25: style: Variable 'busmap' can be declared as pointer to const [constVariablePointer] discover-2.1.2/discover/discover.c:625:34: style: Unused variable: device [unusedVariable] discover-2.1.2/discover/discover.c:627:12: style: Unused variable: j [unusedVariable] discover-2.1.2/sysdeps/linux/ata.c:36:47: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] discover-2.1.2/sysdeps/linux/ata.c:45:11: style: Variable 'ide_link' can be declared as pointer to const [constVariablePointer] discover-2.1.2/sysdeps/linux/ata.c:50:20: style: Variable 'ide_link_entry' can be declared as pointer to const [constVariablePointer] discover-2.1.2/tests/device.c:262:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable device_find [valueFlowBailoutIncompleteVar] discover-2.1.2/tests/main.c:89:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] discover-2.1.2/sysdeps/linux/scsi.c:76:11: style: Variable 'type' can be declared as pointer to const [constVariablePointer] discover-2.1.2/sysdeps/linux/scsi.c:77:11: style: Variable 'vendor' can be declared as pointer to const [constVariablePointer] discover-2.1.2/sysdeps/linux/scsi.c:77:20: style: Variable 'model' can be declared as pointer to const [constVariablePointer] discover-2.1.2/tests/xml.c:52:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI [valueFlowBailoutIncompleteVar] discover-2.1.2/tests/xml.c:62:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI [valueFlowBailoutIncompleteVar] discover-2.1.2/tests/xml.c:72:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI [valueFlowBailoutIncompleteVar] discover-2.1.2/tests/xml.c:82:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI [valueFlowBailoutIncompleteVar] discover-2.1.2/tests/xml.c:94:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI [valueFlowBailoutIncompleteVar] discover-2.1.2/tests/xml.c:106:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI [valueFlowBailoutIncompleteVar] discover-2.1.2/tests/xml.c:118:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI [valueFlowBailoutIncompleteVar] discover-2.1.2/tests/xml.c:130:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI [valueFlowBailoutIncompleteVar] discover-2.1.2/tests/xml.c:142:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI [valueFlowBailoutIncompleteVar] discover-2.1.2/tests/xml.c:153:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI [valueFlowBailoutIncompleteVar] discover-2.1.2/tests/xml.c:164:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI [valueFlowBailoutIncompleteVar] discover-2.1.2/tests/xml.c:176:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI [valueFlowBailoutIncompleteVar] discover-2.1.2/tests/xml.c:188:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCI [valueFlowBailoutIncompleteVar] discover-2.1.2/tests/xml.c:207:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xml_find_device [valueFlowBailoutIncompleteVar] discover-2.1.2/tests/device.c:249:24: warning: If memory allocation fails, then there is a possible null pointer dereference: bufptr [nullPointerOutOfMemory] discover-2.1.2/tests/device.c:237:26: note: Assuming allocation function fails discover-2.1.2/tests/device.c:237:26: note: Assignment 'buffer=calloc(500,1)', assigned value is 0 discover-2.1.2/tests/device.c:238:20: note: Assignment 'bufptr=buffer', assigned value is 0 discover-2.1.2/tests/device.c:249:24: note: Null pointer dereference discover-2.1.2/tests/device.c:94:70: style: Parameter 'target' can be declared as pointer to const [constParameterPointer] discover-2.1.2/tests/device.c:152:11: style: Variable 'data_string' can be declared as pointer to const [constVariablePointer] discover-2.1.2/tests/device.c:198:11: style: Variable 'data_string' can be declared as pointer to const [constVariablePointer] discover-2.1.2/sysdeps/linux/pci.c:199:13: error: Common realloc mistake: 'device_dir_list' nulled but not freed upon failure [memleakOnRealloc] discover-2.1.2/sysdeps/linux/pci.c:162:20: style: Variable 'pci_device_entry' can be declared as pointer to const [constVariablePointer] discover-2.1.2/sysdeps/linux/pci.c:68:18: style: Unused variable: i [unusedVariable] discover-2.1.2/sysdeps/linux/pci.c:164:24: style: Unused variable: line [unusedVariable] discover-2.1.2/lib/version-cmp.c:111:11: style: Variable 'word1' can be declared as pointer to const [constVariablePointer] discover-2.1.2/lib/version-cmp.c:111:19: style: Variable 'word2' can be declared as pointer to const [constVariablePointer] discover-2.1.2/lib/version-cmp.c:438:45: style: Parameter 'version' can be declared as pointer to const [constParameterPointer] diff: head discover-2.1.2/sysdeps/linux/pcmcia.c:106:22: warning: Uninitialized variable: t [uninitvar] discover-2.1.2/sysdeps/linux/pcmcia.c:98:27: note: Assuming condition is false discover-2.1.2/sysdeps/linux/pcmcia.c:106:22: note: Uninitialized variable: t DONE