2025-05-06 00:04 ftp://ftp.de.debian.org/debian/pool/main/libs/libstorj/libstorj_1.0.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -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: 581f101 (2025-05-05 21:13:30 +0200) count: 480 474 elapsed-time: 1.6 1.6 head-timing-info: old-timing-info: head results: libstorj-1.0.3/src/crypto.c:12:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RIPEMD160_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/crypto.c:29:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/crypto.c:54:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RIPEMD160_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/crypto.c:79:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RIPEMD160_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/crypto.c:165:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA512_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/crypto.c:194:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/crypto.c:204:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RIPEMD160_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/crypto.c:214:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA512_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/crypto.c:235:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AES_BLOCK_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/crypto.c:256:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/crypto.c:278:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GCM_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/crypto.c:346:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/crypto.c:406:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/crypto.c:473:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GCM_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/bip39.c:200:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA512_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/bip39.c:202:12: warning: If memory allocation fails, then there is a possible null pointer dereference: salt [nullPointerOutOfMemory] libstorj-1.0.3/src/bip39.c:201:27: note: Assuming allocation function fails libstorj-1.0.3/src/bip39.c:201:27: note: Assignment 'salt=calloc(8+256,sizeof(char))', assigned value is 0 libstorj-1.0.3/src/bip39.c:202:12: note: Null pointer dereference libstorj-1.0.3/src/bip39.c:203:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/src/bip39.c:201:27: note: Assuming allocation function fails libstorj-1.0.3/src/bip39.c:201:27: note: Assignment 'salt=calloc(8+256,sizeof(char))', assigned value is 0 libstorj-1.0.3/src/bip39.c:203:17: note: Null pointer addition libstorj-1.0.3/src/crypto.c:340:19: style: Checking if unsigned expression 'data_size' is less than zero. [unsignedLessThanZero] libstorj-1.0.3/src/crypto.c:310:13: style: Local variable 'len' shadows outer variable [shadowVariable] libstorj-1.0.3/src/crypto.c:277:9: note: Shadowed declaration libstorj-1.0.3/src/crypto.c:310:13: note: Shadow variable libstorj-1.0.3/src/crypto.c:26:30: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/crypto.c:79:11: style: Variable 'ripemd160_str' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/crypto.c:443:13: style: Variable 'out_len' is assigned a value that is never used. [unreadVariable] libstorj-1.0.3/src/cli.c:75:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/cli.c:247:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ICANON [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/cli.c:297:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/cli.c:335:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/cli.c:410:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uv_signal_t [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/cli.c:477:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/cli.c:840:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/cli.c:1052:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable required_argument [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/http.c:16:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURL_READFUNC_ABORT [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/http.c:107:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_URL [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/http.c:215:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURL_READFUNC_ABORT [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/http.c:308:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_USERAGENT [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/http.c:528:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_URL [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/downloader.c:28:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/downloader.c:85:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/downloader.c:130:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_object [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/downloader.c:374:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/downloader.c:435:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/downloader.c:532:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uv_work_t [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/downloader.c:834:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uv_work_t [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/downloader.c:978:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uv_work_t [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/downloader.c:1052:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AES_BLOCK_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/downloader.c:1080:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/downloader.c:1267:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_object [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/downloader.c:1330:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uv_work_t [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/downloader.c:1365:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/downloader.c:1465:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/downloader.c:1489:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AES_BLOCK_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/downloader.c:1696:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uv_work_t [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/http.c:31:24: style: Condition 'read_bytes==-1' is always false [knownConditionTrueFalse] libstorj-1.0.3/src/http.c:249:22: style: Condition 'writelen==-1' is always false [knownConditionTrueFalse] libstorj-1.0.3/src/http.c:379:9: style: Condition 'body' is always true [knownConditionTrueFalse] libstorj-1.0.3/src/http.c:101:9: error: Resource leak: curl [resourceLeak] libstorj-1.0.3/src/http.c:130:9: error: Resource leak: curl [resourceLeak] libstorj-1.0.3/src/http.c:130:9: error: Memory leak: url [memleak] libstorj-1.0.3/src/http.c:144:13: error: Resource leak: curl [resourceLeak] libstorj-1.0.3/src/http.c:144:13: error: Memory leak: url [memleak] libstorj-1.0.3/src/http.c:321:9: error: Resource leak: curl [resourceLeak] libstorj-1.0.3/src/http.c:339:9: error: Resource leak: curl [resourceLeak] libstorj-1.0.3/src/http.c:339:9: error: Memory leak: url [memleak] libstorj-1.0.3/src/http.c:351:9: error: Resource leak: curl [resourceLeak] libstorj-1.0.3/src/http.c:351:9: error: Memory leak: url [memleak] libstorj-1.0.3/src/http.c:365:9: error: Resource leak: curl [resourceLeak] libstorj-1.0.3/src/http.c:365:9: error: Memory leak: url [memleak] libstorj-1.0.3/src/http.c:365:9: error: Memory leak: body [memleak] libstorj-1.0.3/src/http.c:413:9: error: Memory leak: body [memleak] libstorj-1.0.3/src/http.c:425:9: error: Memory leak: body [memleak] libstorj-1.0.3/src/http.c:431:9: error: Memory leak: body [memleak] libstorj-1.0.3/src/http.c:523:9: error: Resource leak: curl [resourceLeak] libstorj-1.0.3/src/http.c:545:9: error: Resource leak: curl [resourceLeak] libstorj-1.0.3/src/http.c:545:9: error: Memory leak: url [memleak] libstorj-1.0.3/src/http.c:560:9: error: Resource leak: curl [resourceLeak] libstorj-1.0.3/src/http.c:560:9: error: Memory leak: url [memleak] libstorj-1.0.3/src/http.c:572:13: error: Resource leak: curl [resourceLeak] libstorj-1.0.3/src/http.c:572:13: error: Memory leak: url [memleak] libstorj-1.0.3/src/http.c:572:13: error: Memory leak: body [memleak] libstorj-1.0.3/src/http.c:576:13: error: Resource leak: curl [resourceLeak] libstorj-1.0.3/src/http.c:576:13: error: Memory leak: url [memleak] libstorj-1.0.3/src/http.c:576:13: error: Memory leak: body [memleak] libstorj-1.0.3/src/http.c:576:13: error: Memory leak: pass_hash [memleak] libstorj-1.0.3/src/http.c:365:9: error: Memory leak: body.tail [memleak] libstorj-1.0.3/src/http.c:191:9: warning: Either the condition 'shard_body' is redundant or there is possible null pointer dereference: shard_body. [nullPointerRedundantCheck] libstorj-1.0.3/src/http.c:182:9: note: Assuming that condition 'shard_body' is not redundant libstorj-1.0.3/src/http.c:191:9: note: Null pointer dereference libstorj-1.0.3/src/http.c:3:41: style: Parameter 'buffer' can be declared as pointer to const. However it seems that 'body_ignore_receive' is a callback function, if 'buffer' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/http.c:164:51: note: You might need to cast the function pointer here libstorj-1.0.3/src/http.c:3:41: note: Parameter 'buffer' can be declared as pointer to const libstorj-1.0.3/src/http.c:4:41: style: Parameter 'userp' can be declared as pointer to const. However it seems that 'body_ignore_receive' is a callback function, if 'userp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/http.c:164:51: note: You might need to cast the function pointer here libstorj-1.0.3/src/http.c:4:41: note: Parameter 'userp' can be declared as pointer to const libstorj-1.0.3/src/http.c:71:37: style: Parameter 'http_options' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/http.c:72:21: style: Parameter 'farmer_id' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/http.c:73:21: style: Parameter 'proto' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/http.c:74:21: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/http.c:76:21: style: Parameter 'shard_hash' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/http.c:81:21: style: Parameter 'token' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/http.c:208:40: style: Parameter 'buffer' can be declared as pointer to const. However it seems that 'body_shard_receive' is a callback function, if 'buffer' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/http.c:348:51: note: You might need to cast the function pointer here libstorj-1.0.3/src/http.c:208:40: note: Parameter 'buffer' can be declared as pointer to const libstorj-1.0.3/src/http.c:287:39: style: Parameter 'http_options' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/http.c:288:23: style: Parameter 'farmer_id' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/http.c:289:23: style: Parameter 'proto' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/http.c:290:23: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/http.c:292:23: style: Parameter 'shard_hash' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/http.c:294:23: style: Parameter 'token' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/http.c:481:39: style: Parameter 'buffer' can be declared as pointer to const. However it seems that 'body_json_receive' is a callback function, if 'buffer' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/http.c:557:51: note: You might need to cast the function pointer here libstorj-1.0.3/src/http.c:481:39: note: Parameter 'buffer' can be declared as pointer to const libstorj-1.0.3/src/http.c:500:38: style: Parameter 'http_options' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/http.c:502:22: style: Parameter 'method' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/http.c:503:22: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/http.c:474:19: portability: 'body->pnt' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] libstorj-1.0.3/src/rs.c:415:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/rs.c:714:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/rs.c:894:11: style: Variable 'i' is reassigned a value before the old one has been used. [redundantAssignment] libstorj-1.0.3/src/rs.c:892:7: note: i is assigned libstorj-1.0.3/src/rs.c:894:11: note: i is overwritten libstorj-1.0.3/src/rs.c:220:11: style: Variable 'Pp' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/rs.c:298:5: style: Variable '__gf_mulc_' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/rs.c:302:9: style: Variable 'lim' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/rs.c:340:5: style: Variable '__gf_mulc_' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/rs.c:344:9: style: Variable 'lim' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/rs.c:586:27: style: Parameter 'matrix' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/rs.c:603:26: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/rs.c:603:49: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/rs.c:631:40: style: Parameter 'matrixRows' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/rs.c:633:46: style: Parameter 'inputsMax' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/rs.c:633:68: style: Parameter 'outputsMax' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/rs.c:785:39: style: Parameter 'fec_block_nos' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/rs.c:796:9: style: Variable 'm' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/rs.c:823:9: style: Variable 'nos' is assigned a value that is never used. [unreadVariable] libstorj-1.0.3/src/rs.c:824:13: style: Variable 'nshards' is assigned a value that is never used. [unreadVariable] libstorj-1.0.3/src/downloader.c:87:5: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libstorj-1.0.3/src/downloader.c:577:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libstorj-1.0.3/src/downloader.c:1225:12: warning: If memory allocation fails, then there is a possible null pointer dereference: req->info [nullPointerOutOfMemory] libstorj-1.0.3/src/downloader.c:1224:27: note: Assuming allocation function fails libstorj-1.0.3/src/downloader.c:1224:27: note: Assignment 'req->info=malloc(sizeof(struct storj_file_meta_t))', assigned value is 0 libstorj-1.0.3/src/downloader.c:1225:12: note: Null pointer dereference libstorj-1.0.3/src/downloader.c:1339:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/downloader.c:1338:38: note: Assuming allocation function fails libstorj-1.0.3/src/downloader.c:1338:38: note: Assignment 'req=malloc(sizeof(struct file_info_request_t))', assigned value is 0 libstorj-1.0.3/src/downloader.c:1339:5: note: Null pointer dereference libstorj-1.0.3/src/downloader.c:1340:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/downloader.c:1338:38: note: Assuming allocation function fails libstorj-1.0.3/src/downloader.c:1338:38: note: Assignment 'req=malloc(sizeof(struct file_info_request_t))', assigned value is 0 libstorj-1.0.3/src/downloader.c:1340:5: note: Null pointer dereference libstorj-1.0.3/src/downloader.c:1341:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/downloader.c:1338:38: note: Assuming allocation function fails libstorj-1.0.3/src/downloader.c:1338:38: note: Assignment 'req=malloc(sizeof(struct file_info_request_t))', assigned value is 0 libstorj-1.0.3/src/downloader.c:1341:5: note: Null pointer dereference libstorj-1.0.3/src/downloader.c:1342:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/downloader.c:1338:38: note: Assuming allocation function fails libstorj-1.0.3/src/downloader.c:1338:38: note: Assignment 'req=malloc(sizeof(struct file_info_request_t))', assigned value is 0 libstorj-1.0.3/src/downloader.c:1342:5: note: Null pointer dereference libstorj-1.0.3/src/downloader.c:1343:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/downloader.c:1338:38: note: Assuming allocation function fails libstorj-1.0.3/src/downloader.c:1338:38: note: Assignment 'req=malloc(sizeof(struct file_info_request_t))', assigned value is 0 libstorj-1.0.3/src/downloader.c:1343:5: note: Null pointer dereference libstorj-1.0.3/src/downloader.c:1344:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/downloader.c:1338:38: note: Assuming allocation function fails libstorj-1.0.3/src/downloader.c:1338:38: note: Assignment 'req=malloc(sizeof(struct file_info_request_t))', assigned value is 0 libstorj-1.0.3/src/downloader.c:1344:5: note: Null pointer dereference libstorj-1.0.3/src/downloader.c:1345:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/downloader.c:1338:38: note: Assuming allocation function fails libstorj-1.0.3/src/downloader.c:1338:38: note: Assignment 'req=malloc(sizeof(struct file_info_request_t))', assigned value is 0 libstorj-1.0.3/src/downloader.c:1345:5: note: Null pointer dereference libstorj-1.0.3/src/downloader.c:1346:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/downloader.c:1338:38: note: Assuming allocation function fails libstorj-1.0.3/src/downloader.c:1338:38: note: Assignment 'req=malloc(sizeof(struct file_info_request_t))', assigned value is 0 libstorj-1.0.3/src/downloader.c:1346:5: note: Null pointer dereference libstorj-1.0.3/src/downloader.c:759:39: style: Variable 'pointer->report->code' is reassigned a value before the old one has been used. [redundantAssignment] libstorj-1.0.3/src/downloader.c:756:39: note: pointer->report->code is assigned libstorj-1.0.3/src/downloader.c:759:39: note: pointer->report->code is overwritten libstorj-1.0.3/src/downloader.c:760:42: style: Variable 'pointer->report->message' is reassigned a value before the old one has been used. [redundantAssignment] libstorj-1.0.3/src/downloader.c:757:42: note: pointer->report->message is assigned libstorj-1.0.3/src/downloader.c:760:42: note: pointer->report->message is overwritten libstorj-1.0.3/src/downloader.c:53:41: style: Parameter 'work' can be declared as pointer to const. However it seems that 'request_pointers' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/downloader.c:616:32: note: You might need to cast the function pointer here libstorj-1.0.3/src/downloader.c:53:41: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/downloader.c:77:48: style: Parameter 'work' can be declared as pointer to const. However it seems that 'request_replace_pointer' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/downloader.c:547:40: note: You might need to cast the function pointer here libstorj-1.0.3/src/downloader.c:77:48: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/downloader.c:136:11: style: Variable 'token' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/downloader.c:169:11: style: Variable 'address' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/downloader.c:171:11: style: Variable 'farmer_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/downloader.c:327:30: style: Variable 'pointer' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/downloader.c:626:38: style: Parameter 'work' can be declared as pointer to const. However it seems that 'request_shard' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/downloader.c:871:40: note: You might need to cast the function pointer here libstorj-1.0.3/src/downloader.c:626:38: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/downloader.c:678:50: style: Parameter 'progress_handle' can be declared as pointer to const. However it seems that 'free_request_shard_work' is a callback function, if 'progress_handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/downloader.c:784:31: note: You might need to cast the function pointer here libstorj-1.0.3/src/downloader.c:678:50: note: Parameter 'progress_handle' can be declared as pointer to const libstorj-1.0.3/src/downloader.c:692:26: style: Variable 'pointer' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/downloader.c:709:26: style: Variable 'pointer' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/downloader.c:787:48: style: Parameter 'async' can be declared as pointer to const. However it seems that 'progress_request_shard' is a callback function, if 'async' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/downloader.c:866:27: note: You might need to cast the function pointer here libstorj-1.0.3/src/downloader.c:787:48: note: Parameter 'async' can be declared as pointer to const libstorj-1.0.3/src/downloader.c:882:45: style: Parameter 'work' can be declared as pointer to const. However it seems that 'send_exchange_report' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/downloader.c:1003:40: note: You might need to cast the function pointer here libstorj-1.0.3/src/downloader.c:882:45: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/downloader.c:1181:37: style: Parameter 'work' can be declared as pointer to const. However it seems that 'request_info' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/downloader.c:1352:32: note: You might need to cast the function pointer here libstorj-1.0.3/src/downloader.c:1181:37: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/downloader.c:1237:15: style: Variable 'erasure' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/downloader.c:1252:15: style: Variable 'index' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/downloader.c:1285:15: style: Variable 'hmac_type_str' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/downloader.c:1304:15: style: Variable 'hmac' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/downloader.c:1414:26: style: Variable 'pointer' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/downloader.c:1428:30: style: Variable 'pointer' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/downloader.c:1476:39: style: Parameter 'work' can be declared as pointer to const. However it seems that 'recover_shards' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/downloader.c:1738:36: note: You might need to cast the function pointer here libstorj-1.0.3/src/downloader.c:1476:39: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/downloader.c:84:33: style: Variable 'excluded_farmer_ids_len' is assigned a value that is never used. [unreadVariable] libstorj-1.0.3/src/downloader.c:84:9: style: Variable 'excluded_farmer_ids_len' is assigned a value that is never used. [unreadVariable] libstorj-1.0.3/src/storj.c:41:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/storj.c:98:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/storj.c:182:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/storj.c:265:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uv_work_t [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/storj.c:480:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURL_GLOBAL_ALL [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/storj.c:1379:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/storj.c:626:12: style: Condition 'env->tmp_path' is always false [knownConditionTrueFalse] libstorj-1.0.3/src/storj.c:625:21: note: Assignment 'env->tmp_path=NULL', assigned value is 0 libstorj-1.0.3/src/storj.c:626:12: note: Condition 'env->tmp_path' is always false libstorj-1.0.3/src/storj.c:501:9: error: Memory leak: env [memleak] libstorj-1.0.3/src/storj.c:571:9: error: Memory leak: env [memleak] libstorj-1.0.3/src/storj.c:650:9: error: Memory leak: env [memleak] libstorj-1.0.3/src/storj.c:677:9: error: Memory leak: env [memleak] libstorj-1.0.3/src/storj.c:925:9: error: Resource leak: fp [resourceLeak] libstorj-1.0.3/src/storj.c:650:9: error: Memory leak: env.tmp_path [memleak] libstorj-1.0.3/src/storj.c:787:36: style:inconclusive: Function 'storj_encrypt_auth' argument 1 names different: declaration 'passhrase' definition 'passphrase'. [funcArgNamesDifferent] libstorj-1.0.3/src/storj.h:579:36: note: Function 'storj_encrypt_auth' argument 1 names different: declaration 'passhrase' definition 'passphrase'. libstorj-1.0.3/src/storj.c:787:36: note: Function 'storj_encrypt_auth' argument 1 names different: declaration 'passhrase' definition 'passphrase'. libstorj-1.0.3/src/storj.c:832:42: style:inconclusive: Function 'storj_encrypt_write_auth' argument 2 names different: declaration 'passhrase' definition 'passphrase'. [funcArgNamesDifferent] libstorj-1.0.3/src/storj.h:560:42: note: Function 'storj_encrypt_write_auth' argument 2 names different: declaration 'passhrase' definition 'passphrase'. libstorj-1.0.3/src/storj.c:832:42: note: Function 'storj_encrypt_write_auth' argument 2 names different: declaration 'passhrase' definition 'passphrase'. libstorj-1.0.3/src/storj.c:230:28: style: Local variable 'file' shadows outer variable [shadowVariable] libstorj-1.0.3/src/storj.c:214:25: note: Shadowed declaration libstorj-1.0.3/src/storj.c:230:28: note: Shadow variable libstorj-1.0.3/src/storj.c:8:44: style: Parameter 'work' can be declared as pointer to const. However it seems that 'json_request_worker' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/storj.c:1399:56: note: You might need to cast the function pointer here libstorj-1.0.3/src/storj.c:8:44: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/storj.c:20:53: style: Parameter 'work' can be declared as pointer to const. However it seems that 'create_bucket_request_worker' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/storj.c:1119:26: note: You might need to cast the function pointer here libstorj-1.0.3/src/storj.c:20:53: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/storj.c:85:51: style: Parameter 'work' can be declared as pointer to const. However it seems that 'get_buckets_request_worker' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/storj.c:1084:26: note: You might need to cast the function pointer here libstorj-1.0.3/src/storj.c:85:51: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/storj.c:169:50: style: Parameter 'work' can be declared as pointer to const. However it seems that 'list_files_request_worker' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/storj.c:1185:26: note: You might need to cast the function pointer here libstorj-1.0.3/src/storj.c:169:50: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/storj.c:415:34: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'default_logger' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/storj.c:672:36: note: You might need to cast the function pointer here libstorj-1.0.3/src/storj.c:415:34: note: Parameter 'handle' can be declared as pointer to const libstorj-1.0.3/src/storj.c:475:58: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/storj.c:476:59: style: Parameter 'encrypt_options' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/storj.c:477:56: style: Parameter 'http_options' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/storj.c:882:11: style: Variable 'pass_enc' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/storj.c:889:11: style: Variable 'mnemonic_enc' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/storj.c:640:16: warning: Conversion of string literal "/tmp" to bool always evaluates to true. [incorrectStringBooleanError] libstorj-1.0.3/src/storj.c:628:17: error: Uninitialized variable: sb [uninitvar] libstorj-1.0.3/src/storj.c:794:21: style: Variable 'pass_length' is assigned a value that is never used. [unreadVariable] libstorj-1.0.3/src/storj.c:802:25: style: Variable 'mnemonic_length' is assigned a value that is never used. [unreadVariable] libstorj-1.0.3/src/storj.c:794:9: style: Variable 'pass_length' is assigned a value that is never used. [unreadVariable] libstorj-1.0.3/src/storj.c:802:9: style: Variable 'mnemonic_length' is assigned a value that is never used. [unreadVariable] libstorj-1.0.3/src/uploader.c:17:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:47:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uv_work_t [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:173:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable aes256_ctx [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:338:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UV_ECANCELED [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:463:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:576:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UV_ECANCELED [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:866:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UV_ECANCELED [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:1130:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_string [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:1251:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UV_ECANCELED [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:1359:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RIPEMD160_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:1563:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AES_BLOCK_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:1658:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UV_ECANCELED [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:1728:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_string [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:1900:131: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:1978:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UV_ECANCELED [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:2069:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uv_work_t [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:2470:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:2576:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/utils.c:35:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable base16_decode_ctx [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/utils.c:295:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/utils.c:329:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROT_READ [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/utils.c:97:42: warning: If resource allocation fails, then there is a possible null pointer dereference: frand [nullPointerOutOfResources] libstorj-1.0.3/src/utils.c:95:22: note: Assuming allocation function fails libstorj-1.0.3/src/utils.c:95:22: note: Assignment 'frand=fopen("/dev/urandom","r")', assigned value is 0 libstorj-1.0.3/src/utils.c:97:42: note: Null pointer dereference libstorj-1.0.3/src/utils.c:148:19: style: Checking if unsigned expression 'file_size' is less than zero. [unsignedLessThanZero] libstorj-1.0.3/src/utils.c:16:31: style: Parameter 'array' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/utils.c:63:15: style: Variable 'item' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/utils.c:75:15: style: Variable 'item' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/utils.c:284:25: style: Parameter 'map' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/test/mockbridge.c:20:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MHD_HTTP_UNAUTHORIZED [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/mockbridge.c:35:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_tokener_continue [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/mockbridge.c:60:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mockbridge_json [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/cli.c:962:13: error: Dereferencing 'req' after it is deallocated / released [deallocuse] libstorj-1.0.3/src/cli.c:964:39: error: Dereferencing 'req' after it is deallocated / released [deallocuse] libstorj-1.0.3/src/cli.c:130:25: warning: Either the condition 'file_path' is redundant or there is possible null pointer dereference: file_path. [nullPointerRedundantCheck] libstorj-1.0.3/src/cli.c:131:23: note: Assuming that condition 'file_path' is not redundant libstorj-1.0.3/src/cli.c:130:25: note: Null pointer dereference libstorj-1.0.3/src/cli.c:175:15: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] libstorj-1.0.3/src/cli.c:202:30: note: Assuming allocation function fails libstorj-1.0.3/src/cli.c:202:30: note: Assignment 'strength_str=calloc(BUFSIZ,sizeof(char))', assigned value is 0 libstorj-1.0.3/src/cli.c:204:19: note: Calling function 'get_input', 1st argument 'strength_str' value is 0 libstorj-1.0.3/src/cli.c:175:15: note: Null pointer dereference libstorj-1.0.3/src/cli.c:282:5: warning: If memory allocation fails, then there is a possible null pointer dereference: password [nullPointerOutOfMemory] libstorj-1.0.3/src/cli.c:1010:21: note: Assuming allocation function fails libstorj-1.0.3/src/cli.c:1010:21: note: Assignment 'key=calloc(BUFSIZ,sizeof(char))', assigned value is 0 libstorj-1.0.3/src/cli.c:1012:22: note: Calling function 'get_password', 1st argument 'key' value is 0 libstorj-1.0.3/src/cli.c:282:5: note: Null pointer dereference libstorj-1.0.3/src/cli.c:305:13: warning: If memory allocation fails, then there is a possible null pointer dereference: password [nullPointerOutOfMemory] libstorj-1.0.3/src/cli.c:696:21: note: Assuming allocation function fails libstorj-1.0.3/src/cli.c:696:21: note: Assignment 'key=calloc(BUFSIZ,sizeof(char))', assigned value is 0 libstorj-1.0.3/src/cli.c:699:56: note: Calling function 'get_password_verify', 2nd argument 'key' value is 0 libstorj-1.0.3/src/cli.c:305:13: note: Null pointer dereference libstorj-1.0.3/src/cli.c:783:40: warning: Either the condition 'mnemonic' is redundant or there is possible null pointer dereference: mnemonic. [nullPointerRedundantCheck] libstorj-1.0.3/src/cli.c:793:13: note: Assuming that condition 'mnemonic' is not redundant libstorj-1.0.3/src/cli.c:783:40: note: Null pointer dereference libstorj-1.0.3/src/cli.c:223:16: style: Variable 'status' is reassigned a value before the old one has been used. [redundantAssignment] libstorj-1.0.3/src/cli.c:222:16: note: status is assigned libstorj-1.0.3/src/cli.c:223:16: note: status is overwritten libstorj-1.0.3/src/cli.c:73:63: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'json_logger' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/cli.c:1162:19: note: You might need to cast the function pointer here libstorj-1.0.3/src/cli.c:73:63: note: Parameter 'handle' can be declared as pointer to const libstorj-1.0.3/src/cli.c:144:41: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/cli.c:146:11: style: Variable 'home_dir' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/cli.c:321:32: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'close_signal' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/cli.c:468:34: note: You might need to cast the function pointer here libstorj-1.0.3/src/cli.c:321:32: note: Parameter 'handle' can be declared as pointer to const libstorj-1.0.3/src/cli.c:395:11: style: Variable 'prepare_frame_limit' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/cli.c:396:11: style: Variable 'push_frame_limit' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/cli.c:397:11: style: Variable 'push_shard_limit' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/cli.c:398:11: style: Variable 'rs' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/cli.c:471:50: style: Parameter 'bucket_id' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/cli.c:472:32: style: Parameter 'file_id' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/cli.c:472:47: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/cli.c:1051:26: style: Variable 'cmd_options' can be declared as const array [constVariable] libstorj-1.0.3/src/cli.c:1073:11: style: Variable 'storj_bridge' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/cli.c:1113:11: style: Variable 'command' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/cli.c:1252:15: style: Variable 'keypass' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/cli.c:1389:19: style: Variable 'path' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/cli.c:1402:19: style: Variable 'bucket_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/cli.c:1412:19: style: Variable 'bucket_name' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/cli.c:1424:19: style: Variable 'bucket_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/cli.c:1436:19: style: Variable 'bucket_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/cli.c:1437:19: style: Variable 'file_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/cli.c:1450:19: style: Variable 'bucket_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/cli.c:1451:19: style: Variable 'file_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/cli.c:257:23: style: Variable 'RETURN' is assigned a value that is never used. [unreadVariable] libstorj-1.0.3/src/cli.c:257:16: style: Variable 'RETURN' is assigned a value that is never used. [unreadVariable] libstorj-1.0.3/src/cli.c:553:25: style: Unused variable: available [unusedVariable] libstorj-1.0.3/src/cli.c:557:25: style: Unused variable: address [unusedVariable] libstorj-1.0.3/src/cli.c:558:25: style: Unused variable: port [unusedVariable] libstorj-1.0.3/test/mockbridge.c:21:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] libstorj-1.0.3/test/mockbridge.c:229:16: warning: If memory allocation fails, then there is a possible null pointer dereference: page_cpy [nullPointerOutOfMemory] libstorj-1.0.3/test/mockbridge.c:228:32: note: Assuming allocation function fails libstorj-1.0.3/test/mockbridge.c:228:32: note: Assignment 'page_cpy=calloc(page_len+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockbridge.c:229:16: note: Null pointer dereference libstorj-1.0.3/test/mockbridge.c:14:23: style: Parameter 'user' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/test/mockbridge.c:14:35: style: Parameter 'pass' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/test/mockbridge.c:14:65: style: Parameter 'page' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/test/mockbridge.c:21:10: style: Variable 'page' is assigned a value that is never used. [unreadVariable] libstorj-1.0.3/test/mockbridge.c:30:19: style: Variable 'stringlen' is assigned a value that is never used. [unreadVariable] libstorj-1.0.3/test/mockfarmer.c:19:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable aes256_ctx [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/mockfarmer.c:104:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MHD_YES [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/mockfarmer.c:343:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MHD_USE_SELECT_INTERNALLY [valueFlowBailoutIncompleteVar] libstorj-1.0.3/src/uploader.c:1045:25: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libstorj-1.0.3/src/uploader.c:1048:23: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] libstorj-1.0.3/src/uploader.c:1411:24: style: Condition 'read_bytes==-1' is always false [knownConditionTrueFalse] libstorj-1.0.3/src/uploader.c:1589:24: style: Condition 'read_bytes==-1' is always false [knownConditionTrueFalse] libstorj-1.0.3/src/uploader.c:2413:49: style: Condition 'state->shard_size==0' is always false [knownConditionTrueFalse] libstorj-1.0.3/src/uploader.c:2413:9: note: Assuming that condition '!state->shard_size' is not redundant libstorj-1.0.3/src/uploader.c:2413:49: note: Condition 'state->shard_size==0' is always false libstorj-1.0.3/src/uploader.c:92:9: error: Memory leak: req [memleak] libstorj-1.0.3/src/uploader.c:175:9: error: Memory leak: ctx [memleak] libstorj-1.0.3/src/uploader.c:180:9: error: Memory leak: ctx [memleak] libstorj-1.0.3/src/uploader.c:523:9: error: Memory leak: req [memleak] libstorj-1.0.3/src/uploader.c:808:9: error: Memory leak: req [memleak] libstorj-1.0.3/src/uploader.c:180:9: error: Memory leak: ctx.ctx [memleak] libstorj-1.0.3/src/uploader.c:550:33: warning: Either the condition 'work' is redundant or there is possible null pointer dereference: work. [nullPointerRedundantCheck] libstorj-1.0.3/src/uploader.c:556:9: note: Assuming that condition 'work' is not redundant libstorj-1.0.3/src/uploader.c:550:33: note: Null pointer dereference libstorj-1.0.3/src/uploader.c:1636:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/uploader.c:1634:37: note: Assuming allocation function fails libstorj-1.0.3/src/uploader.c:1634:37: note: Assignment 'req=malloc(sizeof(struct encrypt_file_req_t))', assigned value is 0 libstorj-1.0.3/src/uploader.c:1636:5: note: Null pointer dereference libstorj-1.0.3/src/uploader.c:1637:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/uploader.c:1634:37: note: Assuming allocation function fails libstorj-1.0.3/src/uploader.c:1634:37: note: Assignment 'req=malloc(sizeof(struct encrypt_file_req_t))', assigned value is 0 libstorj-1.0.3/src/uploader.c:1637:5: note: Null pointer dereference libstorj-1.0.3/src/uploader.c:1958:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/uploader.c:1956:37: note: Assuming allocation function fails libstorj-1.0.3/src/uploader.c:1956:37: note: Assignment 'req=malloc(sizeof(struct parity_shard_req_t))', assigned value is 0 libstorj-1.0.3/src/uploader.c:1958:5: note: Null pointer dereference libstorj-1.0.3/src/uploader.c:1959:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/uploader.c:1956:37: note: Assuming allocation function fails libstorj-1.0.3/src/uploader.c:1956:37: note: Assignment 'req=malloc(sizeof(struct parity_shard_req_t))', assigned value is 0 libstorj-1.0.3/src/uploader.c:1959:5: note: Null pointer dereference libstorj-1.0.3/src/uploader.c:2074:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/uploader.c:2072:38: note: Assuming allocation function fails libstorj-1.0.3/src/uploader.c:2072:38: note: Assignment 'req=malloc(sizeof(struct shard_send_report_t))', assigned value is 0 libstorj-1.0.3/src/uploader.c:2074:5: note: Null pointer dereference libstorj-1.0.3/src/uploader.c:2075:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/uploader.c:2072:38: note: Assuming allocation function fails libstorj-1.0.3/src/uploader.c:2072:38: note: Assignment 'req=malloc(sizeof(struct shard_send_report_t))', assigned value is 0 libstorj-1.0.3/src/uploader.c:2075:5: note: Null pointer dereference libstorj-1.0.3/src/uploader.c:2076:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/uploader.c:2072:38: note: Assuming allocation function fails libstorj-1.0.3/src/uploader.c:2072:38: note: Assignment 'req=malloc(sizeof(struct shard_send_report_t))', assigned value is 0 libstorj-1.0.3/src/uploader.c:2076:5: note: Null pointer dereference libstorj-1.0.3/src/uploader.c:2077:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/uploader.c:2072:38: note: Assuming allocation function fails libstorj-1.0.3/src/uploader.c:2072:38: note: Assignment 'req=malloc(sizeof(struct shard_send_report_t))', assigned value is 0 libstorj-1.0.3/src/uploader.c:2077:5: note: Null pointer dereference libstorj-1.0.3/src/uploader.c:2078:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/uploader.c:2072:38: note: Assuming allocation function fails libstorj-1.0.3/src/uploader.c:2072:38: note: Assignment 'req=malloc(sizeof(struct shard_send_report_t))', assigned value is 0 libstorj-1.0.3/src/uploader.c:2078:5: note: Null pointer dereference libstorj-1.0.3/src/uploader.c:2079:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/uploader.c:2072:38: note: Assuming allocation function fails libstorj-1.0.3/src/uploader.c:2072:38: note: Assignment 'req=malloc(sizeof(struct shard_send_report_t))', assigned value is 0 libstorj-1.0.3/src/uploader.c:2079:5: note: Null pointer dereference libstorj-1.0.3/src/uploader.c:2080:5: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] libstorj-1.0.3/src/uploader.c:2072:38: note: Assuming allocation function fails libstorj-1.0.3/src/uploader.c:2072:38: note: Assignment 'req=malloc(sizeof(struct shard_send_report_t))', assigned value is 0 libstorj-1.0.3/src/uploader.c:2080:5: note: Null pointer dereference libstorj-1.0.3/src/uploader.c:2579:33: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp_folder [nullPointerOutOfMemory] libstorj-1.0.3/src/uploader.c:2575:30: note: Assuming allocation function fails libstorj-1.0.3/src/uploader.c:2575:30: note: Assignment 'tmp_folder=strdup(state->env->tmp_path)', assigned value is 0 libstorj-1.0.3/src/uploader.c:2579:33: note: Null pointer dereference libstorj-1.0.3/src/uploader.c:2580:9: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp_folder [nullPointerOutOfMemory] libstorj-1.0.3/src/uploader.c:2575:30: note: Assuming allocation function fails libstorj-1.0.3/src/uploader.c:2575:30: note: Assignment 'tmp_folder=strdup(state->env->tmp_path)', assigned value is 0 libstorj-1.0.3/src/uploader.c:2580:9: note: Null pointer dereference libstorj-1.0.3/src/uploader.c:2602:13: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp_folder [nullPointerOutOfMemory] libstorj-1.0.3/src/uploader.c:2575:30: note: Assuming allocation function fails libstorj-1.0.3/src/uploader.c:2575:30: note: Assignment 'tmp_folder=strdup(state->env->tmp_path)', assigned value is 0 libstorj-1.0.3/src/uploader.c:2602:13: note: Null pointer dereference libstorj-1.0.3/src/uploader.c:2413:28: style: Same expression on both sides of '||' because '!state->shard_size' and 'state->shard_size==0' represent the same value. [knownConditionTrueFalse] libstorj-1.0.3/src/uploader.c:1542:1: style: Label 'clean_variables' is not used. [unusedLabel] libstorj-1.0.3/src/uploader.c:1795:1: style: Label 'clean_variables' is not used. [unusedLabel] libstorj-1.0.3/src/uploader.c:1002:18: style: Local variable 'shard_size' shadows outer function [shadowFunction] libstorj-1.0.3/src/utils.h:53:10: note: Shadowed declaration libstorj-1.0.3/src/uploader.c:1002:18: note: Shadow variable libstorj-1.0.3/src/uploader.c:4:22: style: Variable 'shard' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/uploader.c:5:19: style: Variable 'shard_meta' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/uploader.c:6:23: style: Variable 'p' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/uploader.c:51:39: style: Parameter 'index' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/uploader.c:166:64: style: Parameter 'ctr' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/uploader.c:362:15: style: Variable 'file_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/uploader.c:384:44: style: Parameter 'work' can be declared as pointer to const. However it seems that 'create_bucket_entry' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/uploader.c:537:32: note: You might need to cast the function pointer here libstorj-1.0.3/src/uploader.c:384:44: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/uploader.c:547:47: style: Parameter 'progress_handle' can be declared as pointer to const. However it seems that 'free_push_shard_work' is a callback function, if 'progress_handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/uploader.c:652:31: note: You might need to cast the function pointer here libstorj-1.0.3/src/uploader.c:547:47: note: Parameter 'progress_handle' can be declared as pointer to const libstorj-1.0.3/src/uploader.c:655:35: style: Parameter 'work' can be declared as pointer to const. However it seems that 'push_shard' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/uploader.c:824:32: note: You might need to cast the function pointer here libstorj-1.0.3/src/uploader.c:655:35: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/uploader.c:723:44: style: Parameter 'async' can be declared as pointer to const. However it seems that 'progress_put_shard' is a callback function, if 'async' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/uploader.c:818:19: note: You might need to cast the function pointer here libstorj-1.0.3/src/uploader.c:723:44: note: Parameter 'async' can be declared as pointer to const libstorj-1.0.3/src/uploader.c:978:35: style: Parameter 'work' can be declared as pointer to const. However it seems that 'push_frame' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/uploader.c:1234:32: note: You might need to cast the function pointer here libstorj-1.0.3/src/uploader.c:978:35: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/uploader.c:1137:11: style: Variable 'token' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/uploader.c:1146:11: style: Variable 'farmer_user_agent' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/uploader.c:1159:11: style: Variable 'farmer_protocol' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/uploader.c:1171:11: style: Variable 'farmer_address' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/uploader.c:1183:11: style: Variable 'farmer_port' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/uploader.c:1192:11: style: Variable 'farmer_node_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/uploader.c:1334:38: style: Parameter 'work' can be declared as pointer to const. However it seems that 'prepare_frame' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/uploader.c:1494:32: note: You might need to cast the function pointer here libstorj-1.0.3/src/uploader.c:1334:38: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/uploader.c:1548:46: style: Parameter 'work' can be declared as pointer to const. However it seems that 'create_encrypted_file' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/uploader.c:1641:32: note: You might need to cast the function pointer here libstorj-1.0.3/src/uploader.c:1548:46: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/uploader.c:1686:41: style: Parameter 'work' can be declared as pointer to const. However it seems that 'request_frame_id' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/uploader.c:1759:32: note: You might need to cast the function pointer here libstorj-1.0.3/src/uploader.c:1686:41: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/uploader.c:1733:11: style: Variable 'frame_id_str' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/src/uploader.c:1801:45: style: Parameter 'work' can be declared as pointer to const. However it seems that 'create_parity_shards' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/uploader.c:1963:32: note: You might need to cast the function pointer here libstorj-1.0.3/src/uploader.c:1801:45: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/uploader.c:2007:45: style: Parameter 'work' can be declared as pointer to const. However it seems that 'send_exchange_report' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/uploader.c:2086:32: note: You might need to cast the function pointer here libstorj-1.0.3/src/uploader.c:2007:45: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/uploader.c:2177:41: style: Parameter 'work' can be declared as pointer to const. However it seems that 'verify_file_name' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/uploader.c:2248:32: note: You might need to cast the function pointer here libstorj-1.0.3/src/uploader.c:2177:41: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/uploader.c:2258:52: style: Parameter 'state' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/uploader.c:2386:45: style: Parameter 'work' can be declared as pointer to const. However it seems that 'prepare_upload_state' is a callback function, if 'work' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/src/uploader.c:2717:26: note: You might need to cast the function pointer here libstorj-1.0.3/src/uploader.c:2386:45: note: Parameter 'work' can be declared as pointer to const libstorj-1.0.3/src/uploader.c:2573:58: style: Parameter 'extension' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/test/tests.c:75:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:110:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_string [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:150:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_string [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:185:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_string [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:209:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:325:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_string [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:347:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_string [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:368:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_string [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:406:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_string [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:425:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_array [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:453:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_type_string [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:529:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UV_RUN_DEFAULT [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:582:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UV_RUN_ONCE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:639:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UV_RUN_DEFAULT [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:685:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UV_RUN_ONCE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:733:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UV_RUN_DEFAULT [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:836:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UV_RUN_DEFAULT [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:1232:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:1303:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AES_BLOCK_SIZE [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:1516:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MHD_USE_THREAD_PER_CONNECTION [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests.c:1459:9: error: Resource leak: fp [resourceLeak] libstorj-1.0.3/test/tests.c:1472:9: error: Resource leak: fp [resourceLeak] libstorj-1.0.3/test/tests.c:1490:9: error: Resource leak: fp2 [resourceLeak] libstorj-1.0.3/test/tests.c:1501:9: error: Resource leak: fp2 [resourceLeak] libstorj-1.0.3/test/tests.c:469:16: warning: If memory allocation fails, then there is a possible null pointer dereference: filepath [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:1435:24: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:1435:24: note: Assignment 'file=calloc(len+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:1440:29: note: Calling function 'create_test_upload_file', 1st argument 'file' value is 0 libstorj-1.0.3/test/tests.c:469:16: note: Null pointer dereference libstorj-1.0.3/test/tests.c:480:16: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:479:28: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:479:28: note: Assignment 'page=calloc(shard_size+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:480:16: note: Null pointer dereference libstorj-1.0.3/test/tests.c:481:15: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:479:28: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:479:28: note: Assignment 'page=calloc(shard_size+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:481:15: note: Null pointer dereference libstorj-1.0.3/test/tests.c:502:12: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:501:24: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:501:24: note: Assignment 'file=calloc(len+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:502:12: note: Null pointer dereference libstorj-1.0.3/test/tests.c:503:12: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:501:24: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:501:24: note: Assignment 'file=calloc(len+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:503:12: note: Null pointer dereference libstorj-1.0.3/test/tests.c:504:5: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:501:24: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:501:24: note: Assignment 'file=calloc(len+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:504:5: note: Null pointer dereference libstorj-1.0.3/test/tests.c:513:21: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:501:24: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:501:24: note: Assignment 'file=calloc(len+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:513:21: note: Null pointer dereference libstorj-1.0.3/test/tests.c:552:12: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:551:24: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:551:24: note: Assignment 'file=calloc(len+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:552:12: note: Null pointer dereference libstorj-1.0.3/test/tests.c:553:12: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:551:24: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:551:24: note: Assignment 'file=calloc(len+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:553:12: note: Null pointer dereference libstorj-1.0.3/test/tests.c:554:5: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:551:24: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:551:24: note: Assignment 'file=calloc(len+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:554:5: note: Null pointer dereference libstorj-1.0.3/test/tests.c:563:21: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:551:24: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:551:24: note: Assignment 'file=calloc(len+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:563:21: note: Null pointer dereference libstorj-1.0.3/test/tests.c:617:12: warning: If memory allocation fails, then there is a possible null pointer dereference: download_file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:616:33: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:616:33: note: Assignment 'download_file=calloc(strlen(folder)+24+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:617:12: note: Null pointer dereference libstorj-1.0.3/test/tests.c:618:12: warning: If memory allocation fails, then there is a possible null pointer dereference: download_file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:616:33: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:616:33: note: Assignment 'download_file=calloc(strlen(folder)+24+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:618:12: note: Null pointer dereference libstorj-1.0.3/test/tests.c:619:31: warning: If memory allocation fails, then there is a possible null pointer dereference: download_file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:616:33: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:616:33: note: Assignment 'download_file=calloc(strlen(folder)+24+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:619:31: note: Null pointer dereference libstorj-1.0.3/test/tests.c:660:12: warning: If memory allocation fails, then there is a possible null pointer dereference: download_file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:659:33: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:659:33: note: Assignment 'download_file=calloc(strlen(folder)+33+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:660:12: note: Null pointer dereference libstorj-1.0.3/test/tests.c:661:12: warning: If memory allocation fails, then there is a possible null pointer dereference: download_file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:659:33: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:659:33: note: Assignment 'download_file=calloc(strlen(folder)+33+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:661:12: note: Null pointer dereference libstorj-1.0.3/test/tests.c:662:31: warning: If memory allocation fails, then there is a possible null pointer dereference: download_file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:659:33: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:659:33: note: Assignment 'download_file=calloc(strlen(folder)+33+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:662:31: note: Null pointer dereference libstorj-1.0.3/test/tests.c:1404:16: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:1417:32: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:1417:32: note: Assignment 'filename=calloc(i+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:1419:39: note: Calling function 'test_meta_encryption_name', 1st argument 'filename' value is 0 libstorj-1.0.3/test/tests.c:1400:16: note: Assuming condition is false libstorj-1.0.3/test/tests.c:1404:16: note: Null pointer dereference libstorj-1.0.3/test/tests.c:1418:16: warning: If memory allocation fails, then there is a possible null pointer dereference: filename [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:1417:32: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:1417:32: note: Assignment 'filename=calloc(i+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:1418:16: note: Null pointer dereference libstorj-1.0.3/test/tests.c:1436:12: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:1435:24: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:1435:24: note: Assignment 'file=calloc(len+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:1436:12: note: Null pointer dereference libstorj-1.0.3/test/tests.c:1437:12: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:1435:24: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:1435:24: note: Assignment 'file=calloc(len+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:1437:12: note: Null pointer dereference libstorj-1.0.3/test/tests.c:1438:5: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:1435:24: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:1435:24: note: Assignment 'file=calloc(len+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:1438:5: note: Null pointer dereference libstorj-1.0.3/test/tests.c:1442:22: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] libstorj-1.0.3/test/tests.c:1435:24: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:1435:24: note: Assignment 'file=calloc(len+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/tests.c:1442:22: note: Null pointer dereference libstorj-1.0.3/test/tests.c:1443:21: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] libstorj-1.0.3/test/tests.c:1442:21: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:1442:21: note: Assignment 'fp=fopen(file,"r+")', assigned value is 0 libstorj-1.0.3/test/tests.c:1443:21: note: Null pointer dereference libstorj-1.0.3/test/tests.c:1478:22: warning: If resource allocation fails, then there is a possible null pointer dereference: fp2 [nullPointerOutOfResources] libstorj-1.0.3/test/tests.c:1477:22: note: Assuming allocation function fails libstorj-1.0.3/test/tests.c:1477:22: note: Assignment 'fp2=fopen(file,"r+")', assigned value is 0 libstorj-1.0.3/test/tests.c:1478:22: note: Null pointer dereference libstorj-1.0.3/test/tests.c:476:9: style: Local variable 'shard_size' shadows outer function [shadowFunction] libstorj-1.0.3/src/utils.h:53:10: note: Shadowed declaration libstorj-1.0.3/test/tests.c:476:9: note: Shadow variable libstorj-1.0.3/test/tests.c:1222:14: style: Local variable 'shard_size' shadows outer function [shadowFunction] libstorj-1.0.3/src/utils.h:53:10: note: Shadowed declaration libstorj-1.0.3/test/tests.c:1222:14: note: Shadow variable libstorj-1.0.3/test/tests.c:40:17: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/test/tests.c:46:17: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/test/tests.c:189:11: style: Variable 't' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:227:40: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'check_resolve_file_progress' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/test/tests.c:675:44: note: You might need to cast the function pointer here libstorj-1.0.3/test/tests.c:227:40: note: Parameter 'handle' can be declared as pointer to const libstorj-1.0.3/test/tests.c:237:53: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'check_resolve_file' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/test/tests.c:633:44: note: You might need to cast the function pointer here libstorj-1.0.3/test/tests.c:237:53: note: Parameter 'handle' can be declared as pointer to const libstorj-1.0.3/test/tests.c:249:60: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'check_resolve_file_cancel' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/test/tests.c:676:44: note: You might need to cast the function pointer here libstorj-1.0.3/test/tests.c:249:60: note: Parameter 'handle' can be declared as pointer to const libstorj-1.0.3/test/tests.c:263:38: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'check_store_file_progress' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/test/tests.c:572:42: note: You might need to cast the function pointer here libstorj-1.0.3/test/tests.c:263:38: note: Parameter 'handle' can be declared as pointer to const libstorj-1.0.3/test/tests.c:271:60: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'check_store_file' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/test/tests.c:524:42: note: You might need to cast the function pointer here libstorj-1.0.3/test/tests.c:271:60: note: Parameter 'handle' can be declared as pointer to const libstorj-1.0.3/test/tests.c:288:67: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'check_store_file_cancel' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libstorj-1.0.3/test/tests.c:573:42: note: You might need to cast the function pointer here libstorj-1.0.3/test/tests.c:288:67: note: Parameter 'handle' can be declared as pointer to const libstorj-1.0.3/test/tests.c:466:35: style: Parameter 'filepath' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/test/tests.c:477:11: style: Variable 'bytes' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:621:11: style: Variable 'bucket_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:622:11: style: Variable 'file_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:664:11: style: Variable 'bucket_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:665:11: style: Variable 'file_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:725:11: style: Variable 'bucket_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:766:11: style: Variable 'bucket_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:787:11: style: Variable 'file_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:805:11: style: Variable 'frame_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1020:11: style: Variable 'mnemonic' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1022:11: style: Variable 'expected_seed' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1045:11: style: Variable 'mnemonic' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1047:11: style: Variable 'expected_seed' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1071:11: style: Variable 'mnemonic' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1073:11: style: Variable 'expected_seed' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1096:11: style: Variable 'mnemonic' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1097:11: style: Variable 'bucket_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1099:11: style: Variable 'expected_bucket_key' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1122:11: style: Variable 'mnemonic' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1123:11: style: Variable 'bucket_id' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1124:11: style: Variable 'file_name' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1125:11: style: Variable 'index' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1127:11: style: Variable 'expected_file_key' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1153:13: style: Variable 'expected' can be declared as const array [constVariable] libstorj-1.0.3/test/tests.c:1187:11: style: Variable 'expected' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1338:11: style: Variable 'expected_mnemonic' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1385:37: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/test/tests.c:1433:11: style: Variable 'file_name' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests.c:1124:21: style: Variable 'file_name' is assigned a value that is never used. [unreadVariable] libstorj-1.0.3/test/tests.c:1124:11: style: Variable 'file_name' is assigned a value that is never used. [unreadVariable] libstorj-1.0.3/test/tests_rs.c:54:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests_rs.c:89:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests_rs.c:123:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests_rs.c:131:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests_rs.c:279:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests_rs.c:324:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests_rs.c:480:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests_rs.c:494:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests_rs.c:590:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests_rs.c:603:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests_rs.c:648:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/tests_rs.c:705:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] libstorj-1.0.3/test/mockfarmer.c:230:20: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:229:26: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:229:26: note: Assignment 'page=calloc(shard_bytes+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:230:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:234:20: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:233:26: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:233:26: note: Assignment 'page=calloc(shard_bytes+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:234:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:238:20: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:237:26: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:237:26: note: Assignment 'page=calloc(shard_bytes+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:238:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:242:20: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:241:26: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:241:26: note: Assignment 'page=calloc(shard_bytes+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:242:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:249:24: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:248:30: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:248:30: note: Assignment 'page=calloc(shard_bytes_sent+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:249:24: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:252:24: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:251:30: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:251:30: note: Assignment 'page=calloc(shard_bytes+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:252:24: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:258:20: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:257:26: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:257:26: note: Assignment 'page=calloc(shard_bytes+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:258:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:262:20: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:261:26: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:261:26: note: Assignment 'page=calloc(shard_bytes+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:262:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:266:20: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:265:26: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:265:26: note: Assignment 'page=calloc(shard_bytes+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:266:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:270:20: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:269:26: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:269:26: note: Assignment 'page=calloc(shard_bytes+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:270:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:274:20: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:273:26: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:273:26: note: Assignment 'page=calloc(shard_bytes+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:274:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:278:20: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:277:26: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:277:26: note: Assignment 'page=calloc(shard_bytes+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:278:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:282:20: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:281:26: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:281:26: note: Assignment 'page=calloc(shard_bytes+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:282:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:286:20: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:285:26: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:285:26: note: Assignment 'page=calloc(shard_bytes+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:286:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:290:20: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:289:26: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:289:26: note: Assignment 'page=calloc(shard_bytes+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:290:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:295:20: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:294:26: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:294:26: note: Assignment 'page=calloc(shard_bytes+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:295:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:299:20: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:298:26: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:298:26: note: Assignment 'page=calloc(shard_bytes+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:299:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:303:20: warning: If memory allocation fails, then there is a possible null pointer dereference: page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:302:26: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:302:26: note: Assignment 'page=calloc(shard_bytes+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:303:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:313:20: warning: If memory allocation fails, then there is a possible null pointer dereference: sent_page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:312:31: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:312:31: note: Assignment 'sent_page=malloc(shard_bytes_sent+1)', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:313:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:317:20: warning: If memory allocation fails, then there is a possible null pointer dereference: sent_page [nullPointerOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:316:31: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:316:31: note: Assignment 'sent_page=calloc(shard_bytes_sent+1,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:317:20: note: Null pointer dereference libstorj-1.0.3/test/mockfarmer.c:94:37: style:inconclusive: Function 'mock_farmer_shard_server' argument 8 names different: declaration 'ptr' definition 'con_cls'. [funcArgNamesDifferent] libstorj-1.0.3/test/storjtests.h:36:37: note: Function 'mock_farmer_shard_server' argument 8 names different: declaration 'ptr' definition 'con_cls'. libstorj-1.0.3/test/mockfarmer.c:94:37: note: Function 'mock_farmer_shard_server' argument 8 names different: declaration 'ptr' definition 'con_cls'. libstorj-1.0.3/test/mockfarmer.c:36:11: style: Variable 'bytes' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/mockfarmer.c:96:26: style: Variable 'encoding' is assigned a value that is never used. [unreadVariable] libstorj-1.0.3/test/mockfarmer.c:96:17: style: Variable 'encoding' is assigned a value that is never used. [unreadVariable] libstorj-1.0.3/test/tests_rs.c:823:20: style: Condition 'nrFecBlocks>2' is always true [knownConditionTrueFalse] libstorj-1.0.3/test/tests_rs.c:770:16: note: Assignment 'size=1024*1024', assigned value is 1048576 libstorj-1.0.3/test/tests_rs.c:777:35: note: Assignment 'nrBlocks=(size+blockSize-1)/blockSize', assigned value is 3745 libstorj-1.0.3/test/tests_rs.c:778:53: note: Assignment 'nrBlocks=((nrBlocks+dataShards-1)/dataShards)*dataShards', assigned value is 3750 libstorj-1.0.3/test/tests_rs.c:779:18: note: Assignment 'n=nrBlocks/dataShards', assigned value is 125 libstorj-1.0.3/test/tests_rs.c:780:20: note: Assignment 'nrFecBlocks=n*parityShards', assigned value is 2625 libstorj-1.0.3/test/tests_rs.c:823:20: note: Condition 'nrFecBlocks>2' is always true libstorj-1.0.3/src/rs.c:638:14: warning: If memory allocation fails, then there is a possible null pointer dereference: inputs [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:790:36: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:790:19: note: Assignment 'data_blocks=(uint8_t**)malloc(nrBlocks*sizeof(uint8_t**))', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:801:30: note: Calling function 'reed_solomon_encode2', 2nd argument 'data_blocks' value is 0 libstorj-1.0.3/src/rs.c:895:33: note: Calling function 'reed_solomon_encode', 2nd argument 'data_blocks' value is 0 libstorj-1.0.3/src/rs.c:776:41: note: Calling function 'code_some_shards', 2nd argument 'data_blocks' value is 0 libstorj-1.0.3/src/rs.c:638:14: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:94:13: warning: If memory allocation fails, then there is a possible null pointer dereference: m1 [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:86:19: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:86:14: note: Assignment 'm1=(gf*)malloc(nrows*ncols)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:94:13: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:182:9: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:180:18: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:180:18: note: Assignment 'data=malloc(nr_blocks*block_size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:182:9: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:210:9: warning: If memory allocation fails, then there is a possible null pointer dereference: data_blocks [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:208:36: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:208:19: note: Assignment 'data_blocks=(uint8_t**)malloc(nr_blocks*sizeof(uint8_t*))', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:210:9: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:215:9: warning: If memory allocation fails, then there is a possible null pointer dereference: fec_blocks [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:213:35: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:213:18: note: Assignment 'fec_blocks=(uint8_t**)malloc(nr_fec_blocks*sizeof(uint8_t*))', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:215:9: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:249:9: warning: If memory allocation fails, then there is a possible null pointer dereference: data_blocks [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:247:36: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:247:19: note: Assignment 'data_blocks=(uint8_t**)malloc(nr_blocks*sizeof(uint8_t*))', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:249:9: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:254:9: warning: If memory allocation fails, then there is a possible null pointer dereference: fec_blocks [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:252:35: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:252:18: note: Assignment 'fec_blocks=(uint8_t**)malloc(nr_fec_blocks*sizeof(uint8_t*))', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:254:9: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:261:9: warning: If memory allocation fails, then there is a possible null pointer dereference: zilch [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:257:29: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:257:13: note: Assignment 'zilch=(uint8_t*)calloc(1,nr_shards)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:261:9: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:304:12: warning: If memory allocation fails, then there is a possible null pointer dereference: origin [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:303:30: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:303:14: note: Assignment 'origin=(uint8_t*)malloc(data_size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:304:12: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:453:12: warning: If memory allocation fails, then there is a possible null pointer dereference: origin [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:452:30: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:452:14: note: Assignment 'origin=(uint8_t*)malloc(data_size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:453:12: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:774:9: warning: If memory allocation fails, then there is a possible null pointer dereference: origin [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:771:20: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:771:20: note: Assignment 'origin=malloc(size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:774:9: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:784:12: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:783:18: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:783:18: note: Assignment 'data=malloc(data_size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:784:12: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:784:18: warning: If memory allocation fails, then there is a possible null pointer dereference: origin [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:771:20: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:771:20: note: Assignment 'origin=malloc(size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:784:18: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:792:9: warning: If memory allocation fails, then there is a possible null pointer dereference: data_blocks [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:790:36: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:790:19: note: Assignment 'data_blocks=(uint8_t**)malloc(nrBlocks*sizeof(uint8_t**))', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:792:9: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:797:9: warning: If memory allocation fails, then there is a possible null pointer dereference: fec_blocks [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:795:35: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:795:18: note: Assignment 'fec_blocks=(uint8_t**)malloc(nrFecBlocks*sizeof(uint8_t*))', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:797:9: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:803:16: warning: If memory allocation fails, then there is a possible null pointer dereference: origin [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:771:20: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:771:20: note: Assignment 'origin=malloc(size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:803:16: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:803:24: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:783:18: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:783:18: note: Assignment 'data=malloc(data_size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:803:24: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:820:9: warning: If memory allocation fails, then there is a possible null pointer dereference: zilch [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:807:29: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:807:13: note: Assignment 'zilch=(uint8_t*)calloc(1,nrShards)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:820:9: note: Null pointer dereference libstorj-1.0.3/test/tests_rs.c:827:13: warning: If memory allocation fails, then there is a possible null pointer dereference: zilch [nullPointerOutOfMemory] libstorj-1.0.3/test/tests_rs.c:807:29: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:807:13: note: Assignment 'zilch=(uint8_t*)calloc(1,nrShards)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:827:13: note: Null pointer dereference libstorj-1.0.3/src/rs.c:920:23: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/test/tests_rs.c:807:29: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:807:13: note: Assignment 'zilch=(uint8_t*)calloc(1,nrShards)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:832:59: note: Calling function 'reed_solomon_reconstruct', 4th argument 'zilch' value is 0 libstorj-1.0.3/src/rs.c:920:23: note: Null pointer addition libstorj-1.0.3/test/tests_rs.c:184:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/test/tests_rs.c:180:18: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:180:18: note: Assignment 'data=malloc(nr_blocks*block_size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:184:17: note: Null pointer addition libstorj-1.0.3/test/tests_rs.c:785:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/test/tests_rs.c:783:18: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:783:18: note: Assignment 'data=malloc(data_size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:785:17: note: Null pointer addition libstorj-1.0.3/test/tests_rs.c:797:30: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/test/tests_rs.c:783:18: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:783:18: note: Assignment 'data=malloc(data_size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:797:30: note: Null pointer addition libstorj-1.0.3/test/tests_rs.c:819:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/test/tests_rs.c:783:18: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:783:18: note: Assignment 'data=malloc(data_size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:819:21: note: Null pointer addition libstorj-1.0.3/test/tests_rs.c:41:20: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/test/tests_rs.c:41:31: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/test/tests_rs.c:120:9: style: Variable 'out' can be declared as pointer to const [constVariablePointer] libstorj-1.0.3/test/tests_rs.c:166:43: style: Parameter 'rs' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/test/tests_rs.c:231:14: style: Parameter 'erases' can be declared as pointer to const [constParameterPointer] libstorj-1.0.3/src/rs.c:516:24: style: Parameter 'matrix' can be declared as pointer to const [constParameterPointer] diff: 2.17.0 libstorj-1.0.3/src/bip39.c:203:17: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/src/bip39.c:201:27: note: Assuming allocation function fails libstorj-1.0.3/src/bip39.c:201:27: note: Assignment 'salt=calloc(8+256,sizeof(char))', assigned value is 0 libstorj-1.0.3/src/bip39.c:203:17: note: Null pointer addition head libstorj-1.0.3/src/bip39.c:203:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/src/bip39.c:201:27: note: Assuming allocation function fails libstorj-1.0.3/src/bip39.c:201:27: note: Assignment 'salt=calloc(8+256,sizeof(char))', assigned value is 0 libstorj-1.0.3/src/bip39.c:203:17: note: Null pointer addition head libstorj-1.0.3/src/cli.c:257:16: style: Variable 'RETURN' is assigned a value that is never used. [unreadVariable] head libstorj-1.0.3/src/downloader.c:84:9: style: Variable 'excluded_farmer_ids_len' is assigned a value that is never used. [unreadVariable] 2.17.0 libstorj-1.0.3/src/rs.c:920:23: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/test/tests_rs.c:807:29: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:807:13: note: Assignment 'zilch=(uint8_t*)calloc(1,nrShards)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:832:59: note: Calling function 'reed_solomon_reconstruct', 4th argument 'zilch' value is 0 libstorj-1.0.3/src/rs.c:920:23: note: Null pointer addition head libstorj-1.0.3/src/rs.c:920:23: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/test/tests_rs.c:807:29: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:807:13: note: Assignment 'zilch=(uint8_t*)calloc(1,nrShards)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:832:59: note: Calling function 'reed_solomon_reconstruct', 4th argument 'zilch' value is 0 libstorj-1.0.3/src/rs.c:920:23: note: Null pointer addition head libstorj-1.0.3/src/storj.c:628:17: error: Uninitialized variable: sb [uninitvar] head libstorj-1.0.3/src/storj.c:794:9: style: Variable 'pass_length' is assigned a value that is never used. [unreadVariable] head libstorj-1.0.3/src/storj.c:802:9: style: Variable 'mnemonic_length' is assigned a value that is never used. [unreadVariable] 2.17.0 libstorj-1.0.3/test/mockfarmer.c:38:21: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/test/mockfarmer.c:35:18: note: Assuming allocation function fails libstorj-1.0.3/test/mockfarmer.c:35:18: note: Assignment 'data=calloc(total_size,sizeof(char))', assigned value is 0 libstorj-1.0.3/test/mockfarmer.c:38:21: note: Null pointer addition head libstorj-1.0.3/test/mockfarmer.c:96:17: style: Variable 'encoding' is assigned a value that is never used. [unreadVariable] head libstorj-1.0.3/test/tests.c:1124:11: style: Variable 'file_name' is assigned a value that is never used. [unreadVariable] 2.17.0 libstorj-1.0.3/test/tests_rs.c:184:17: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/test/tests_rs.c:180:18: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:180:18: note: Assignment 'data=malloc(nr_blocks*block_size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:184:17: note: Null pointer addition head libstorj-1.0.3/test/tests_rs.c:184:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/test/tests_rs.c:180:18: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:180:18: note: Assignment 'data=malloc(nr_blocks*block_size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:184:17: note: Null pointer addition 2.17.0 libstorj-1.0.3/test/tests_rs.c:785:17: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/test/tests_rs.c:783:18: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:783:18: note: Assignment 'data=malloc(data_size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:785:17: note: Null pointer addition head libstorj-1.0.3/test/tests_rs.c:785:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/test/tests_rs.c:783:18: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:783:18: note: Assignment 'data=malloc(data_size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:785:17: note: Null pointer addition 2.17.0 libstorj-1.0.3/test/tests_rs.c:797:30: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/test/tests_rs.c:783:18: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:783:18: note: Assignment 'data=malloc(data_size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:797:30: note: Null pointer addition head libstorj-1.0.3/test/tests_rs.c:797:30: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/test/tests_rs.c:783:18: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:783:18: note: Assignment 'data=malloc(data_size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:797:30: note: Null pointer addition 2.17.0 libstorj-1.0.3/test/tests_rs.c:819:21: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/test/tests_rs.c:783:18: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:783:18: note: Assignment 'data=malloc(data_size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:819:21: note: Null pointer addition head libstorj-1.0.3/test/tests_rs.c:819:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libstorj-1.0.3/test/tests_rs.c:783:18: note: Assuming allocation function fails libstorj-1.0.3/test/tests_rs.c:783:18: note: Assignment 'data=malloc(data_size)', assigned value is 0 libstorj-1.0.3/test/tests_rs.c:819:21: note: Null pointer addition DONE