2026-05-01 15:16 ftp://ftp.de.debian.org/debian/pool/main/d/diskscan/diskscan_0.21.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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: 254 255 elapsed-time: 0.7 0.6 head-timing-info: old-timing-info: head results: diskscan-0.21/arch/arch-posix.c:14:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-posix.c:32:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATA_FULL [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-posix.c:61:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATA_FULL [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-posix.c:97:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATA_NONE [valueFlowBailoutIncompleteVar] diskscan-0.21/cli/cli.c:296:44: debug: Function::addArguments found argument 'signal' with varid 0. [varid0] diskscan-0.21/arch/arch-freebsd.c:28:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIOCGMEDIASIZE [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-freebsd.c:46:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MNT_WAIT [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-freebsd.c:86:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIOCGIFCONF [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-generic.c:8:35: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] diskscan-0.21/arch/arch-posix.c:28:35: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] diskscan-0.21/arch/arch-posix.c:57:36: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] diskscan-0.21/arch/arch-posix.c:57:90: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] diskscan-0.21/cli/cli.c:55:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] diskscan-0.21/cli/cli.c:62:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] diskscan-0.21/cli/cli.c:101:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable latency_max_msec [valueFlowBailoutIncompleteVar] diskscan-0.21/cli/cli.c:159:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] diskscan-0.21/cli/cli.c:172:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] diskscan-0.21/cli/cli.c:209:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DISK_NOT_MOUNTED [valueFlowBailoutIncompleteVar] diskscan-0.21/cli/cli.c:305:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_RESTART [valueFlowBailoutIncompleteVar] diskscan-0.21/cli/cli.c:318:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCAN_MODE_SEQ [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/examples/hdr_decoder.c:25:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/examples/hiccup.c:50:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pollfd [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/examples/hiccup.c:105:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/examples/hiccup.c:133:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-freebsd.c:54:18: style: Variable 'mnt' can be declared as pointer to const [constVariablePointer] diskscan-0.21/arch/arch-linux.c:53:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR_NONE [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-linux.c:179:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_FLAG_LUN_INHIBIT [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-linux.c:255:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DISK_MOUNTED_RW [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-linux.c:267:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DISK_MOUNTED_RW [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-linux.c:321:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-linux.c:333:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_TO_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-linux.c:338:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-linux.c:354:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-linux.c:380:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_TO_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-linux.c:407:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-linux.c:459:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-linux.c:518:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIOCGIFCONF [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_interval_recorder.c:26:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __ATOMIC_SEQ_CST [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_interval_recorder.c:42:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __ATOMIC_SEQ_CST [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_interval_recorder.c:22:11: style:inconclusive: Function 'hdr_interval_recorder_update' argument 3 names different: declaration '' definition 'arg'. [funcArgNamesDifferentUnnamed] diskscan-0.21/hdrhistogram/src/hdr_encoding.c:198:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_encoding.c:261:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_encoding.c:304:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_writer_reader_phaser.c:19:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __ATOMIC_SEQ_CST [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_writer_reader_phaser.c:24:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __ATOMIC_SEQ_CST [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_writer_reader_phaser.c:29:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __ATOMIC_SEQ_CST [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_writer_reader_phaser.c:36:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_writer_reader_phaser.c:67:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __ATOMIC_SEQ_CST [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_writer_reader_phaser.c:75:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __ATOMIC_SEQ_CST [valueFlowBailoutIncompleteVar] diskscan-0.21/cli/cli.c:215:24: style: Variable 'long_options' can be declared as const array [constVariable] diskscan-0.21/hdrhistogram/src/hdr_writer_reader_phaser.c:130:17: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] diskscan-0.21/hdrhistogram/src/hdr_histogram.c:259:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_histogram.c:325:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_histogram.c:953:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/test/hdr_histogram_perf.c:42:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_histogram_log.c:75:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_histogram_log.c:241:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_histogram_log.c:434:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_histogram_log.c:529:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_histogram_log.c:627:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_histogram_log.c:712:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_histogram_log.c:803:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_histogram_log.c:860:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_histogram_log.c:938:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_histogram_log.c:1001:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/src/hdr_encoding.c:96:56: style:inconclusive: Function 'zig_zag_decode_i64' argument 2 names different: declaration 'signed_value' definition 'retVal'. [funcArgNamesDifferent] diskscan-0.21/hdrhistogram/src/hdr_encoding.h:28:56: note: Function 'zig_zag_decode_i64' argument 2 names different: declaration 'signed_value' definition 'retVal'. diskscan-0.21/hdrhistogram/src/hdr_encoding.c:96:56: note: Function 'zig_zag_decode_i64' argument 2 names different: declaration 'signed_value' definition 'retVal'. diskscan-0.21/hdrhistogram/src/hdr_encoding.c:16:35: error: Shifting signed 64-bit value by 63 bits is undefined behaviour [shiftTooManyBitsSigned] diskscan-0.21/lib/data.c:253:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable start_sector [valueFlowBailoutIncompleteVar] diskscan-0.21/lib/data.c:290:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATA_FULL [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:258:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:516:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:608:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HDR_LOG_INVALID_VERSION [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:676:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:721:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:765:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/test/hdr_histogram_test.c:137:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/test/hdr_histogram_test.c:151:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] diskscan-0.21/arch/arch-linux.c:252:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] diskscan-0.21/arch/arch-linux.c:246:54: style: Parameter 'mnt' can be declared as pointer to const [constParameterPointer] diskscan-0.21/arch/arch-linux.c:249:8: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] diskscan-0.21/arch/arch-linux.c:331:35: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] diskscan-0.21/arch/arch-linux.c:336:34: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] diskscan-0.21/arch/arch-linux.c:341:35: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] diskscan-0.21/arch/arch-linux.c:367:36: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] diskscan-0.21/arch/arch-linux.c:443:35: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] diskscan-0.21/lib/data.c:197:8: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] diskscan-0.21/hdrhistogram/src/hdr_histogram.c:392:81: style:inconclusive: Function 'hdr_record_corrected_value' argument 3 names different: declaration 'expexcted_interval' definition 'expected_interval'. [funcArgNamesDifferent] diskscan-0.21/hdrhistogram/src/hdr_histogram.h:132:81: note: Function 'hdr_record_corrected_value' argument 3 names different: declaration 'expexcted_interval' definition 'expected_interval'. diskscan-0.21/hdrhistogram/src/hdr_histogram.c:392:81: note: Function 'hdr_record_corrected_value' argument 3 names different: declaration 'expexcted_interval' definition 'expected_interval'. diskscan-0.21/hdrhistogram/src/hdr_histogram.c:379:13: style: Local variable 'counts_index' shadows outer function [shadowFunction] diskscan-0.21/hdrhistogram/src/hdr_histogram.c:103:16: note: Shadowed declaration diskscan-0.21/hdrhistogram/src/hdr_histogram.c:379:13: note: Shadow variable diskscan-0.21/hdrhistogram/src/hdr_histogram.c:511:21: style: Local variable 'value_from_index' shadows outer function [shadowFunction] diskscan-0.21/hdrhistogram/src/hdr_histogram.c:114:16: note: Shadowed declaration diskscan-0.21/hdrhistogram/src/hdr_histogram.c:511:21: note: Shadow variable diskscan-0.21/hdrhistogram/src/hdr_histogram.c:287:89: style: Parameter 'cfg' can be declared as pointer to const [constParameterPointer] diskscan-0.21/hdrhistogram/src/hdr_histogram.c:353:50: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] diskscan-0.21/hdrhistogram/src/hdr_histogram.c:443:56: style: Parameter 'from' can be declared as pointer to const [constParameterPointer] diskscan-0.21/hdrhistogram/src/hdr_histogram.c:617:60: style: Parameter 'iter' can be declared as pointer to const [constParameterPointer] diskscan-0.21/hdrhistogram/src/hdr_histogram.c:938:31: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] diskscan-0.21/hdrhistogram/src/hdr_histogram.c:957:35: style: Variable 'percentiles' can be declared as pointer to const [constVariablePointer] diskscan-0.21/lib/data.c:67:46: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] diskscan-0.21/lib/data.c:77:60: style: Parameter 'system_id' can be declared as pointer to const [constParameterPointer] diskscan-0.21/lib/data.c:100:60: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] diskscan-0.21/lib/data.c:194:13: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] diskscan-0.21/lib/data.c:241:48: style: Parameter 'latency' can be declared as pointer to const [constParameterPointer] diskscan-0.21/lib/disk.c:38:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATA_FULL [valueFlowBailoutIncompleteVar] diskscan-0.21/lib/system_id.c:35:8: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] diskscan-0.21/hdrhistogram/src/hdr_histogram_log.c:1108:12: warning: If memory allocation fails, then there is a possible null pointer dereference: compressed_histogram [nullPointerOutOfMemory] diskscan-0.21/hdrhistogram/src/hdr_histogram_log.c:1107:34: note: Assuming allocation function fails diskscan-0.21/hdrhistogram/src/hdr_histogram_log.c:1107:34: note: Assignment 'compressed_histogram=malloc(sizeof(uint8_t)*compressed_len)', assigned value is 0 diskscan-0.21/hdrhistogram/src/hdr_histogram_log.c:1108:12: note: Null pointer dereference diskscan-0.21/hdrhistogram/src/hdr_histogram_log.c:766:49: style: Parameter 'timestamp' can be declared as pointer to const [constParameterPointer] diskscan-0.21/hdrhistogram/src/hdr_histogram_log.c:913:57: style: Parameter 'reader' can be declared as pointer to const [constParameterPointer] diskscan-0.21/hdrhistogram/src/hdr_histogram_log.c:1100:60: style: Parameter 'base64_histogram' can be declared as pointer to const [constParameterPointer] diskscan-0.21/libscsicmd/src/ata_smart.c:15:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/src/ata_smart.c:42:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SMART_ATTR_TYPE_TEMP [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/src/ata_smart.c:67:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SMART_ATTR_TYPE_POH [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/src/ata_smart.c:72:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SMART_ATTR_TYPE_REALLOC [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/src/ata_smart.c:77:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SMART_ATTR_TYPE_REALLOC_PENDING [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/src/ata_smart.c:82:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SMART_ATTR_TYPE_CRC_ERRORS [valueFlowBailoutIncompleteVar] diskscan-0.21/lib/diskscan.c:66:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] diskscan-0.21/lib/diskscan.c:74:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] diskscan-0.21/lib/diskscan.c:80:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] diskscan-0.21/lib/diskscan.c:100:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCAN_MODE_SEQ [valueFlowBailoutIncompleteVar] diskscan-0.21/lib/diskscan.c:212:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_SMART_ATTRS [valueFlowBailoutIncompleteVar] diskscan-0.21/lib/diskscan.c:233:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_SMART_ATTRS [valueFlowBailoutIncompleteVar] diskscan-0.21/lib/diskscan.c:291:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DISK_NOT_MOUNTED [valueFlowBailoutIncompleteVar] diskscan-0.21/lib/diskscan.c:305:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] diskscan-0.21/lib/diskscan.c:400:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROT_READ [valueFlowBailoutIncompleteVar] diskscan-0.21/lib/diskscan.c:488:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] diskscan-0.21/lib/diskscan.c:619:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCAN_MODE_SEQ [valueFlowBailoutIncompleteVar] diskscan-0.21/lib/diskscan.c:679:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCHED_RR [valueFlowBailoutIncompleteVar] diskscan-0.21/lib/diskscan.c:687:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONCLUSION_FAILED_IO_ERRORS [valueFlowBailoutIncompleteVar] diskscan-0.21/lib/diskscan.c:710:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONCLUSION_SCAN_PROBLEM [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/src/log_sense.c:15:13: style: Variable 'param_data' can be declared as pointer to const [constVariablePointer] diskscan-0.21/libscsicmd/src/parse_inquiry.c:40:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_VENDOR_LEN [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/src/parse_inquiry.c:69:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCSI_DEVICE_TYPE_LIST [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/src/parse_inquiry.c:22:35: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] diskscan-0.21/libscsicmd/src/smartdb/smartdb.c:9:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/src/smartdb/smartdb.c:21:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/src/str_map.c:12:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SENSE_KEY_LIST [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/src/str_map.c:28:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ASC_NUM_LIST [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:58:13: style: Obsolescent function 'ctime_r' called. It is recommended to use 'strftime' instead. [prohibitedctime_rCalled] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:59:13: style: Obsolescent function 'ctime_r' called. It is recommended to use 'strftime' instead. [prohibitedctime_rCalled] diskscan-0.21/libscsicmd/test/ata_check_power_mode.c:30:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:72:20: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:332:26: note: Assuming allocation function fails diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:332:26: note: Assignment 'output=calloc(sizeof(char),output_len)', assigned value is 0 diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:335:54: note: Calling function 'compare_string', 2nd argument 'output' value is 0 diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:72:20: note: Null pointer dereference diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:77:29: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:332:26: note: Assuming allocation function fails diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:332:26: note: Assignment 'output=calloc(sizeof(char),output_len)', assigned value is 0 diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:335:54: note: Calling function 'compare_string', 2nd argument 'output' value is 0 diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:72:28: note: Assuming condition is false diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:77:29: note: Null pointer dereference diskscan-0.21/libscsicmd/src/str_map.c:39:10: style: Variable 'snprintf' is assigned a value that is never used. [unreadVariable] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:285:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: decoded [nullPointerOutOfMemory] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:280:21: note: Assuming allocation function fails diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:280:21: note: Assignment 'decoded=calloc(decoded_len,sizeof(uint8_t))', assigned value is 0 diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:285:5: note: Null pointer dereference diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:474:13: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: log_file [nullPointerOutOfResources] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:465:27: note: Assuming allocation function fails diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:465:27: note: Assignment 'log_file=fopen(file_name,"w+")', assigned value is 0 diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:468:5: note: Assuming condition is false diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:474:13: note: Null pointer dereference diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:600:13: warning: If resource allocation fails, then there is a possible null pointer dereference: log_file [nullPointerOutOfResources] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:599:21: note: Assuming allocation function fails diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:599:21: note: Assignment 'log_file=fopen(file_name,"w+")', assigned value is 0 diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:600:13: note: Null pointer dereference diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:610:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: log_file [nullPointerOutOfResources] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:604:21: note: Assuming allocation function fails diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:604:21: note: Assignment 'log_file=fopen(file_name,"r")', assigned value is 0 diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:608:5: note: Assuming condition is false diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:610:12: note: Null pointer dereference diskscan-0.21/libscsicmd/test/ata_identify.c:37:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:41:47: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:41:67: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] diskscan-0.21/libscsicmd/test/ata_identify.c:45:6: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] diskscan-0.21/libscsicmd/test/ata_smart_return_status.c:30:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/ata_smart_read_data.c:33:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/ata_smart_read_data.c:68:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/ata_smart_read_data.c:109:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_SMART_ATTRS [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/main.c:52:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_FLAG_LUN_INHIBIT [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/main.c:68:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/main.c:95:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/main.c:108:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/main.c:60:48: style:inconclusive: Function 'read_response_buf' argument 2 names different: declaration 'sense' definition 'sensep'. [funcArgNamesDifferent] diskscan-0.21/libscsicmd/test/main.h:11:48: note: Function 'read_response_buf' argument 2 names different: declaration 'sense' definition 'sensep'. diskscan-0.21/libscsicmd/test/main.c:60:48: note: Function 'read_response_buf' argument 2 names different: declaration 'sense' definition 'sensep'. diskscan-0.21/libscsicmd/test/main.c:106:24: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] diskscan-0.21/libscsicmd/test/collect_raw_data.c:67:86: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_NONE [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/collect_raw_data.c:491:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/scsi_inquiry.c:69:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/scsi_inquiry.c:106:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/scsi_inquiry.c:146:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/scsi_log_sense.c:39:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/scsi_log_sense.c:67:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/lib/diskscan.c:583:3: warning: If memory allocation fails, then there is a possible null pointer dereference: order [nullPointerOutOfMemory] diskscan-0.21/lib/diskscan.c:579:26: note: Assuming allocation function fails diskscan-0.21/lib/diskscan.c:579:26: note: Assignment 'order=malloc(sizeof(uint32_t)*num_reads)', assigned value is 0 diskscan-0.21/lib/diskscan.c:583:3: note: Null pointer dereference diskscan-0.21/lib/diskscan.c:584:2: warning: If memory allocation fails, then there is a possible null pointer dereference: order [nullPointerOutOfMemory] diskscan-0.21/lib/diskscan.c:579:26: note: Assuming allocation function fails diskscan-0.21/lib/diskscan.c:579:26: note: Assignment 'order=malloc(sizeof(uint32_t)*num_reads)', assigned value is 0 diskscan-0.21/lib/diskscan.c:584:2: note: Null pointer dereference diskscan-0.21/lib/diskscan.c:597:3: warning: If memory allocation fails, then there is a possible null pointer dereference: order [nullPointerOutOfMemory] diskscan-0.21/lib/diskscan.c:592:26: note: Assuming allocation function fails diskscan-0.21/lib/diskscan.c:592:26: note: Assignment 'order=malloc(sizeof(uint32_t)*num_reads)', assigned value is 0 diskscan-0.21/lib/diskscan.c:597:3: note: Null pointer dereference diskscan-0.21/lib/diskscan.c:598:2: warning: If memory allocation fails, then there is a possible null pointer dereference: order [nullPointerOutOfMemory] diskscan-0.21/lib/diskscan.c:592:26: note: Assuming allocation function fails diskscan-0.21/lib/diskscan.c:592:26: note: Assignment 'order=malloc(sizeof(uint32_t)*num_reads)', assigned value is 0 diskscan-0.21/lib/diskscan.c:598:2: note: Null pointer dereference diskscan-0.21/lib/diskscan.c:607:18: warning: If memory allocation fails, then there is a possible null pointer dereference: order [nullPointerOutOfMemory] diskscan-0.21/lib/diskscan.c:592:26: note: Assuming allocation function fails diskscan-0.21/lib/diskscan.c:592:26: note: Assignment 'order=malloc(sizeof(uint32_t)*num_reads)', assigned value is 0 diskscan-0.21/lib/diskscan.c:604:9: note: Assuming condition is false diskscan-0.21/lib/diskscan.c:607:18: note: Null pointer dereference diskscan-0.21/lib/diskscan.c:608:3: warning: If memory allocation fails, then there is a possible null pointer dereference: order [nullPointerOutOfMemory] diskscan-0.21/lib/diskscan.c:592:26: note: Assuming allocation function fails diskscan-0.21/lib/diskscan.c:592:26: note: Assignment 'order=malloc(sizeof(uint32_t)*num_reads)', assigned value is 0 diskscan-0.21/lib/diskscan.c:604:9: note: Assuming condition is false diskscan-0.21/lib/diskscan.c:608:3: note: Null pointer dereference diskscan-0.21/lib/diskscan.c:608:14: warning: If memory allocation fails, then there is a possible null pointer dereference: order [nullPointerOutOfMemory] diskscan-0.21/lib/diskscan.c:592:26: note: Assuming allocation function fails diskscan-0.21/lib/diskscan.c:592:26: note: Assignment 'order=malloc(sizeof(uint32_t)*num_reads)', assigned value is 0 diskscan-0.21/lib/diskscan.c:604:9: note: Assuming condition is false diskscan-0.21/lib/diskscan.c:608:14: note: Null pointer dereference diskscan-0.21/lib/diskscan.c:609:3: warning: If memory allocation fails, then there is a possible null pointer dereference: order [nullPointerOutOfMemory] diskscan-0.21/lib/diskscan.c:592:26: note: Assuming allocation function fails diskscan-0.21/lib/diskscan.c:592:26: note: Assignment 'order=malloc(sizeof(uint32_t)*num_reads)', assigned value is 0 diskscan-0.21/lib/diskscan.c:604:9: note: Assuming condition is false diskscan-0.21/lib/diskscan.c:609:3: note: Null pointer dereference diskscan-0.21/libscsicmd/test/scsi_inquiry.c:90:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] diskscan-0.21/libscsicmd/test/scsi_inquiry.c:127:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] diskscan-0.21/lib/diskscan.c:407:31: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] diskscan-0.21/lib/diskscan.c:566:45: style: Parameter 'disk' can be declared as pointer to const [constParameterPointer] diskscan-0.21/lib/diskscan.c:576:46: style: Parameter 'disk' can be declared as pointer to const [constParameterPointer] diskscan-0.21/lib/diskscan.c:589:49: style: Parameter 'disk' can be declared as pointer to const [constParameterPointer] diskscan-0.21/lib/diskscan.c:645:130: style: Parameter 'scan_order' can be declared as pointer to const [constParameterPointer] diskscan-0.21/libscsicmd/test/scsi_inquiry.c:32:44: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] diskscan-0.21/libscsicmd/test/scsi_inquiry.c:78:6: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] diskscan-0.21/libscsicmd/test/scsi_inquiry.c:115:6: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] diskscan-0.21/libscsicmd/test/scsi_inquiry.c:155:6: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] diskscan-0.21/libscsicmd/test/scsi_log_sense.c:105:6: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] diskscan-0.21/libscsicmd/test/scsi_log_sense.c:76:6: note: ret is assigned diskscan-0.21/libscsicmd/test/scsi_log_sense.c:105:6: note: ret is overwritten diskscan-0.21/libscsicmd/test/scsi_log_sense.c:48:6: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] diskscan-0.21/libscsicmd/test/parse_scsi.c:193:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_SENSE_MIN_LEN [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/parse_scsi.c:290:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVPD_MIN_LEN [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/parse_scsi.c:355:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLOCK_DESCRIPTOR_LENGTH [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/parse_scsi.c:384:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_SENSE_10_MIN_LEN [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/parse_scsi.c:420:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MODE_SENSE_6_MIN_LEN [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/parse_scsi.c:698:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/scsi_mode_sense.c:39:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/scsi_read_capacity_10.c:35:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/scsi_mode_sense.c:48:6: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] diskscan-0.21/libscsicmd/test/scsi_read_capacity_16.c:35:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/scsi_read_capacity_10.c:44:6: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] diskscan-0.21/libscsicmd/test/scsi_receive_diagnostics.c:39:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/scsi_receive_diagnostics.c:67:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SG_DXFER_FROM_DEV [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/scsi_read_capacity_16.c:44:6: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] diskscan-0.21/libscsicmd/test/sense_decode.c:27:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] diskscan-0.21/libscsicmd/test/scsi_receive_diagnostics.c:48:6: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] diskscan-0.21/libscsicmd/test/scsi_receive_diagnostics.c:76:6: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] diskscan-0.21/libscsicmd/test/collect_raw_data.c:65:9: warning: Possible null pointer dereference: buf [nullPointer] diskscan-0.21/libscsicmd/test/collect_raw_data.c:504:35: note: Calling function 'simple_command', 4th argument 'NULL' value is 0 diskscan-0.21/libscsicmd/test/collect_raw_data.c:65:9: note: Null pointer dereference diskscan-0.21/libscsicmd/test/collect_raw_data.c:39:31: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] diskscan-0.21/libscsicmd/test/collect_raw_data.c:75:6: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] diskscan-0.21/libscsicmd/test/sense_dump.c:6:30: style: Parameter 'cdb' can be declared as pointer to const [constParameterPointer] diskscan-0.21/libscsicmd/test/sense_dump.c:17:35: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] diskscan-0.21/libscsicmd/test/sense_decode.c:14:23: style: Variable 'ch' can be declared as pointer to const [constVariablePointer] diskscan-0.21/progressbar/lib/progressbar.c:48:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable progressbar [valueFlowBailoutIncompleteVar] diskscan-0.21/progressbar/lib/progressbar.c:182:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] diskscan-0.21/progressbar/lib/progressbar.c:207:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] diskscan-0.21/progressbar/lib/statusbar.c:16:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable statusbar [valueFlowBailoutIncompleteVar] diskscan-0.21/progressbar/lib/statusbar.c:59:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] diskscan-0.21/progressbar/lib/statusbar.c:87:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] diskscan-0.21/progressbar/test/demo.c:49:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] diskscan-0.21/progressbar/test/demo.c:63:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] diskscan-0.21/progressbar/test/demo.c:70:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] diskscan-0.21/progressbar/test/demo.c:78:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] diskscan-0.21/progressbar/test/demo.c:85:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] diskscan-0.21/progressbar/test/demo.c:92:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] diskscan-0.21/progressbar/lib/statusbar.c:91:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] diskscan-0.21/progressbar/lib/statusbar.c:91:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] diskscan-0.21/progressbar/lib/statusbar.c:91:3: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] diskscan-0.21/progressbar/lib/statusbar.c:101:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] diskscan-0.21/progressbar/lib/statusbar.c:101:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] diskscan-0.21/progressbar/lib/statusbar.c:101:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] diskscan-0.21/progressbar/lib/statusbar.c:17:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assuming allocation function fails diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assignment 'new=malloc(sizeof(statusbar))', assigned value is 0 diskscan-0.21/progressbar/lib/statusbar.c:17:3: note: Null pointer dereference diskscan-0.21/progressbar/lib/statusbar.c:18:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assuming allocation function fails diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assignment 'new=malloc(sizeof(statusbar))', assigned value is 0 diskscan-0.21/progressbar/lib/statusbar.c:18:3: note: Null pointer dereference diskscan-0.21/progressbar/lib/statusbar.c:19:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assuming allocation function fails diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assignment 'new=malloc(sizeof(statusbar))', assigned value is 0 diskscan-0.21/progressbar/lib/statusbar.c:19:3: note: Null pointer dereference diskscan-0.21/progressbar/lib/statusbar.c:20:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assuming allocation function fails diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assignment 'new=malloc(sizeof(statusbar))', assigned value is 0 diskscan-0.21/progressbar/lib/statusbar.c:20:3: note: Null pointer dereference diskscan-0.21/progressbar/lib/statusbar.c:20:41: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assuming allocation function fails diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assignment 'new=malloc(sizeof(statusbar))', assigned value is 0 diskscan-0.21/progressbar/lib/statusbar.c:20:41: note: Null pointer dereference diskscan-0.21/progressbar/lib/statusbar.c:21:11: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assuming allocation function fails diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assignment 'new=malloc(sizeof(statusbar))', assigned value is 0 diskscan-0.21/progressbar/lib/statusbar.c:21:11: note: Null pointer dereference diskscan-0.21/progressbar/lib/statusbar.c:21:32: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assuming allocation function fails diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assignment 'new=malloc(sizeof(statusbar))', assigned value is 0 diskscan-0.21/progressbar/lib/statusbar.c:21:32: note: Null pointer dereference diskscan-0.21/progressbar/lib/statusbar.c:22:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assuming allocation function fails diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assignment 'new=malloc(sizeof(statusbar))', assigned value is 0 diskscan-0.21/progressbar/lib/statusbar.c:22:3: note: Null pointer dereference diskscan-0.21/progressbar/lib/statusbar.c:23:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assuming allocation function fails diskscan-0.21/progressbar/lib/statusbar.c:16:26: note: Assignment 'new=malloc(sizeof(statusbar))', assigned value is 0 diskscan-0.21/progressbar/lib/statusbar.c:23:3: note: Null pointer dereference diskscan-0.21/progressbar/lib/statusbar.c:54:32: style: Parameter 'bar' can be declared as pointer to const [constParameterPointer] diskscan-0.21/progressbar/lib/progressbar.c:179:15: style: Variable 'bar_width' is assigned a value that is never used. [unreadVariable] diskscan-0.21/libscsicmd/test/parse_scsi.c:160:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] diskscan-0.21/libscsicmd/test/parse_scsi.c:100:9: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] diskscan-0.21/libscsicmd/test/parse_scsi.c:99:29: note: Assuming allocation function fails diskscan-0.21/libscsicmd/test/parse_scsi.c:99:29: note: Assignment 'out=malloc(len)', assigned value is 0 diskscan-0.21/libscsicmd/test/parse_scsi.c:100:9: note: Null pointer dereference diskscan-0.21/libscsicmd/test/parse_scsi.c:634:22: warning: Either the condition 'cdb_src==NULL' is redundant or there is possible null pointer dereference: cdb_src. [nullPointerRedundantCheck] diskscan-0.21/libscsicmd/test/parse_scsi.c:638:14: note: Assuming that condition 'cdb_src==NULL' is not redundant diskscan-0.21/libscsicmd/test/parse_scsi.c:634:22: note: Null pointer dereference diskscan-0.21/libscsicmd/test/parse_scsi.c:635:24: warning: Either the condition 'sense_src==NULL' is redundant or there is possible null pointer dereference: sense_src. [nullPointerRedundantCheck] diskscan-0.21/libscsicmd/test/parse_scsi.c:638:35: note: Assuming that condition 'sense_src==NULL' is not redundant diskscan-0.21/libscsicmd/test/parse_scsi.c:635:24: note: Null pointer dereference diskscan-0.21/libscsicmd/test/parse_scsi.c:636:23: warning: Either the condition 'data_src==NULL' is redundant or there is possible null pointer dereference: data_src. [nullPointerRedundantCheck] diskscan-0.21/libscsicmd/test/parse_scsi.c:638:55: note: Assuming that condition 'data_src==NULL' is not redundant diskscan-0.21/libscsicmd/test/parse_scsi.c:636:23: note: Null pointer dereference diskscan-0.21/libscsicmd/test/parse_scsi.c:59:32: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] diskscan-0.21/libscsicmd/test/parse_scsi.c:68:39: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] diskscan-0.21/libscsicmd/test/parse_scsi.c:342:40: style: Parameter 'cdb' can be declared as pointer to const [constParameterPointer] diskscan-0.21/libscsicmd/test/parse_scsi.c:100:14: warning: Uninitialized variable: buf [uninitvar] diskscan-0.21/libscsicmd/test/parse_scsi.c:78:14: note: Assuming condition is false diskscan-0.21/libscsicmd/test/parse_scsi.c:100:14: note: Uninitialized variable: buf diskscan-0.21/lib/sha1.c:133:17: style: union member 'CHAR64LONG16::c' is never used. [unusedStructMember] diskscan-0.21/lib/sha1.c:183:7: style: Variable 'a' is assigned a value that is never used. [unreadVariable] diskscan-0.21/lib/sha1.c:183:11: style: Variable 'b' is assigned a value that is never used. [unreadVariable] diskscan-0.21/lib/sha1.c:183:15: style: Variable 'c' is assigned a value that is never used. [unreadVariable] diskscan-0.21/lib/sha1.c:183:19: style: Variable 'd' is assigned a value that is never used. [unreadVariable] diskscan-0.21/lib/sha1.c:183:23: style: Variable 'e' is assigned a value that is never used. [unreadVariable] diskscan-0.21/lib/sha1.c:250:7: style: Variable 'i' is assigned a value that is never used. [unreadVariable] diff: head diskscan-0.21/hdrhistogram/src/hdr_interval_recorder.c:22:11: style:inconclusive: Function 'hdr_interval_recorder_update' argument 3 names different: declaration '' definition 'arg'. [funcArgNamesDifferentUnnamed] 2.20.0 diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:477:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: log_file [nullPointerOutOfResources] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:465:27: note: Assuming allocation function fails diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:465:27: note: Assignment 'log_file=fopen(file_name,"w+")', assigned value is 0 diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:468:5: note: Assuming condition is false diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:477:12: note: Null pointer dereference 2.20.0 diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:546:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: log_file [nullPointerOutOfResources] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:540:27: note: Assuming allocation function fails diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:540:27: note: Assignment 'log_file=fopen(file_name,"w+")', assigned value is 0 diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:546:12: note: Null pointer dereference 2.20.0 diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:602:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: log_file [nullPointerOutOfResources] diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:599:21: note: Assuming allocation function fails diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:599:21: note: Assignment 'log_file=fopen(file_name,"w+")', assigned value is 0 diskscan-0.21/hdrhistogram/test/hdr_histogram_log_test.c:602:12: note: Null pointer dereference head diskscan-0.21/lib/data.c:100:60: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] DONE