2026-05-03 12:47 ftp://ftp.de.debian.org/debian/pool/main/m/megatools/megatools_1.11.5.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=openssl --library=libcurl --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 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 62 57 elapsed-time: 0.8 0.7 head-timing-info: old-timing-info: head results: megatools-1.11.5.20250706/lib/http.c:131:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_ENCODING [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/lib/http.c:200:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_MAXCONNECTS [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/lib/http.c:208:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_TIMEOUT [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/lib/http.c:247:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_MAX_SEND_SPEED_LARGE [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/lib/http.c:254:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_PROXY [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/lib/http.c:263:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_NOPROGRESS [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/lib/http.c:291:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLINFO_RESPONSE_CODE [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/lib/http.c:356:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVP_MAX_MD_SIZE [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/lib/http.c:379:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLINFO_RESPONSE_CODE [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/lib/http.c:431:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_POST [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/lib/http.c:503:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_POST [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/lib/http.c:548:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLE_GOT_NOTHING [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/lib/http.c:574:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_POST [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/lib/http.c:391:3: error: Memory leak: parts [memleak] megatools-1.11.5.20250706/lib/http.c:394:3: error: Memory leak: parts [memleak] megatools-1.11.5.20250706/lib/http.c:399:3: error: Memory leak: parts [memleak] megatools-1.11.5.20250706/lib/http.c:401:3: error: Memory leak: parts [memleak] megatools-1.11.5.20250706/lib/http.c:406:3: error: Memory leak: parts [memleak] megatools-1.11.5.20250706/lib/http.c:410:3: error: Memory leak: parts [memleak] megatools-1.11.5.20250706/lib/http.c:417:2: error: Memory leak: parts [memleak] megatools-1.11.5.20250706/lib/http.c:257:79: style:inconclusive: Function 'http_set_progress_callback' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] megatools-1.11.5.20250706/lib/http.c:491:15: style:inconclusive: Function 'http_post_stream_upload' argument 5 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] megatools-1.11.5.20250706/lib/http.c:491:35: style:inconclusive: Function 'http_post_stream_upload' argument 6 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] megatools-1.11.5.20250706/lib/http.c:561:102: style:inconclusive: Function 'http_post_stream_download' argument 4 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] megatools-1.11.5.20250706/lib/http.c:562:17: style:inconclusive: Function 'http_post_stream_download' argument 5 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] megatools-1.11.5.20250706/lib/http.c:271:31: style: Parameter 'key' can be declared as pointer to const. However it seems that 'add_header' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] megatools-1.11.5.20250706/lib/http.c:586:43: note: You might need to cast the function pointer here megatools-1.11.5.20250706/lib/http.c:271:31: note: Parameter 'key' can be declared as pointer to const megatools-1.11.5.20250706/lib/http.c:271:43: style: Parameter 'val' can be declared as pointer to const. However it seems that 'add_header' is a callback function, if 'val' is declared with const you might also need to cast function pointer(s). [constParameterCallback] megatools-1.11.5.20250706/lib/http.c:586:43: note: You might need to cast the function pointer here megatools-1.11.5.20250706/lib/http.c:271:43: note: Parameter 'val' can be declared as pointer to const megatools-1.11.5.20250706/lib/http.c:412:17: style: Variable 'str' can be declared as pointer to const [constVariablePointer] megatools-1.11.5.20250706/lib/http.c:414:17: style: Variable 'res' can be declared as pointer to const [constVariablePointer] megatools-1.11.5.20250706/lib/mega.c:3319:2: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] megatools-1.11.5.20250706/lib/sjson.c:805:41: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] sjson.c:354:3: error: There is an unknown macro here somewhere. Configuration is required. If S_JSON_FOREACH_END is a macro then please configure it. [unknownMacro] megatools-1.11.5.20250706/lib/tools.c:393:24: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] megatools-1.11.5.20250706/tools/copy.c:45:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEGA_STATUS_PROGRESS [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/tools/copy.c:66:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc_free [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/tools/copy.c:91:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEGA_NODE_FILE [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/tools/copy.c:184:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc_free [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/tools/copy.c:229:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc_object_unref [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/tools/copy.c:55:20: style: Variable 'node' can be declared as pointer to const [constVariablePointer] megatools-1.11.5.20250706/tools/copy.c:90:21: style: Variable 'node' can be declared as pointer to const [constVariablePointer] megatools-1.11.5.20250706/tools/copy.c:152:9: style: Variable 'local_path' can be declared as pointer to const [constVariablePointer] megatools-1.11.5.20250706/tools/df.c:43:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FORMAT_SIZE_IEC_UNITS [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/tools/df.c:57:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TOOL_INIT_AUTH [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/tools/df.c:99:19: error: Allocation with format_size, g_print doesn't release it. [leakNoVarFunctionCall] megatools-1.11.5.20250706/tools/df.c:101:19: error: Allocation with format_size, g_print doesn't release it. [leakNoVarFunctionCall] megatools-1.11.5.20250706/tools/df.c:103:19: error: Allocation with format_size, g_print doesn't release it. [leakNoVarFunctionCall] megatools-1.11.5.20250706/tools/df.c:105:26: error: Allocation with format_size, g_print doesn't release it. [leakNoVarFunctionCall] megatools-1.11.5.20250706/tools/df.c:106:26: error: Allocation with format_size, g_print doesn't release it. [leakNoVarFunctionCall] megatools-1.11.5.20250706/tools/df.c:107:26: error: Allocation with format_size, g_print doesn't release it. [leakNoVarFunctionCall] megatools-1.11.5.20250706/tools/dl.c:287:20: error: There is an unknown macro here somewhere. Configuration is required. If ESC_NORMAL is a macro then please configure it. [unknownMacro] megatools-1.11.5.20250706/tools/export.c:30:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc_error_free [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/tools/get.c:107:18: error: There is an unknown macro here somewhere. Configuration is required. If ESC_CLREOL is a macro then please configure it. [unknownMacro] megatools-1.11.5.20250706/tools/ls.c:58:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc_error_free [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/tools/mkdir.c:29:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc_error_free [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/tools/put.c:72:18: error: There is an unknown macro here somewhere. Configuration is required. If ESC_CLREOL is a macro then please configure it. [unknownMacro] megatools-1.11.5.20250706/tools/reg.c:43:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc_free [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/tools/reg.c:51:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc_match_info_unref [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/tools/reg.c:97:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc_error_free [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/tools/rm.c:27:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc_error_free [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/tools/shell.c:137:23: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] megatools-1.11.5.20250706/tools/test.c:35:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gc_error_free [valueFlowBailoutIncompleteVar] megatools-1.11.5.20250706/tools/test.c:60:21: style: Variable 'n' can be declared as pointer to const [constVariablePointer] diff: head megatools-1.11.5.20250706/lib/http.c:257:79: style:inconclusive: Function 'http_set_progress_callback' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head megatools-1.11.5.20250706/lib/http.c:491:15: style:inconclusive: Function 'http_post_stream_upload' argument 5 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] head megatools-1.11.5.20250706/lib/http.c:491:35: style:inconclusive: Function 'http_post_stream_upload' argument 6 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] head megatools-1.11.5.20250706/lib/http.c:561:102: style:inconclusive: Function 'http_post_stream_download' argument 4 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] head megatools-1.11.5.20250706/lib/http.c:562:17: style:inconclusive: Function 'http_post_stream_download' argument 5 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] DONE