2025-11-16 23:15 ftp://ftp.de.debian.org/debian/pool/main/s/stlink/stlink_1.8.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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.48+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: 2ad4620 (2025-11-14 19:45:56 +0100) count: 261 261 elapsed-time: 1.6 1.8 head-timing-info: old-timing-info: head results: stlink-1.8.0/src/st-info/info.c:72:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECT_NORMAL [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-flash/flash.c:38:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUN_NORMAL [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-flash/flash.c:75:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECT_NORMAL [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-info/info.c:132:9: style: Condition 'sl' is always true [knownConditionTrueFalse] stlink-1.8.0/src/st-info/info.c:29:44: style: Parameter 'sl' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/st-trace/trace.c:201:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-trace/trace.c:255:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RESET_SOFT_AND_HALT [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-trace/trace.c:386:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-trace/trace.c:472:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_REG_TPI_ACPR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-trace/trace.c:532:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_CHIPS_DIR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-util/gdb-remote.c:173:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-flash/flash_opts.c:70:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-flash/flash_opts.c:79:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-flash/flash_opts.c:84:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-flash/flash_opts.c:99:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_VERSION [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-util/gdb-remote.c:27:12: warning: If memory allocation fails, then there is a possible null pointer dereference: packet [nullPointerOutOfMemory] stlink-1.8.0/src/st-util/gdb-remote.c:25:26: note: Assuming allocation function fails stlink-1.8.0/src/st-util/gdb-remote.c:25:26: note: Assignment 'packet=malloc(length)', assigned value is 0 stlink-1.8.0/src/st-util/gdb-remote.c:27:12: note: Null pointer dereference stlink-1.8.0/src/st-util/gdb-remote.c:29:5: warning: If memory allocation fails, then there is a possible null pointer dereference: packet [nullPointerOutOfMemory] stlink-1.8.0/src/st-util/gdb-remote.c:25:26: note: Assuming allocation function fails stlink-1.8.0/src/st-util/gdb-remote.c:25:26: note: Assignment 'packet=malloc(length)', assigned value is 0 stlink-1.8.0/src/st-util/gdb-remote.c:29:5: note: Null pointer dereference stlink-1.8.0/src/st-util/gdb-remote.c:34:9: warning: If memory allocation fails, then there is a possible null pointer dereference: packet [nullPointerOutOfMemory] stlink-1.8.0/src/st-util/gdb-remote.c:25:26: note: Assuming allocation function fails stlink-1.8.0/src/st-util/gdb-remote.c:25:26: note: Assignment 'packet=malloc(length)', assigned value is 0 stlink-1.8.0/src/st-util/gdb-remote.c:34:9: note: Null pointer dereference stlink-1.8.0/src/st-util/gdb-remote.c:38:5: warning: If memory allocation fails, then there is a possible null pointer dereference: packet [nullPointerOutOfMemory] stlink-1.8.0/src/st-util/gdb-remote.c:25:26: note: Assuming allocation function fails stlink-1.8.0/src/st-util/gdb-remote.c:25:26: note: Assignment 'packet=malloc(length)', assigned value is 0 stlink-1.8.0/src/st-util/gdb-remote.c:38:5: note: Null pointer dereference stlink-1.8.0/src/st-util/gdb-remote.c:39:5: warning: If memory allocation fails, then there is a possible null pointer dereference: packet [nullPointerOutOfMemory] stlink-1.8.0/src/st-util/gdb-remote.c:25:26: note: Assuming allocation function fails stlink-1.8.0/src/st-util/gdb-remote.c:25:26: note: Assignment 'packet=malloc(length)', assigned value is 0 stlink-1.8.0/src/st-util/gdb-remote.c:39:5: note: Null pointer dereference stlink-1.8.0/src/st-util/gdb-remote.c:40:5: warning: If memory allocation fails, then there is a possible null pointer dereference: packet [nullPointerOutOfMemory] stlink-1.8.0/src/st-util/gdb-remote.c:25:26: note: Assuming allocation function fails stlink-1.8.0/src/st-util/gdb-remote.c:25:26: note: Assignment 'packet=malloc(length)', assigned value is 0 stlink-1.8.0/src/st-util/gdb-remote.c:40:5: note: Null pointer dereference stlink-1.8.0/src/st-util/gdb-remote.c:22:43: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/st-flash/flash.c:319:9: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] stlink-1.8.0/src/st-flash/flash.c:176:17: note: err is assigned stlink-1.8.0/src/st-flash/flash.c:319:9: note: err is overwritten stlink-1.8.0/src/st-flash/flash.c:319:9: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] stlink-1.8.0/src/st-flash/flash.c:180:17: note: err is assigned stlink-1.8.0/src/st-flash/flash.c:319:9: note: err is overwritten stlink-1.8.0/src/st-flash/flash.c:319:9: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] stlink-1.8.0/src/st-flash/flash.c:184:17: note: err is assigned stlink-1.8.0/src/st-flash/flash.c:319:9: note: err is overwritten stlink-1.8.0/src/st-trace/trace.c:424:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] stlink-1.8.0/src/st-trace/trace.c:507:20: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] stlink-1.8.0/src/st-trace/trace.c:167:24: style: Variable 'long_options' can be declared as const array [constVariable] stlink-1.8.0/src/st-trace/trace.c:506:37: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] stlink-1.8.0/src/st-trace/trace.c:505:26: note: Assuming that condition 'i<32' is not redundant stlink-1.8.0/src/st-trace/trace.c:506:37: note: Shift stlink-1.8.0/src/st-util/gdb-server.c:86:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUN_NORMAL [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-util/gdb-server.c:163:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-util/gdb-server.c:230:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECT_NORMAL [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-util/gdb-server.c:354:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_CHIPID_F4 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-util/gdb-server.c:420:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_REG_CM3_DEMCR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-util/gdb-server.c:515:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_REG_CM3_FP_CTRL [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-util/gdb-server.c:715:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RESET_SOFT_AND_HALT [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-util/gdb-server.c:766:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_REG_CM7_CCSIDR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-util/gdb-server.c:783:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_REG_CM7_CTR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-util/gdb-server.c:825:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_REG_CM7_CCR_DC [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-util/gdb-server.c:866:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_REG_CM7_CCR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-util/gdb-server.c:895:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-util/semihosting.c:171:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Q_BUF_LEN [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/st-util/semihosting.c:73:61: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/stlink-gui/gui.c:24:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stlink_gui_parent_class [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-gui/gui.c:28:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stlink_gui_parent_class [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-gui/gui.c:158:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-gui/gui.c:311:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXSIZE [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-gui/gui.c:553:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-gui/gui.c:627:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-gui/gui.c:655:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-gui/gui.c:667:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_SAVE [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-gui/gui.c:772:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_ACTION_MOVE [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-gui/gui.c:783:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DEST_DEFAULT_ALL [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-gui/gui.c:795:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_UI_DIR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-gui/gui.c:898:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_CHIPS_DIR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/calculate.c:17:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_BASE [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/calculate.c:40:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_BASE [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/calculate.c:53:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_H7_FLASH_BANK2_BASE [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/calculate.c:61:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_L4_OPTR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/calculate.c:51:43: style: Parameter 'sl' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/stlink-lib/chipid.c:80:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-gui/gui.c:499:5: error: Return value of allocation function 'g_thread_new' is not stored. [leakReturnValNotUsed] stlink-1.8.0/src/stlink-gui/gui.c:571:9: error: Return value of allocation function 'g_thread_new' is not stored. [leakReturnValNotUsed] stlink-1.8.0/src/stlink-gui/gui.c:642:17: error: Return value of allocation function 'g_thread_new' is not stored. [leakReturnValNotUsed] stlink-1.8.0/src/stlink-gui/gui.c:764:13: error: Return value of allocation function 'g_thread_new' is not stored. [leakReturnValNotUsed] stlink-1.8.0/src/stlink-gui/gui.c:133:14: style: Variable 'word' can be declared as pointer to const [constVariablePointer] stlink-1.8.0/src/st-util/gdb-server.c:265:34: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] stlink-1.8.0/src/st-util/gdb-server.c:1307:17: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] stlink-1.8.0/src/st-util/gdb-server.c:888:9: error: Resource leak: sock [resourceLeak] stlink-1.8.0/src/st-util/gdb-server.c:352:5: warning: If memory allocation fails, then there is a possible null pointer dereference: map [nullPointerOutOfMemory] stlink-1.8.0/src/st-util/gdb-server.c:351:23: note: Assuming allocation function fails stlink-1.8.0/src/st-util/gdb-server.c:351:23: note: Assignment 'map=malloc(sz)', assigned value is 0 stlink-1.8.0/src/st-util/gdb-server.c:352:5: note: Null pointer dereference stlink-1.8.0/src/st-util/gdb-server.c:623:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] stlink-1.8.0/src/st-util/gdb-server.c:622:37: note: Assuming allocation function fails stlink-1.8.0/src/st-util/gdb-server.c:622:37: note: Assignment 'new=malloc(sizeof(struct flash_block))', assigned value is 0 stlink-1.8.0/src/st-util/gdb-server.c:623:5: note: Null pointer dereference stlink-1.8.0/src/st-util/gdb-server.c:624:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] stlink-1.8.0/src/st-util/gdb-server.c:622:37: note: Assuming allocation function fails stlink-1.8.0/src/st-util/gdb-server.c:622:37: note: Assignment 'new=malloc(sizeof(struct flash_block))', assigned value is 0 stlink-1.8.0/src/st-util/gdb-server.c:624:5: note: Null pointer dereference stlink-1.8.0/src/st-util/gdb-server.c:625:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] stlink-1.8.0/src/st-util/gdb-server.c:622:37: note: Assuming allocation function fails stlink-1.8.0/src/st-util/gdb-server.c:622:37: note: Assignment 'new=malloc(sizeof(struct flash_block))', assigned value is 0 stlink-1.8.0/src/st-util/gdb-server.c:625:5: note: Null pointer dereference stlink-1.8.0/src/st-util/gdb-server.c:626:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] stlink-1.8.0/src/st-util/gdb-server.c:622:37: note: Assuming allocation function fails stlink-1.8.0/src/st-util/gdb-server.c:622:37: note: Assignment 'new=malloc(sizeof(struct flash_block))', assigned value is 0 stlink-1.8.0/src/st-util/gdb-server.c:626:5: note: Null pointer dereference stlink-1.8.0/src/st-util/gdb-server.c:627:12: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] stlink-1.8.0/src/st-util/gdb-server.c:622:37: note: Assuming allocation function fails stlink-1.8.0/src/st-util/gdb-server.c:622:37: note: Assignment 'new=malloc(sizeof(struct flash_block))', assigned value is 0 stlink-1.8.0/src/st-util/gdb-server.c:627:12: note: Null pointer dereference stlink-1.8.0/src/st-util/gdb-server.c:108:26: style: Variable 'long_options' can be declared as const array [constVariable] stlink-1.8.0/src/st-util/gdb-server.c:348:33: style: Parameter 'sl' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/st-util/gdb-server.c:633:59: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/st-util/gdb-server.c:827:38: style: Variable 'desc' can be declared as pointer to const [constVariablePointer] stlink-1.8.0/src/st-util/gdb-server.c:993:35: style: Variable '__s_addr' can be declared as pointer to const [constVariablePointer] stlink-1.8.0/src/st-util/gdb-server.c:993:46: style: Variable 's_length' can be declared as pointer to const [constVariablePointer] stlink-1.8.0/src/st-util/gdb-server.c:1153:19: style: Variable 'cmdName' can be declared as pointer to const [constVariablePointer] stlink-1.8.0/src/st-util/gdb-server.c:1158:23: style: Variable '__s_addr' can be declared as pointer to const [constVariablePointer] stlink-1.8.0/src/st-util/gdb-server.c:1158:34: style: Variable 's_length' can be declared as pointer to const [constVariablePointer] stlink-1.8.0/src/st-util/gdb-server.c:1176:23: style: Variable '__s_addr' can be declared as pointer to const [constVariablePointer] stlink-1.8.0/src/st-util/gdb-server.c:1176:34: style: Variable 'data' can be declared as pointer to const [constVariablePointer] stlink-1.8.0/src/st-util/gdb-server.c:1403:19: style: Variable 's_value' can be declared as pointer to const [constVariablePointer] stlink-1.8.0/src/st-util/gdb-server.c:1457:19: style: Variable 's_count' can be declared as pointer to const [constVariablePointer] stlink-1.8.0/src/st-util/gdb-server.c:1487:19: style: Variable 's_count' can be declared as pointer to const [constVariablePointer] stlink-1.8.0/src/st-util/gdb-server.c:1500:26: style: Variable 'hextmp' can be declared as const array [constVariable] stlink-1.8.0/src/st-util/gdb-server.c:1516:26: style: Variable 'hextmp' can be declared as const array [constVariable] stlink-1.8.0/src/st-util/gdb-server.c:1530:26: style: Variable 'hextmp' can be declared as const array [constVariable] stlink-1.8.0/src/st-util/gdb-server.c:1039:31: style: Variable 'separator' is assigned a value that is never used. [unreadVariable] stlink-1.8.0/src/stlink-lib/common.c:85:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TARGET_RESET [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common.c:157:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_CORE_ID_M7F_M33_SWD [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common.c:250:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_UNKNOWN [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common.c:343:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TARGET_RESET [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common.c:573:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TARGET_HALTED [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common.c:599:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_DEV_UNKNOWN_MODE [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common.c:623:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common.c:639:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common.c:697:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common.c:768:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common.c:819:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_CHIPID_F2 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common.c:1022:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_L0_L1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common.c:1031:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECT_UNDER_RESET [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common.c:1088:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32F0_DBGMCU_CR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common.c:1163:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_JTAG_API_V1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common.c:1198:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUN_NORMAL [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common.c:1250:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/chipid.c:174:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] stlink-1.8.0/src/stlink-lib/chipid.c:176:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] stlink-1.8.0/src/stlink-lib/chipid.c:95:11: warning: %i in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] stlink-1.8.0/src/stlink-lib/chipid.c:132:11: warning: %i in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] stlink-1.8.0/src/stlink-lib/chipid.c:138:11: warning: %i in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] stlink-1.8.0/src/stlink-lib/chipid.c:144:11: warning: %i in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] stlink-1.8.0/src/stlink-lib/chipid.c:150:11: warning: %i in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] stlink-1.8.0/src/stlink-lib/chipid.c:156:11: warning: %i in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] stlink-1.8.0/src/stlink-lib/chipid.c:162:11: warning: %i in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] stlink-1.8.0/src/stlink-lib/chipid.c:168:11: warning: %i in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] stlink-1.8.0/src/stlink-lib/chipid.c:192:11: warning: %i in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] stlink-1.8.0/src/stlink-lib/chipid.c:198:11: warning: %i in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] stlink-1.8.0/src/stlink-lib/chipid.c:176:17: style: Variable 'p' is reassigned a value before the old one has been used. [redundantAssignment] stlink-1.8.0/src/stlink-lib/chipid.c:174:9: note: p is assigned stlink-1.8.0/src/stlink-lib/chipid.c:176:17: note: p is overwritten stlink-1.8.0/src/stlink-lib/chipid.c:41:64: style:inconclusive: Function 'stlink_chipid_get_params' argument 1 names different: declaration 'chipid' definition 'chip_id'. [funcArgNamesDifferent] stlink-1.8.0/src/stlink-lib/chipid.h:29:64: note: Function 'stlink_chipid_get_params' argument 1 names different: declaration 'chipid' definition 'chip_id'. stlink-1.8.0/src/stlink-lib/chipid.c:41:64: note: Function 'stlink_chipid_get_params' argument 1 names different: declaration 'chipid' definition 'chip_id'. stlink-1.8.0/src/stlink-lib/chipid.c:53:29: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/stlink-lib/chipid.c:55:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] stlink-1.8.0/src/stlink-lib/common_flash.c:31:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_L0_REGS_ADDR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:49:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_C0 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:82:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_C0 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:140:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_C0 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:173:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_C0_SR_ERROR_MASK [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:218:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_C0 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:253:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_C0 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:304:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_C0_SR_ERROR_MASK [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:403:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_C0 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:446:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_KEY1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:524:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_C0_CR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:605:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_C0_CR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:663:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_OPTKEY1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:743:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_H7 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:761:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_CR_PG [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:793:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:810:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_AR2 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:817:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_H7 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:841:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_C0 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:862:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_C0 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:880:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_L4_SR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:898:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_C0 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:936:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_C0 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:1008:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_F2_F4 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:1226:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:1241:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_L0_L1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:1565:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUN_NORMAL [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/flash_loader.c:189:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_H7 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/flash_loader.c:246:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_CHIPID_L1_MD [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/flash_loader.c:346:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_F1_XL [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/flash_loader.c:441:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_PECR_OFF [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/flash_loader.c:494:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_C0 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/flash_loader.c:535:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32C0_RCC_AHBENR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/flash_loader.c:602:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_F2_F4 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/flash_loader.c:732:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_F2_F4 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/flash_loader.c:874:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_FLASH_TYPE_C0 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common_flash.c:649:5: style: Non-boolean value returned from function returning bool [returnNonBoolInBooleanFunction] stlink-1.8.0/src/stlink-lib/common_flash.c:797:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] stlink-1.8.0/src/stlink-lib/common_flash.c:25:43: style: Parameter 'sl' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/stlink-lib/common_flash.c:1408:80: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/stlink-lib/flash_loader.c:380:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] stlink-1.8.0/src/stlink-lib/flash_loader.c:837:9: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] stlink-1.8.0/src/stlink-lib/logging.c:29:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/map_file.c:69:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/map_file.c:32:49: style: Parameter 'mf' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/stlink-lib/md5.c:16:35: style: Parameter 'mf' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/stlink-lib/md5.c:35:12: style: Variable 'mp_byte' can be declared as pointer to const [constVariablePointer] stlink-1.8.0/src/stlink-lib/read_write.c:88:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/read_write.c:116:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/read_write.c:139:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/read_write.c:123:61: style:inconclusive: Function 'stlink_write_unsupported_reg' argument 2 names different: declaration 'value' definition 'val'. [funcArgNamesDifferent] stlink-1.8.0/src/stlink-lib/read_write.h:23:61: note: Function 'stlink_write_unsupported_reg' argument 2 names different: declaration 'value' definition 'val'. stlink-1.8.0/src/stlink-lib/read_write.c:123:61: note: Function 'stlink_write_unsupported_reg' argument 2 names different: declaration 'value' definition 'val'. stlink-1.8.0/src/stlink-lib/option_bytes.c:28:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_C0_OPTR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:52:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_C0_OPTR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:95:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_OBR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:110:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STM32_F0_OPTION_BYTES_BASE [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:169:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_OBR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:248:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_F2_OPT_CR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:268:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_F4_OPTCR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:301:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_F4_OPTCR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:357:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_F7_OPTCR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:399:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_F7_OPTCR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:415:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_F7_OPTCR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:440:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_F7_OPTCR1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:457:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_F7_OPTCR1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:509:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_Gx_OPTR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:541:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_Gx_OPTR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:576:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_H7_OPTCCR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:663:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_PECR_OFF [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:692:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_L4_OPTR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:744:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_WB_CR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:767:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_WB_OPTR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/option_bytes.c:783:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASH_WB_OPTR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/common.c:355:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] stlink-1.8.0/src/stlink-lib/common.c:359:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] stlink-1.8.0/src/stlink-lib/common.c:1041:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] stlink-1.8.0/src/stlink-lib/common.c:1049:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] stlink-1.8.0/src/stlink-lib/common.c:1201:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] stlink-1.8.0/src/stlink-lib/common.c:1201:12: error: Invalid usleep() argument nr 1. The value is 3000000 but the valid values are '0:999999'. [invalidFunctionArg] stlink-1.8.0/src/stlink-lib/common.c:497:33: style: Parameter 'sl' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/stlink-lib/common.c:630:51: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/stlink-lib/common.c:797:60: style: Parameter 'fl' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/stlink-lib/common.c:1021:45: style: Parameter 'sl' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/stlink-lib/common.c:1246:53: style: Parameter 'block' can be declared as pointer to const. However it seems that 'stlink_fread_worker' is a callback function, if 'block' is declared with const you might also need to cast function pointer(s). [constParameterCallback] stlink-1.8.0/src/stlink-lib/common.c:789:42: note: You might need to cast the function pointer here stlink-1.8.0/src/stlink-lib/common.c:1246:53: note: Parameter 'block' can be declared as pointer to const stlink-1.8.0/src/stlink-lib/common.c:1247:35: style: Variable 'the_arg' can be declared as pointer to const [constVariablePointer] stlink-1.8.0/src/stlink-lib/common.c:1343:58: style: Parameter 'block' can be declared as pointer to const. However it seems that 'stlink_fread_ihex_worker' is a callback function, if 'block' is declared with const you might also need to cast function pointer(s). [constParameterCallback] stlink-1.8.0/src/stlink-lib/common.c:779:44: note: You might need to cast the function pointer here stlink-1.8.0/src/stlink-lib/common.c:1343:58: note: Parameter 'block' can be declared as pointer to const stlink-1.8.0/src/stlink-lib/option_bytes.c:107:87: style: Parameter 'base' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/stlink-lib/option_bytes.c:321:15: style: Variable 'err' is assigned a value that is never used. [unreadVariable] stlink-1.8.0/src/stlink-lib/sg.c:138:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_ERROR_PIPE [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/sg.c:234:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_ERROR_PIPE [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/sg.c:264:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_ENDPOINT_IN [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/sg.c:329:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_ERROR_PIPE [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/sg.c:368:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBUSB_ENDPOINT_IN [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/sg.c:969:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stlink_t [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/sg.c:1132:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RESET_AUTO [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/win32/mmap.c:9:19: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/win32/getopt/getopt.c:64:16: warning: Either the condition 'optcursor==NULL' is redundant or there is possible null pointer dereference: optcursor. [nullPointerRedundantCheck] stlink-1.8.0/src/win32/getopt/getopt.c:119:19: note: Assuming that condition 'optcursor==NULL' is not redundant stlink-1.8.0/src/win32/getopt/getopt.c:74:9: note: Assuming condition is true stlink-1.8.0/src/win32/getopt/getopt.c:64:16: note: Null pointer dereference stlink-1.8.0/src/win32/sys_time.c:29:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _timezone [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/win32/sys_time.c:17:23: style: Variable 'ulint.LowPart' is assigned a value that is never used. [unreadVariable] stlink-1.8.0/src/win32/sys_time.c:18:24: style: Variable 'ulint.HighPart' is assigned a value that is never used. [unreadVariable] stlink-1.8.0/tests/sg.c:44:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stlink-1.8.0/tests/flash.c:51:23: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] stlink-1.8.0/tests/flash.c:51:57: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] stlink-1.8.0/tests/usb.c:44:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_DEV_DFU_MODE [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:120:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_DEBUG_ERR_OK [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:172:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_CHECK_NO [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:216:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_CHECK_REP_LEN [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:233:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_CHECK_REP_LEN [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:263:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_CHECK_RETRY [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:286:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_CHECK_RETRY [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:292:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_JTAG_API_V1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:373:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_CHECK_NO [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:387:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_JTAG_API_V1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:419:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TARGET_UNKNOWN [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:434:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_JTAG_API_V1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:467:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_JTAG_API_V1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:490:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_JTAG_API_V1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:527:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_JTAG_API_V1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:549:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_CHECK_RETRY [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:558:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_JTAG_API_V1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:591:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_JTAG_API_V1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:626:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_SWDCLK_5KHZ_DIVISOR [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:725:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_CHECK_NO [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:742:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_JTAG_API_V1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:790:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_JTAG_API_V1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:961:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_JTAG_API_V1 [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:983:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_V2_TRACE_BUF_LEN [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:1010:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_CHECK_STATUS [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:1024:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMD_CHECK_NO [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:1088:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_SERIAL_LENGTH [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:1137:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stlink_t [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/usb.c:1364:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STLINK_SERIAL_BUFFER_SIZE [valueFlowBailoutIncompleteVar] stlink-1.8.0/src/stlink-lib/sg.c:169:42: style: Parameter 'cdb' can be declared as pointer to const [constParameterPointer] stlink-1.8.0/src/stlink-lib/usb.c:127:25: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] stlink-1.8.0/src/stlink-lib/usb.c:177:34: style: Variable 'slu' can be declared as pointer to const [constVariablePointer] stlink-1.8.0/src/stlink-lib/usb.c:1131:87: style: Parameter 'serial' can be declared as const array [constParameter] diff: DONE