2025-05-10 03:28 ftp://ftp.de.debian.org/debian/pool/main/d/duc/duc_1.4.5.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=sqlite3 --library=cairo --library=motif --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: b3c7f00 (2025-05-09 17:59:20 +0200) count: 142 141 elapsed-time: 2.9 2.8 head-timing-info: old-timing-info: head results: zevv-duc-b8f9659/src/duc/cmd-graph.c:43:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUC_GRAPH_FORMAT_PNG [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-graph.c:40:8: style: Variable 'path_out' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/cmd-index.c:53:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUC_SIZE_TYPE_ACTUAL [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-index.c:64:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-index.c:72:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUC_OPEN_RW [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-cgi.c:262:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-cgi.c:302:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUC_PATH_MAX [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-cgi.c:463:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUC_SIZE_TYPE_APPARENT [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-cgi.c:486:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-info.c:24:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUC_SIZE_TYPE_ACTUAL [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-info.c:38:19: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] zevv-duc-b8f9659/src/duc/cmd-info.c:38:14: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/cmd-json.c:52:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUC_SIZE_TYPE_ACTUAL [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-json.c:123:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUC_OPEN_RO [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-ls.c:99:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUC_SIZE_TYPE_ACTUAL [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-ls.c:229:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUC_SIZE_TYPE_ACTUAL [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-ls.c:247:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUC_E_PATH_NOT_FOUND [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-ls.c:283:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-xml.c:60:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUC_SIZE_TYPE_ACTUAL [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-xml.c:95:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUC_OPEN_RO [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-cgi.c:352:19: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] zevv-duc-b8f9659/src/duc/cmd-xml.c:47:14: warning: Either the condition '*s>=0' is redundant or putchar() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] zevv-duc-b8f9659/src/duc/cmd-xml.c:44:11: note: Assuming that condition '*s>=0' is not redundant zevv-duc-b8f9659/src/duc/cmd-xml.c:47:14: note: Invalid argument zevv-duc-b8f9659/src/duc/cmd-cgi.c:136:9: style: Variable 'key' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/cmd-cgi.c:138:9: style: Variable 'val' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/cmd-cgi.c:298:8: style: Variable 'path' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/cmd-cgi.c:299:8: style: Variable 'script' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/cmd-cgi.c:308:8: style: Variable 'xs' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/cmd-cgi.c:309:8: style: Variable 'ys' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/cmd-cgi.c:352:14: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/cmd-cgi.c:449:8: style: Variable 'xs' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/cmd-cgi.c:450:8: style: Variable 'ys' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/cmd-cgi.c:466:10: style: Variable 'typ' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/cmd-cgi.c:495:8: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/ducrc.c:92:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/ducrc.c:222:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/cmd-ls.c:184:8: style: Local variable 'l' shadows outer variable [shadowVariable] zevv-duc-b8f9659/src/duc/cmd-ls.c:171:10: note: Shadowed declaration zevv-duc-b8f9659/src/duc/cmd-ls.c:184:8: note: Shadow variable zevv-duc-b8f9659/src/duc/cmd-ls.c:68:34: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/duc/cmd-ls.c:140:9: style: Variable 'color_on' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/cmd-ls.c:141:9: style: Variable 'color_off' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/cmd-ls.c:156:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/main.c:95:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUC_LOG_FTL [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/main.c:221:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/main.c:405:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/ducrc.c:163:5: warning:inconclusive: The buffer 'section' may not be null-terminated after the call to strncpy(). [terminateStrncpy] zevv-duc-b8f9659/src/duc/ducrc.c:42:66: style:inconclusive: Function 'ducrc_add_options' argument 2 names different: declaration 'option_list' definition 'o'. [funcArgNamesDifferent] zevv-duc-b8f9659/src/duc/ducrc.h:27:66: note: Function 'ducrc_add_options' argument 2 names different: declaration 'option_list' definition 'o'. zevv-duc-b8f9659/src/duc/ducrc.c:42:66: note: Function 'ducrc_add_options' argument 2 names different: declaration 'option_list' definition 'o'. zevv-duc-b8f9659/src/duc/ducrc.c:178:11: style: Variable 'longopt' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/ducrc.c:179:11: style: Variable 'val' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/ducrc.c:186:10: style: Variable 'longopt' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/ducrc.c:220:24: style: Variable 'o' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/glad/glad.c:318:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_VERSION [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/glad/glad.c:342:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable glGetString [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/duc/main.c:126:7: style: Local variable 'r' shadows outer variable [shadowVariable] zevv-duc-b8f9659/src/duc/main.c:89:6: note: Shadowed declaration zevv-duc-b8f9659/src/duc/main.c:126:7: note: Shadow variable zevv-duc-b8f9659/src/duc/main.c:135:8: style: Variable 'home' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/duc/main.c:234:47: style: Parameter 'o' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/duc/main.c:349:54: style: Parameter 'o' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/libduc-graph/graph-html.c:111:84: style: Parameter 'text' can be declared as pointer to const. However it seems that 'br_html_draw_text' is a callback function, if 'text' is declared with const you might also need to cast function pointer(s). [constParameterCallback] zevv-duc-b8f9659/src/libduc-graph/graph-html.c:158:15: note: You might need to cast the function pointer here zevv-duc-b8f9659/src/libduc-graph/graph-html.c:111:84: note: Parameter 'text' can be declared as pointer to const zevv-duc-b8f9659/src/libduc-graph/graph-html.c:122:45: style: Parameter 'g' can be declared as pointer to const. However it seems that 'br_html_draw_tooltip' is a callback function, if 'g' is declared with const you might also need to cast function pointer(s). [constParameterCallback] zevv-duc-b8f9659/src/libduc-graph/graph-html.c:159:18: note: You might need to cast the function pointer here zevv-duc-b8f9659/src/libduc-graph/graph-html.c:122:45: note: Parameter 'g' can be declared as pointer to const zevv-duc-b8f9659/src/libduc-graph/graph-html.c:122:74: style: Parameter 'text' can be declared as pointer to const. However it seems that 'br_html_draw_tooltip' is a callback function, if 'text' is declared with const you might also need to cast function pointer(s). [constParameterCallback] zevv-duc-b8f9659/src/libduc-graph/graph-html.c:159:18: note: You might need to cast the function pointer here zevv-duc-b8f9659/src/libduc-graph/graph-html.c:122:74: note: Parameter 'text' can be declared as pointer to const zevv-duc-b8f9659/src/libduc-graph/graph-html.c:150:37: style: Parameter 'g' can be declared as pointer to const. However it seems that 'br_html_free' is a callback function, if 'g' is declared with const you might also need to cast function pointer(s). [constParameterCallback] zevv-duc-b8f9659/src/libduc-graph/graph-html.c:162:10: note: You might need to cast the function pointer here zevv-duc-b8f9659/src/libduc-graph/graph-html.c:150:37: note: Parameter 'g' can be declared as pointer to const zevv-duc-b8f9659/src/libduc-graph/font.c:2573:23: style: Variable 'bits' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc-graph/graph-svg.c:62:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] zevv-duc-b8f9659/src/libduc-graph/graph-svg.c:79:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] zevv-duc-b8f9659/src/libduc-graph/graph-svg.c:62:8: style: Variable 'l' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc-graph/graph-svg.c:85:83: style: Parameter 'text' can be declared as pointer to const. However it seems that 'br_svg_draw_text' is a callback function, if 'text' is declared with const you might also need to cast function pointer(s). [constParameterCallback] zevv-duc-b8f9659/src/libduc-graph/graph-svg.c:168:15: note: You might need to cast the function pointer here zevv-duc-b8f9659/src/libduc-graph/graph-svg.c:85:83: note: Parameter 'text' can be declared as pointer to const zevv-duc-b8f9659/src/libduc-graph/graph-svg.c:100:44: style: Parameter 'g' can be declared as pointer to const. However it seems that 'br_svg_draw_tooltip' is a callback function, if 'g' is declared with const you might also need to cast function pointer(s). [constParameterCallback] zevv-duc-b8f9659/src/libduc-graph/graph-svg.c:169:18: note: You might need to cast the function pointer here zevv-duc-b8f9659/src/libduc-graph/graph-svg.c:100:44: note: Parameter 'g' can be declared as pointer to const zevv-duc-b8f9659/src/libduc-graph/graph-svg.c:100:73: style: Parameter 'text' can be declared as pointer to const. However it seems that 'br_svg_draw_tooltip' is a callback function, if 'text' is declared with const you might also need to cast function pointer(s). [constParameterCallback] zevv-duc-b8f9659/src/libduc-graph/graph-svg.c:169:18: note: You might need to cast the function pointer here zevv-duc-b8f9659/src/libduc-graph/graph-svg.c:100:73: note: Parameter 'text' can be declared as pointer to const zevv-duc-b8f9659/src/libduc-graph/graph-svg.c:160:36: style: Parameter 'g' can be declared as pointer to const. However it seems that 'br_svg_free' is a callback function, if 'g' is declared with const you might also need to cast function pointer(s). [constParameterCallback] zevv-duc-b8f9659/src/libduc-graph/graph-svg.c:172:10: note: You might need to cast the function pointer here zevv-duc-b8f9659/src/libduc-graph/graph-svg.c:160:36: note: Parameter 'g' can be declared as pointer to const zevv-duc-b8f9659/src/libduc-graph/graph.c:204:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUC_SIZE_TYPE_APPARENT [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/libduc-graph/graph.c:255:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUC_SORT_SIZE [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/libduc-graph/graph.c:76:50: style:inconclusive: Function 'duc_graph_set_position' argument 2 names different: declaration 'x' definition 'pos_x'. [funcArgNamesDifferent] zevv-duc-b8f9659/src/libduc-graph/duc-graph.h:45:50: note: Function 'duc_graph_set_position' argument 2 names different: declaration 'x' definition 'pos_x'. zevv-duc-b8f9659/src/libduc-graph/graph.c:76:50: note: Function 'duc_graph_set_position' argument 2 names different: declaration 'x' definition 'pos_x'. zevv-duc-b8f9659/src/libduc-graph/graph.c:76:64: style:inconclusive: Function 'duc_graph_set_position' argument 3 names different: declaration 'y' definition 'pos_y'. [funcArgNamesDifferent] zevv-duc-b8f9659/src/libduc-graph/duc-graph.h:45:60: note: Function 'duc_graph_set_position' argument 3 names different: declaration 'y' definition 'pos_y'. zevv-duc-b8f9659/src/libduc-graph/graph.c:76:64: note: Function 'duc_graph_set_position' argument 3 names different: declaration 'y' definition 'pos_y'. zevv-duc-b8f9659/src/libduc-graph/graph.c:126:25: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/libduc-graph/graph.c:133:25: style: Parameter 'g' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/libduc-graph/graph.c:207:8: style: Variable 'typ' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc-graph/graph.c:230:116: style: Parameter 'total' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/libduc/db.c:94:6: error: Resource leak: f [resourceLeak] zevv-duc-b8f9659/src/libduc/db.c:98:6: error: Resource leak: f [resourceLeak] zevv-duc-b8f9659/src/libduc/db.c:102:6: error: Resource leak: f [resourceLeak] zevv-duc-b8f9659/src/libduc/db.c:105:5: error: Resource leak: f [resourceLeak] zevv-duc-b8f9659/src/libduc/db.c:23:68: style:inconclusive: Function 'db_write_report' argument 2 names different: declaration 'rep' definition 'report'. [funcArgNamesDifferent] zevv-duc-b8f9659/src/libduc/db.h:15:68: note: Function 'db_write_report' argument 2 names different: declaration 'rep' definition 'report'. zevv-duc-b8f9659/src/libduc/db.c:23:68: note: Function 'db_write_report' argument 2 names different: declaration 'rep' definition 'report'. zevv-duc-b8f9659/src/libduc/db.c:29:9: style: Local variable 'tmp' shadows outer variable [shadowVariable] zevv-duc-b8f9659/src/libduc/db.c:26:8: note: Shadowed declaration zevv-duc-b8f9659/src/libduc/db.c:29:9: note: Shadow variable zevv-duc-b8f9659/src/libduc/db.c:91:13: style: Variable 'len' is assigned a value that is never used. [unreadVariable] zevv-duc-b8f9659/src/libduc/db.c:91:9: style: Variable 'len' is assigned a value that is never used. [unreadVariable] zevv-duc-b8f9659/src/libduc/duc.c:23:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/libduc/duc.c:132:110: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DB_BACKEND [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/libduc/duc.c:154:45: style:inconclusive: Function 'duc_log' argument 2 names different: declaration 'lvl' definition 'level'. [funcArgNamesDifferent] zevv-duc-b8f9659/src/libduc/duc.h:184:45: note: Function 'duc_log' argument 2 names different: declaration 'lvl' definition 'level'. zevv-duc-b8f9659/src/libduc/duc.c:154:45: note: Function 'duc_log' argument 2 names different: declaration 'lvl' definition 'level'. zevv-duc-b8f9659/src/libduc/duc.c:238:61: style:inconclusive: Function 'duc_human_duration' argument 2 names different: declaration 'end' definition 'stop'. [funcArgNamesDifferent] zevv-duc-b8f9659/src/libduc/duc.h:183:61: note: Function 'duc_human_duration' argument 2 names different: declaration 'end' definition 'stop'. zevv-duc-b8f9659/src/libduc/duc.c:238:61: note: Function 'duc_human_duration' argument 2 names different: declaration 'end' definition 'stop'. zevv-duc-b8f9659/src/libduc/duc.c:40:19: style: Parameter 'duc' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/libduc/duc.c:80:9: style: Variable 'home' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/duc.c:92:9: style: Variable 'home' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/duc.c:105:9: style: Variable 'home' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/duc.c:171:26: style: Parameter 'duc' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/libduc/duc.c:177:31: style: Parameter 'duc' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/libduc/duc.c:197:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/dir.c:107:14: portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress] zevv-duc-b8f9659/src/libduc/dir.c:209:2: warning:inconclusive: The buffer 'rest' may not be null-terminated after the call to strncpy(). [terminateStrncpy] zevv-duc-b8f9659/src/libduc/dir.c:211:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] zevv-duc-b8f9659/src/libduc/dir.c:225:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] zevv-duc-b8f9659/src/libduc/dir.c:82:32: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/libduc/dir.c:88:35: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/libduc/dir.c:94:33: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/libduc/dir.c:133:22: style: Variable 'e' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/dir.c:211:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/dir.c:215:22: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/dir.c:366:8: style: Variable 'path' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/canonicalize.c:148:41: style:inconclusive: Function 'duc_canonicalize_path' argument 1 names different: declaration 'dir' definition 'in'. [funcArgNamesDifferent] zevv-duc-b8f9659/src/libduc/private.h:48:41: note: Function 'duc_canonicalize_path' argument 1 names different: declaration 'dir' definition 'in'. zevv-duc-b8f9659/src/libduc/canonicalize.c:148:41: note: Function 'duc_canonicalize_path' argument 1 names different: declaration 'dir' definition 'in'. zevv-duc-b8f9659/src/libduc/canonicalize.c:225:21: style: Variable 'c' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/utstring.h:242:11: style: Parameter 'P_KMP_Table' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/libduc/utstring.h:275:11: style: Parameter 'P_KMP_Table' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/libduc/utstring.h:305:16: style: Parameter 's' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/libduc/utstring.h:351:16: style: Parameter 's' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/libduc/varint.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] zevv-duc-b8f9659/src/libduc/index.c:101:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/libduc/index.c:139:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _tmp [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/libduc/index.c:384:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/libduc/index.c:431:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/libduc/index.c:646:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zevv-duc-b8f9659/src/libduc/index.c:147:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] zevv-duc-b8f9659/src/libduc/index.c:153:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] zevv-duc-b8f9659/src/libduc/index.c:186:12: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] zevv-duc-b8f9659/src/libduc/index.c:195:12: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] zevv-duc-b8f9659/src/libduc/index.c:438:14: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] zevv-duc-b8f9659/src/libduc/index.c:621:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] zevv-duc-b8f9659/src/libduc/index.c:622:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] zevv-duc-b8f9659/src/libduc/index.c:623:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] zevv-duc-b8f9659/src/libduc/index.c:620:34: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] zevv-duc-b8f9659/src/libduc/index.c:611:12: note: Assuming allocation function fails zevv-duc-b8f9659/src/libduc/index.c:611:12: note: Assignment 'f=fopen("/etc/mtab","r")', assigned value is 0 zevv-duc-b8f9659/src/libduc/index.c:620:34: note: Null pointer dereference zevv-duc-b8f9659/src/libduc/index.c:135:63: style:inconclusive: Function 'duc_index_req_add_exclude' argument 2 names different: declaration 'pattern' definition 'patt'. [funcArgNamesDifferent] zevv-duc-b8f9659/src/libduc/duc.h:148:63: note: Function 'duc_index_req_add_exclude' argument 2 names different: declaration 'pattern' definition 'patt'. zevv-duc-b8f9659/src/libduc/index.c:135:63: note: Function 'duc_index_req_add_exclude' argument 2 names different: declaration 'pattern' definition 'patt'. zevv-duc-b8f9659/src/libduc/index.c:460:7: style: Local variable 'r' shadows outer variable [shadowVariable] zevv-duc-b8f9659/src/libduc/index.c:421:13: note: Shadowed declaration zevv-duc-b8f9659/src/libduc/index.c:460:7: note: Shadow variable zevv-duc-b8f9659/src/libduc/index.c:147:8: style: Variable 'type' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/index.c:185:20: style: Variable 'pass' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/index.c:194:20: style: Variable 'pass' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/index.c:242:37: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/libduc/index.c:262:39: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] zevv-duc-b8f9659/src/libduc/index.c:297:8: style: Variable 'res' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/index.c:317:14: style: Variable 'duc' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/index.c:326:15: style: Variable 'res' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/index.c:422:21: style: Variable 'duc' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/index.c:591:22: style: Variable 'devino' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/index.c:622:9: style: Variable 'path' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/index.c:623:9: style: Variable 'type' can be declared as pointer to const [constVariablePointer] zevv-duc-b8f9659/src/libduc/index.c:317:14: style: Variable 'duc' is assigned a value that is never used. [unreadVariable] zevv-duc-b8f9659/src/libduc/index.c:422:21: style: Variable 'duc' is assigned a value that is never used. [unreadVariable] diff: head zevv-duc-b8f9659/src/libduc/db.c:91:9: style: Variable 'len' is assigned a value that is never used. [unreadVariable] DONE