2026-10-06 04:05 ftp://ftp.de.debian.org/debian/pool/main/d/darknet/darknet_0.0.0+git20180914.61c9d02e.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=opencv2 --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.12.107+deb13-amd64-x86_64-with-glibc2.41 python: 3.12.14 client-version: 1.4.0 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.22.0 head-info: 746b3a7 (2026-10-04 08:53:56 +0200) count: 1036 1038 elapsed-time: 7.5 7.3 head-timing-info: old-timing-info: head results: darknet/examples/art.c:5:21: style: Parameter 'cfgfile' can be declared as pointer to const [constParameterPointer] darknet/examples/art.c:5:36: style: Parameter 'weightfile' can be declared as pointer to const [constParameterPointer] darknet/examples/attention.c:40:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable output [valueFlowBailoutIncompleteVar] darknet/examples/attention.c:73:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable learning_rate [valueFlowBailoutIncompleteVar] darknet/examples/attention.c:405:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] darknet/examples/attention.c:437:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/attention.c:408:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] darknet/examples/attention.c:72:9: warning: If memory allocation fails, then there is a possible null pointer dereference: nets [nullPointerOutOfMemory] darknet/examples/attention.c:63:28: note: Assuming allocation function fails darknet/examples/attention.c:63:28: note: Assignment 'nets=calloc(ngpus,sizeof(network*))', assigned value is 0 darknet/examples/attention.c:72:9: note: Null pointer dereference darknet/examples/attention.c:73:9: warning: If memory allocation fails, then there is a possible null pointer dereference: nets [nullPointerOutOfMemory] darknet/examples/attention.c:63:28: note: Assuming allocation function fails darknet/examples/attention.c:63:28: note: Assignment 'nets=calloc(ngpus,sizeof(network*))', assigned value is 0 darknet/examples/attention.c:73:9: note: Null pointer dereference darknet/examples/attention.c:76:20: warning: If memory allocation fails, then there is a possible null pointer dereference: nets [nullPointerOutOfMemory] darknet/examples/attention.c:63:28: note: Assuming allocation function fails darknet/examples/attention.c:63:28: note: Assignment 'nets=calloc(ngpus,sizeof(network*))', assigned value is 0 darknet/examples/attention.c:76:20: note: Null pointer dereference darknet/examples/attention.c:148:51: warning: If memory allocation fails, then there is a possible null pointer dereference: nets [nullPointerOutOfMemory] darknet/examples/attention.c:63:28: note: Assuming allocation function fails darknet/examples/attention.c:63:28: note: Assignment 'nets=calloc(ngpus,sizeof(network*))', assigned value is 0 darknet/examples/attention.c:148:51: note: Null pointer dereference darknet/examples/attention.c:158:13: warning: If memory allocation fails, then there is a possible null pointer dereference: inds [nullPointerOutOfMemory] darknet/examples/attention.c:155:27: note: Assuming allocation function fails darknet/examples/attention.c:155:27: note: Assignment 'inds=calloc(resized.y.rows,sizeof(int))', assigned value is 0 darknet/examples/attention.c:158:13: note: Null pointer dereference darknet/examples/attention.c:28:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] darknet/examples/attention.c:23:22: note: Assuming allocation function fails darknet/examples/attention.c:23:22: note: Assignment 'X=calloc(net->batch*test.X.cols,sizeof(float))', assigned value is 0 darknet/examples/attention.c:27:20: note: Assuming condition is false darknet/examples/attention.c:28:21: note: Null pointer addition darknet/examples/attention.c:29:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] darknet/examples/attention.c:24:22: note: Assuming allocation function fails darknet/examples/attention.c:24:22: note: Assignment 'y=calloc(net->batch*test.y.cols,sizeof(float))', assigned value is 0 darknet/examples/attention.c:27:20: note: Assuming condition is false darknet/examples/attention.c:29:21: note: Null pointer addition darknet/examples/attention.c:299:20: style: Local variable 'pred' shadows outer variable [shadowVariable] darknet/examples/attention.c:281:16: note: Shadowed variable darknet/examples/attention.c:299:20: note: Shadow local variable darknet/examples/attention.c:83:11: style: Variable 'backup_directory' can be declared as pointer to const [constVariablePointer] darknet/examples/attention.c:382:78: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] darknet/examples/attention.c:452:11: style: Variable 'layer_s' can be declared as pointer to const [constVariablePointer] darknet/examples/attention.c:43:19: style: Variable 't' is assigned a value that is never used. [unreadVariable] darknet/examples/attention.c:179:18: style: Variable 'im' is assigned a value that is never used. [unreadVariable] darknet/examples/attention.c:394:11: style: Variable 'i' is assigned a value that is never used. [unreadVariable] darknet/examples/attention.c:452:19: style: Variable 'layer_s' is assigned a value that is never used. [unreadVariable] darknet/examples/captcha.c:11:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECRET_NUM [valueFlowBailoutIncompleteVar] darknet/examples/captcha.c:61:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLASSIFICATION_DATA [valueFlowBailoutIncompleteVar] darknet/examples/captcha.c:109:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] darknet/examples/captcha.c:143:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/captcha.c:338:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/captcha.c:40:9: style: Condition 'solved' is always true [knownConditionTrueFalse] darknet/examples/captcha.c:37:18: note: Assignment 'solved=1', assigned value is 1 darknet/examples/captcha.c:40:9: note: Condition 'solved' is always true darknet/examples/captcha.c:111:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] darknet/examples/captcha.c:31:11: style: Variable 'base' can be declared as pointer to const [constVariablePointer] darknet/examples/captcha.c:93:58: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] darknet/examples/captcha.c:115:16: style: Variable 'predictions' can be declared as pointer to const [constVariablePointer] darknet/examples/captcha.c:130:59: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] darknet/examples/captcha.c:146:16: style: Variable 'predictions' can be declared as pointer to const [constVariablePointer] darknet/examples/captcha.c:98:11: style: Variable 'i' is assigned a value that is never used. [unreadVariable] darknet/examples/cifar.c:160:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PNG [valueFlowBailoutIncompleteVar] darknet/examples/cifar.c:191:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/cifar.c:215:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/cifar.c:224:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/cifar.c:235:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/cifar.c:12:11: style: Variable 'backup_directory' can be declared as pointer to const [constVariablePointer] darknet/examples/cifar.c:57:11: style: Variable 'backup_directory' can be declared as pointer to const [constVariablePointer] darknet/examples/cifar.c:142:12: style: Variable 'acc' can be declared as pointer to const [constVariablePointer] darknet/examples/cifar.c:151:7: style: Variable 'labels' can be declared as const array [constVariable] darknet/examples/cifar.c:137:20: style: Variable 'avg_top5' is assigned a value that is never used. [unreadVariable] darknet/examples/cifar.c:144:14: style: Variable 'avg_top5' is assigned a value that is never used. [unreadVariable] darknet/examples/classifier.c:36:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable learning_rate [valueFlowBailoutIncompleteVar] darknet/examples/classifier.c:208:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OLD_CLASSIFICATION_DATA [valueFlowBailoutIncompleteVar] darknet/examples/classifier.c:286:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] darknet/examples/classifier.c:505:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] darknet/examples/classifier.c:583:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] darknet/examples/classifier.c:685:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/classifier.c:719:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OLD_CLASSIFICATION_DATA [valueFlowBailoutIncompleteVar] darknet/examples/classifier.c:1063:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/classifier.c:728:17: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] darknet/examples/classifier.c:722:33: note: outer condition: curr darknet/examples/lsd.c:423:34: note: Assuming condition is false darknet/examples/lsd.c:460:50: note: Uninitialized variable: input darknet/examples/lsd.c:497:50: error: Uninitialized variable: input [uninitvar] darknet/examples/lsd.c:477:19: note: Assignment 'input=buff', assigned value is darknet/examples/lsd.c:497:50: note: Uninitialized variable: input darknet/examples/nightmare.c:292:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/nightmare.c:7:23: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] darknet/examples/nightmare.c:312:11: style: Variable 'prefix' can be declared as pointer to const [constVariablePointer] darknet/examples/nightmare.c:317:11: style: Variable 'cfgbase' can be declared as pointer to const [constVariablePointer] darknet/examples/nightmare.c:318:11: style: Variable 'imbase' can be declared as pointer to const [constVariablePointer] darknet/examples/regressor.c:23:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable learning_rate [valueFlowBailoutIncompleteVar] darknet/examples/regressor.c:130:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] darknet/examples/regressor.c:202:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/regressor.c:133:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] darknet/examples/regressor.c:22:9: warning: If memory allocation fails, then there is a possible null pointer dereference: nets [nullPointerOutOfMemory] darknet/examples/regressor.c:13:28: note: Assuming allocation function fails darknet/examples/regressor.c:13:28: note: Assignment 'nets=calloc(ngpus,sizeof(network*))', assigned value is 0 darknet/examples/regressor.c:22:9: note: Null pointer dereference darknet/examples/regressor.c:23:9: warning: If memory allocation fails, then there is a possible null pointer dereference: nets [nullPointerOutOfMemory] darknet/examples/regressor.c:13:28: note: Assuming allocation function fails darknet/examples/regressor.c:13:28: note: Assignment 'nets=calloc(ngpus,sizeof(network*))', assigned value is 0 darknet/examples/regressor.c:23:9: note: Null pointer dereference darknet/examples/regressor.c:26:20: warning: If memory allocation fails, then there is a possible null pointer dereference: nets [nullPointerOutOfMemory] darknet/examples/regressor.c:13:28: note: Assuming allocation function fails darknet/examples/regressor.c:13:28: note: Assignment 'nets=calloc(ngpus,sizeof(network*))', assigned value is 0 darknet/examples/regressor.c:26:20: note: Null pointer dereference darknet/examples/regressor.c:220:13: warning: If memory allocation fails, then there is a possible null pointer dereference: gpus [nullPointerOutOfMemory] darknet/examples/regressor.c:218:22: note: Assuming allocation function fails darknet/examples/regressor.c:218:22: note: Assignment 'gpus=calloc(ngpus,sizeof(int))', assigned value is 0 darknet/examples/regressor.c:220:13: note: Null pointer dereference darknet/examples/regressor.c:33:11: style: Variable 'backup_directory' can be declared as pointer to const [constVariablePointer] darknet/examples/regressor.c:116:63: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] darknet/examples/regressor.c:140:16: style: Variable 'predictions' can be declared as pointer to const [constVariablePointer] darknet/examples/regressor.c:150:27: style: Parameter 'datacfg' can be declared as pointer to const [constParameterPointer] darknet/examples/regressor.c:150:42: style: Parameter 'cfgfile' can be declared as pointer to const [constParameterPointer] darknet/examples/regressor.c:150:57: style: Parameter 'weightfile' can be declared as pointer to const [constParameterPointer] darknet/examples/regressor.c:234:11: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] darknet/examples/regressor.c:208:13: style: Variable 'gpu' is assigned a value that is never used. [unreadVariable] darknet/examples/rnn.c:172:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/rnn.c:255:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/rnn.c:309:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/rnn.c:354:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/rnn.c:389:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/rnn.c:438:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/rnn.c:476:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/rnn.c:522:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/rnn.c:112:23: style: Comparing expression of type 'unsigned char' against value 255. Condition is always false. [compareValueOutOfTypeRangeError] darknet/examples/rnn.c:112:50: style: Comparing expression of type 'unsigned char' against value 255. Condition is always false. [compareValueOutOfTypeRangeError] darknet/examples/rnn.c:142:23: style: Comparing expression of type 'unsigned char' against value 255. Condition is always false. [compareValueOutOfTypeRangeError] darknet/examples/rnn.c:142:50: style: Comparing expression of type 'unsigned char' against value 255. Condition is always false. [compareValueOutOfTypeRangeError] darknet/examples/rnn.c:36:13: error: Common realloc mistake: 'd' nulled but not freed upon failure [memleakOnRealloc] darknet/examples/rnn.c:42:5: error: Common realloc mistake: 'd' nulled but not freed upon failure [memleakOnRealloc] darknet/examples/rnn.c:58:13: error: Common realloc mistake: 'd' nulled but not freed upon failure [memleakOnRealloc] darknet/examples/rnn.c:64:5: error: Common realloc mistake: 'd' nulled but not freed upon failure [memleakOnRealloc] darknet/examples/rnn.c:18:9: warning: If memory allocation fails, then there is a possible null pointer dereference: contents [nullPointerOutOfMemory] darknet/examples/rnn.c:14:38: note: Assuming allocation function fails darknet/examples/rnn.c:14:38: note: Assignment 'contents=calloc(*n,sizeof(char*))', assigned value is 0 darknet/examples/rnn.c:18:9: note: Null pointer dereference darknet/examples/rnn.c:41:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] darknet/examples/rnn.c:28:21: note: Assuming allocation function fails darknet/examples/rnn.c:28:21: note: Assignment 'fp=fopen(filename,"r")', assigned value is 0 darknet/examples/rnn.c:41:12: note: Null pointer dereference darknet/examples/rnn.c:63:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] darknet/examples/rnn.c:51:21: note: Assuming allocation function fails darknet/examples/rnn.c:51:21: note: Assignment 'fp=fopen(filename,"r")', assigned value is 0 darknet/examples/rnn.c:63:12: note: Null pointer dereference darknet/examples/rnn.c:80:13: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] darknet/examples/rnn.c:72:22: note: Assuming allocation function fails darknet/examples/rnn.c:72:22: note: Assignment 'x=calloc(batch*steps*characters,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:80:13: note: Null pointer dereference darknet/examples/rnn.c:81:13: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] darknet/examples/rnn.c:73:22: note: Assuming allocation function fails darknet/examples/rnn.c:73:22: note: Assignment 'y=calloc(batch*steps*characters,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:81:13: note: Null pointer dereference darknet/examples/rnn.c:109:13: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] darknet/examples/rnn.c:99:22: note: Assuming allocation function fails darknet/examples/rnn.c:99:22: note: Assignment 'x=calloc(batch*steps*characters,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:109:13: note: Null pointer dereference darknet/examples/rnn.c:110:13: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] darknet/examples/rnn.c:100:22: note: Assuming allocation function fails darknet/examples/rnn.c:100:22: note: Assignment 'y=calloc(batch*steps*characters,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:110:13: note: Null pointer dereference darknet/examples/rnn.c:134:40: warning: If memory allocation fails, then there is a possible null pointer dereference: offsets [nullPointerOutOfMemory] darknet/examples/rnn.c:184:29: note: Assuming allocation function fails darknet/examples/rnn.c:184:29: note: Assignment 'offsets=calloc(streams,sizeof(unsigned long))', assigned value is 0 darknet/examples/rnn.c:198:36: note: Calling function 'get_rnn_data', 2nd argument 'offsets' value is 0 darknet/examples/rnn.c:134:40: note: Null pointer dereference darknet/examples/rnn.c:135:40: warning: If memory allocation fails, then there is a possible null pointer dereference: offsets [nullPointerOutOfMemory] darknet/examples/rnn.c:184:29: note: Assuming allocation function fails darknet/examples/rnn.c:184:29: note: Assignment 'offsets=calloc(streams,sizeof(unsigned long))', assigned value is 0 darknet/examples/rnn.c:198:36: note: Calling function 'get_rnn_data', 2nd argument 'offsets' value is 0 darknet/examples/rnn.c:135:40: note: Null pointer dereference darknet/examples/rnn.c:137:13: warning: If memory allocation fails, then there is a possible null pointer dereference: x [nullPointerOutOfMemory] darknet/examples/rnn.c:129:22: note: Assuming allocation function fails darknet/examples/rnn.c:129:22: note: Assignment 'x=calloc(batch*steps*characters,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:137:13: note: Null pointer dereference darknet/examples/rnn.c:138:13: warning: If memory allocation fails, then there is a possible null pointer dereference: y [nullPointerOutOfMemory] darknet/examples/rnn.c:130:22: note: Assuming allocation function fails darknet/examples/rnn.c:130:22: note: Assignment 'y=calloc(batch*steps*characters,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:138:13: note: Null pointer dereference darknet/examples/rnn.c:140:13: warning: If memory allocation fails, then there is a possible null pointer dereference: offsets [nullPointerOutOfMemory] darknet/examples/rnn.c:184:29: note: Assuming allocation function fails darknet/examples/rnn.c:184:29: note: Assignment 'offsets=calloc(streams,sizeof(unsigned long))', assigned value is 0 darknet/examples/rnn.c:198:36: note: Calling function 'get_rnn_data', 2nd argument 'offsets' value is 0 darknet/examples/rnn.c:140:13: note: Null pointer dereference darknet/examples/rnn.c:140:27: warning: If memory allocation fails, then there is a possible null pointer dereference: offsets [nullPointerOutOfMemory] darknet/examples/rnn.c:184:29: note: Assuming allocation function fails darknet/examples/rnn.c:184:29: note: Assignment 'offsets=calloc(streams,sizeof(unsigned long))', assigned value is 0 darknet/examples/rnn.c:198:36: note: Calling function 'get_rnn_data', 2nd argument 'offsets' value is 0 darknet/examples/rnn.c:140:27: note: Null pointer dereference darknet/examples/rnn.c:187:9: warning: If memory allocation fails, then there is a possible null pointer dereference: offsets [nullPointerOutOfMemory] darknet/examples/rnn.c:184:29: note: Assuming allocation function fails darknet/examples/rnn.c:184:29: note: Assignment 'offsets=calloc(streams,sizeof(unsigned long))', assigned value is 0 darknet/examples/rnn.c:187:9: note: Null pointer dereference darknet/examples/rnn.c:276:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] darknet/examples/rnn.c:264:26: note: Assuming allocation function fails darknet/examples/rnn.c:264:26: note: Assignment 'input=calloc(inputs,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:276:9: note: Null pointer dereference darknet/examples/rnn.c:278:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] darknet/examples/rnn.c:264:26: note: Assuming allocation function fails darknet/examples/rnn.c:264:26: note: Assignment 'input=calloc(inputs,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:278:9: note: Null pointer dereference darknet/examples/rnn.c:284:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] darknet/examples/rnn.c:264:26: note: Assuming allocation function fails darknet/examples/rnn.c:264:26: note: Assignment 'input=calloc(inputs,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:284:9: note: Null pointer dereference darknet/examples/rnn.c:286:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] darknet/examples/rnn.c:264:26: note: Assuming allocation function fails darknet/examples/rnn.c:264:26: note: Assignment 'input=calloc(inputs,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:286:9: note: Null pointer dereference darknet/examples/rnn.c:366:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] darknet/examples/rnn.c:362:26: note: Assuming allocation function fails darknet/examples/rnn.c:362:26: note: Assignment 'input=calloc(inputs,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:366:9: note: Null pointer dereference darknet/examples/rnn.c:368:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] darknet/examples/rnn.c:362:26: note: Assuming allocation function fails darknet/examples/rnn.c:362:26: note: Assignment 'input=calloc(inputs,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:368:9: note: Null pointer dereference darknet/examples/rnn.c:402:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] darknet/examples/rnn.c:398:26: note: Assuming allocation function fails darknet/examples/rnn.c:398:26: note: Assignment 'input=calloc(inputs,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:402:9: note: Null pointer dereference darknet/examples/rnn.c:404:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] darknet/examples/rnn.c:398:26: note: Assuming allocation function fails darknet/examples/rnn.c:398:26: note: Assignment 'input=calloc(inputs,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:404:9: note: Null pointer dereference darknet/examples/rnn.c:451:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] darknet/examples/rnn.c:447:26: note: Assuming allocation function fails darknet/examples/rnn.c:447:26: note: Assignment 'input=calloc(inputs,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:451:9: note: Null pointer dereference darknet/examples/rnn.c:453:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] darknet/examples/rnn.c:447:26: note: Assuming allocation function fails darknet/examples/rnn.c:447:26: note: Assignment 'input=calloc(inputs,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:453:9: note: Null pointer dereference darknet/examples/rnn.c:490:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] darknet/examples/rnn.c:483:26: note: Assuming allocation function fails darknet/examples/rnn.c:483:26: note: Assignment 'input=calloc(inputs,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:490:13: note: Null pointer dereference darknet/examples/rnn.c:492:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] darknet/examples/rnn.c:483:26: note: Assuming allocation function fails darknet/examples/rnn.c:483:26: note: Assignment 'input=calloc(inputs,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:492:13: note: Null pointer dereference darknet/examples/rnn.c:498:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] darknet/examples/rnn.c:483:26: note: Assuming allocation function fails darknet/examples/rnn.c:483:26: note: Assignment 'input=calloc(inputs,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:498:13: note: Null pointer dereference darknet/examples/rnn.c:500:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] darknet/examples/rnn.c:483:26: note: Assuming allocation function fails darknet/examples/rnn.c:483:26: note: Assignment 'input=calloc(inputs,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:500:13: note: Null pointer dereference darknet/examples/rnn.c:503:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] darknet/examples/rnn.c:483:26: note: Assuming allocation function fails darknet/examples/rnn.c:483:26: note: Assignment 'input=calloc(inputs,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:503:9: note: Null pointer dereference darknet/examples/rnn.c:505:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: input [nullPointerOutOfMemory] darknet/examples/rnn.c:483:26: note: Assuming allocation function fails darknet/examples/rnn.c:483:26: note: Assignment 'input=calloc(inputs,sizeof(float))', assigned value is 0 darknet/examples/rnn.c:505:9: note: Null pointer dereference darknet/examples/rnn.c:112:35: style: Checking if unsigned expression 'curr' is less than zero. [unsignedLessThanZero] darknet/examples/rnn.c:112:62: style: Checking if unsigned expression 'next' is less than zero. [unsignedLessThanZero] darknet/examples/rnn.c:142:35: style: Checking if unsigned expression 'curr' is less than zero. [unsignedLessThanZero] darknet/examples/rnn.c:142:62: style: Checking if unsigned expression 'next' is less than zero. [unsignedLessThanZero] darknet/examples/rnn.c:12:11: style: Variable 'paths' can be declared as pointer to const [constVariablePointer] darknet/examples/rnn.c:24:32: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] darknet/examples/rnn.c:47:26: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] darknet/examples/rnn.c:70:36: style: Parameter 'tokens' can be declared as pointer to const [constParameterPointer] darknet/examples/rnn.c:127:40: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] darknet/examples/rnn.c:170:11: style: Variable 'backup_directory' can be declared as pointer to const [constVariablePointer] darknet/examples/rnn.c:171:11: style: Variable 'base' can be declared as pointer to const [constVariablePointer] darknet/examples/rnn.c:245:68: style: Parameter 'seed' can be declared as pointer to const [constParameterPointer] darknet/examples/rnn.c:254:11: style: Variable 'base' can be declared as pointer to const [constVariablePointer] darknet/examples/rnn.c:308:11: style: Variable 'base' can be declared as pointer to const [constVariablePointer] darknet/examples/rnn.c:353:11: style: Variable 'base' can be declared as pointer to const [constVariablePointer] darknet/examples/rnn.c:386:62: style: Parameter 'seed' can be declared as pointer to const [constParameterPointer] darknet/examples/rnn.c:388:11: style: Variable 'base' can be declared as pointer to const [constVariablePointer] darknet/examples/rnn.c:416:16: style: Variable 'out' can be declared as pointer to const [constVariablePointer] darknet/examples/rnn.c:435:60: style: Parameter 'seed' can be declared as pointer to const [constParameterPointer] darknet/examples/rnn.c:437:11: style: Variable 'base' can be declared as pointer to const [constVariablePointer] darknet/examples/rnn.c:465:16: style: Variable 'out' can be declared as pointer to const [constVariablePointer] darknet/examples/rnn.c:473:58: style: Parameter 'seed' can be declared as pointer to const [constParameterPointer] darknet/examples/rnn.c:475:11: style: Variable 'base' can be declared as pointer to const [constVariablePointer] darknet/examples/rnn.c:316:11: style: Variable 'c' is assigned a value that is never used. [unreadVariable] darknet/examples/segmenter.c:23:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable learning_rate [valueFlowBailoutIncompleteVar] darknet/examples/segmenter.c:145:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] darknet/examples/segmenter.c:216:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/segmenter.c:148:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] darknet/examples/segmenter.c:22:9: warning: If memory allocation fails, then there is a possible null pointer dereference: nets [nullPointerOutOfMemory] darknet/examples/segmenter.c:13:28: note: Assuming allocation function fails darknet/examples/segmenter.c:13:28: note: Assignment 'nets=calloc(ngpus,sizeof(network*))', assigned value is 0 darknet/examples/segmenter.c:22:9: note: Null pointer dereference darknet/examples/segmenter.c:23:9: warning: If memory allocation fails, then there is a possible null pointer dereference: nets [nullPointerOutOfMemory] darknet/examples/segmenter.c:13:28: note: Assuming allocation function fails darknet/examples/segmenter.c:13:28: note: Assignment 'nets=calloc(ngpus,sizeof(network*))', assigned value is 0 darknet/examples/segmenter.c:23:9: note: Null pointer dereference darknet/examples/segmenter.c:26:20: warning: If memory allocation fails, then there is a possible null pointer dereference: nets [nullPointerOutOfMemory] darknet/examples/segmenter.c:13:28: note: Assuming allocation function fails darknet/examples/segmenter.c:13:28: note: Assignment 'nets=calloc(ngpus,sizeof(network*))', assigned value is 0 darknet/examples/segmenter.c:26:20: note: Null pointer dereference darknet/examples/segmenter.c:234:13: warning: If memory allocation fails, then there is a possible null pointer dereference: gpus [nullPointerOutOfMemory] darknet/examples/segmenter.c:232:22: note: Assuming allocation function fails darknet/examples/segmenter.c:232:22: note: Assignment 'gpus=calloc(ngpus,sizeof(int))', assigned value is 0 darknet/examples/segmenter.c:234:13: note: Null pointer dereference darknet/examples/segmenter.c:38:11: style: Variable 'backup_directory' can be declared as pointer to const [constVariablePointer] darknet/examples/segmenter.c:131:72: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] darknet/examples/segmenter.c:155:16: style: Variable 'predictions' can be declared as pointer to const [constVariablePointer] darknet/examples/segmenter.c:170:27: style: Parameter 'datacfg' can be declared as pointer to const [constParameterPointer] darknet/examples/segmenter.c:170:42: style: Parameter 'cfg' can be declared as pointer to const [constParameterPointer] darknet/examples/segmenter.c:170:53: style: Parameter 'weights' can be declared as pointer to const [constParameterPointer] darknet/examples/segmenter.c:222:13: style: Variable 'gpu' is assigned a value that is never used. [unreadVariable] darknet/examples/super.c:30:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUPER_DATA [valueFlowBailoutIncompleteVar] darknet/examples/super.c:81:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] darknet/examples/super.c:107:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/super.c:84:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] darknet/examples/super.c:6:11: style: Variable 'backup_directory' can be declared as pointer to const [constVariablePointer] darknet/examples/super.c:8:11: style: Variable 'base' can be declared as pointer to const [constVariablePointer] darknet/examples/super.c:67:56: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] darknet/examples/swag.c:41:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REGION_DATA [valueFlowBailoutIncompleteVar] darknet/examples/swag.c:76:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/swag.c:7:11: style: Variable 'backup_directory' can be declared as pointer to const [constVariablePointer] darknet/examples/swag.c:9:11: style: Variable 'base' can be declared as pointer to const [constVariablePointer] darknet/examples/tag.c:35:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TAG_DATA [valueFlowBailoutIncompleteVar] darknet/examples/tag.c:100:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] darknet/examples/tag.c:129:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/tag.c:103:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] darknet/examples/tag.c:8:11: style: Variable 'backup_directory' can be declared as pointer to const [constVariablePointer] darknet/examples/tag.c:83:54: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] darknet/examples/tag.c:112:16: style: Variable 'predictions' can be declared as pointer to const [constVariablePointer] darknet/examples/tag.c:88:11: style: Variable 'i' is assigned a value that is never used. [unreadVariable] darknet/examples/voxel.c:69:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SUPER_DATA [valueFlowBailoutIncompleteVar] darknet/examples/voxel.c:123:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] darknet/examples/voxel.c:148:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/voxel.c:126:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] darknet/examples/voxel.c:3:26: style: Parameter 'lfile' can be declared as pointer to const [constParameterPointer] darknet/examples/voxel.c:3:39: style: Parameter 'rfile' can be declared as pointer to const [constParameterPointer] darknet/examples/voxel.c:3:52: style: Parameter 'prefix' can be declared as pointer to const [constParameterPointer] darknet/examples/voxel.c:42:11: style: Variable 'backup_directory' can be declared as pointer to const [constVariablePointer] darknet/examples/voxel.c:44:11: style: Variable 'base' can be declared as pointer to const [constVariablePointer] darknet/examples/voxel.c:106:56: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] darknet/examples/writing.c:34:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WRITING_DATA [valueFlowBailoutIncompleteVar] darknet/examples/writing.c:98:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] darknet/examples/writing.c:134:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/writing.c:101:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] darknet/examples/writing.c:5:11: style: Variable 'backup_directory' can be declared as pointer to const [constVariablePointer] darknet/examples/writing.c:8:11: style: Variable 'base' can be declared as pointer to const [constVariablePointer] darknet/examples/writing.c:82:58: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] darknet/examples/yolo.c:40:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REGION_DATA [valueFlowBailoutIncompleteVar] darknet/examples/yolo.c:81:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] darknet/examples/yolo.c:102:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/yolo.c:186:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/yolo.c:281:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] darknet/examples/yolo.c:314:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/examples/yolo.c:284:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] darknet/examples/yolo.c:119:9: warning: If memory allocation fails, then there is a possible null pointer dereference: fps [nullPointerOutOfMemory] darknet/examples/yolo.c:115:24: note: Assuming allocation function fails darknet/examples/yolo.c:115:24: note: Assignment 'fps=calloc(classes,sizeof(FILE*))', assigned value is 0 darknet/examples/yolo.c:119:9: note: Null pointer dereference darknet/examples/yolo.c:146:9: warning: If memory allocation fails, then there is a possible null pointer dereference: thr [nullPointerOutOfMemory] darknet/examples/yolo.c:135:28: note: Assuming allocation function fails darknet/examples/yolo.c:135:28: note: Assignment 'thr=calloc(nthreads,sizeof(pthread_t))', assigned value is 0 darknet/examples/yolo.c:146:9: note: Null pointer dereference darknet/examples/yolo.c:152:26: warning: If memory allocation fails, then there is a possible null pointer dereference: thr [nullPointerOutOfMemory] darknet/examples/yolo.c:135:28: note: Assuming allocation function fails darknet/examples/yolo.c:135:28: note: Assignment 'thr=calloc(nthreads,sizeof(pthread_t))', assigned value is 0 darknet/examples/yolo.c:152:26: note: Null pointer dereference darknet/examples/yolo.c:153:13: warning: If memory allocation fails, then there is a possible null pointer dereference: val [nullPointerOutOfMemory] darknet/examples/yolo.c:131:24: note: Assuming allocation function fails darknet/examples/yolo.c:131:24: note: Assignment 'val=calloc(nthreads,sizeof(image))', assigned value is 0 darknet/examples/yolo.c:153:13: note: Null pointer dereference darknet/examples/yolo.c:153:22: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] darknet/examples/yolo.c:133:24: note: Assuming allocation function fails darknet/examples/yolo.c:133:24: note: Assignment 'buf=calloc(nthreads,sizeof(image))', assigned value is 0 darknet/examples/yolo.c:153:22: note: Null pointer dereference darknet/examples/yolo.c:154:13: warning: If memory allocation fails, then there is a possible null pointer dereference: val_resized [nullPointerOutOfMemory] darknet/examples/yolo.c:132:32: note: Assuming allocation function fails darknet/examples/yolo.c:132:32: note: Assignment 'val_resized=calloc(nthreads,sizeof(image))', assigned value is 0 darknet/examples/yolo.c:154:13: note: Null pointer dereference darknet/examples/yolo.c:154:30: warning: If memory allocation fails, then there is a possible null pointer dereference: buf_resized [nullPointerOutOfMemory] darknet/examples/yolo.c:134:32: note: Assuming allocation function fails darknet/examples/yolo.c:134:32: note: Assignment 'buf_resized=calloc(nthreads,sizeof(image))', assigned value is 0 darknet/examples/yolo.c:154:30: note: Null pointer dereference darknet/examples/yolo.c:160:13: warning: If memory allocation fails, then there is a possible null pointer dereference: thr [nullPointerOutOfMemory] darknet/examples/yolo.c:135:28: note: Assuming allocation function fails darknet/examples/yolo.c:135:28: note: Assignment 'thr=calloc(nthreads,sizeof(pthread_t))', assigned value is 0 darknet/examples/yolo.c:160:13: note: Null pointer dereference darknet/examples/yolo.c:202:9: warning: If memory allocation fails, then there is a possible null pointer dereference: fps [nullPointerOutOfMemory] darknet/examples/yolo.c:198:24: note: Assuming allocation function fails darknet/examples/yolo.c:198:24: note: Assignment 'fps=calloc(classes,sizeof(FILE*))', assigned value is 0 darknet/examples/yolo.c:202:9: note: Null pointer dereference darknet/examples/yolo.c:8:11: style: Variable 'backup_directory' can be declared as pointer to const [constVariablePointer] darknet/examples/yolo.c:10:11: style: Variable 'base' can be declared as pointer to const [constVariablePointer] darknet/examples/yolo.c:77:46: style: Parameter 'id' can be declared as pointer to const [constParameterPointer] darknet/examples/yolo.c:105:11: style: Variable 'base' can be declared as pointer to const [constVariablePointer] darknet/examples/yolo.c:189:11: style: Variable 'base' can be declared as pointer to const [constVariablePointer] darknet/examples/yolo.c:265:55: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] darknet/src/activation_layer.c:15:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACTIVE [valueFlowBailoutIncompleteVar] darknet/src/activations.h:35:72: style: Expression 'exp(x) - 1' can be replaced by 'expm1(x)' to avoid loss of precision. [unpreciseMathCall] darknet/src/activations.h:36:94: style: Expression 'exp(x) - 1' can be replaced by 'expm1(x)' to avoid loss of precision. [unpreciseMathCall] darknet/src/activations.h:40:52: style: Expression 'exp(x) - 1' can be replaced by 'expm1(x)' to avoid loss of precision. [unpreciseMathCall] darknet/src/activations.c:47:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGISTIC [valueFlowBailoutIncompleteVar] darknet/src/activations.c:45:33: style: Parameter 's' can be declared as pointer to const [constParameterPointer] darknet/src/avgpool_layer.c:7:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/batchnorm_layer.c:8:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/batchnorm_layer.c:132:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/batchnorm_layer.c:137:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BATCHNORM [valueFlowBailoutIncompleteVar] darknet/src/batchnorm_layer.c:171:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BATCHNORM [valueFlowBailoutIncompleteVar] darknet/src/batchnorm_layer.c:72:32: style: Parameter 'x_norm' can be declared as pointer to const [constParameterPointer] darknet/src/batchnorm_layer.c:72:47: style: Parameter 'delta' can be declared as pointer to const [constParameterPointer] darknet/src/batchnorm_layer.c:87:28: style: Parameter 'delta' can be declared as pointer to const [constParameterPointer] darknet/src/batchnorm_layer.c:87:42: style: Parameter 'variance' can be declared as pointer to const [constParameterPointer] darknet/src/batchnorm_layer.c:102:33: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] darknet/src/batchnorm_layer.c:102:43: style: Parameter 'delta' can be declared as pointer to const [constParameterPointer] darknet/src/batchnorm_layer.c:102:57: style: Parameter 'mean' can be declared as pointer to const [constParameterPointer] darknet/src/batchnorm_layer.c:102:70: style: Parameter 'variance' can be declared as pointer to const [constParameterPointer] darknet/src/batchnorm_layer.c:117:33: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] darknet/src/batchnorm_layer.c:117:43: style: Parameter 'mean' can be declared as pointer to const [constParameterPointer] darknet/src/batchnorm_layer.c:117:56: style: Parameter 'variance' can be declared as pointer to const [constParameterPointer] darknet/src/batchnorm_layer.c:117:73: style: Parameter 'mean_delta' can be declared as pointer to const [constParameterPointer] darknet/src/batchnorm_layer.c:117:92: style: Parameter 'variance_delta' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:309:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_MAX [valueFlowBailoutIncompleteVar] darknet/src/blas.c:41:30: warning: If memory allocation fails, then there is a possible null pointer dereference: swap [nullPointerOutOfMemory] darknet/src/blas.c:34:25: note: Assuming allocation function fails darknet/src/blas.c:34:25: note: Assignment 'swap=calloc(size*layers*batch,sizeof(float))', assigned value is 0 darknet/src/blas.c:41:21: note: Assuming condition is true darknet/src/blas.c:41:30: note: Null pointer dereference darknet/src/blas.c:42:22: warning: If memory allocation fails, then there is a possible null pointer dereference: swap [nullPointerOutOfMemory] darknet/src/blas.c:34:25: note: Assuming allocation function fails darknet/src/blas.c:34:25: note: Assignment 'swap=calloc(size*layers*batch,sizeof(float))', assigned value is 0 darknet/src/blas.c:42:22: note: Null pointer dereference darknet/src/blas.c:46:15: warning: If memory allocation fails, then there is a possible null pointer dereference: swap [nullPointerOutOfMemory] darknet/src/blas.c:34:25: note: Assuming allocation function fails darknet/src/blas.c:34:25: note: Assignment 'swap=calloc(size*layers*batch,sizeof(float))', assigned value is 0 darknet/src/blas.c:46:15: note: Null pointer dereference darknet/src/blas.c:50:57: style:inconclusive: Function 'weighted_sum_cpu' argument 4 names different: declaration 'num' definition 'n'. [funcArgNamesDifferent] darknet/src/blas.h:40:57: note: Function 'weighted_sum_cpu' argument 4 names different: declaration 'num' definition 'n'. darknet/src/blas.c:50:57: note: Function 'weighted_sum_cpu' argument 4 names different: declaration 'num' definition 'n'. darknet/src/blas.c:9:23: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:50:30: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:50:40: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:50:50: style: Parameter 's' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:58:32: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:58:42: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:58:52: style: Parameter 's' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:58:102: style: Parameter 'dc' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:68:61: style: Parameter 'add' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:94:22: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:110:26: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:110:36: style: Parameter 'mean' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:147:37: style: Parameter 'mean' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:147:50: style: Parameter 'variance' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:166:28: style: Parameter 'X' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:172:41: style: Parameter 'X' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:178:42: style: Parameter 'X' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:196:68: style: Parameter 'OUT' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:212:31: style: Parameter 'X' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:212:49: style: Parameter 'Y' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:226:29: style: Parameter 'X' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:232:38: style: Parameter 'X' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:232:48: style: Parameter 'Y' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:238:34: style: Parameter 'pred' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:238:47: style: Parameter 'truth' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:255:27: style: Parameter 'pred' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:255:40: style: Parameter 'truth' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:265:38: style: Parameter 'pred' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:265:51: style: Parameter 'truth' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:276:39: style: Parameter 'pred' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:276:52: style: Parameter 'truth' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:287:27: style: Parameter 'pred' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:287:40: style: Parameter 'truth' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:297:29: style: Parameter 'X' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:297:49: style: Parameter 'Y' can be declared as pointer to const [constParameterPointer] darknet/src/blas.c:305:21: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] darknet/src/box.c:26:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable objectness [valueFlowBailoutIncompleteVar] darknet/src/box.c:63:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable objectness [valueFlowBailoutIncompleteVar] darknet/src/box.c:303:15: style: Condition 'i<=0||1' is always true [knownConditionTrueFalse] darknet/src/box.c:91:25: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] darknet/src/col2im.c:14:24: style: Parameter 'data_col' can be declared as pointer to const [constParameterPointer] darknet/src/compare.c:40:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COMPARE_DATA [valueFlowBailoutIncompleteVar] darknet/src/compare.c:112:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable COMPARE_DATA [valueFlowBailoutIncompleteVar] darknet/src/compare.c:336:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/compare.c:180:12: warning: If memory allocation fails, then there is a possible null pointer dereference: X [nullPointerOutOfMemory] darknet/src/compare.c:179:23: note: Assuming allocation function fails darknet/src/compare.c:179:23: note: Assignment 'X=calloc(net.w*net.h*net.c,sizeof(float))', assigned value is 0 darknet/src/compare.c:180:12: note: Null pointer dereference darknet/src/compare.c:209:12: warning: If memory allocation fails, then there is a possible null pointer dereference: X [nullPointerOutOfMemory] darknet/src/compare.c:208:23: note: Assuming allocation function fails darknet/src/compare.c:208:23: note: Assignment 'X=calloc(net.w*net.h*net.c,sizeof(float))', assigned value is 0 darknet/src/compare.c:209:12: note: Null pointer dereference darknet/src/compare.c:245:9: warning: If memory allocation fails, then there is a possible null pointer dereference: boxes [nullPointerOutOfMemory] darknet/src/compare.c:242:34: note: Assuming allocation function fails darknet/src/compare.c:242:34: note: Assignment 'boxes=calloc(N,sizeof(struct sortable_bbox))', assigned value is 0 darknet/src/compare.c:245:9: note: Null pointer dereference darknet/src/compare.c:246:9: warning: If memory allocation fails, then there is a possible null pointer dereference: boxes [nullPointerOutOfMemory] darknet/src/compare.c:242:34: note: Assuming allocation function fails darknet/src/compare.c:242:34: note: Assignment 'boxes=calloc(N,sizeof(struct sortable_bbox))', assigned value is 0 darknet/src/compare.c:246:9: note: Null pointer dereference darknet/src/compare.c:247:9: warning: If memory allocation fails, then there is a possible null pointer dereference: boxes [nullPointerOutOfMemory] darknet/src/compare.c:242:34: note: Assuming allocation function fails darknet/src/compare.c:242:34: note: Assignment 'boxes=calloc(N,sizeof(struct sortable_bbox))', assigned value is 0 darknet/src/compare.c:247:9: note: Null pointer dereference darknet/src/compare.c:248:9: warning: If memory allocation fails, then there is a possible null pointer dereference: boxes [nullPointerOutOfMemory] darknet/src/compare.c:242:34: note: Assuming allocation function fails darknet/src/compare.c:242:34: note: Assignment 'boxes=calloc(N,sizeof(struct sortable_bbox))', assigned value is 0 darknet/src/compare.c:248:9: note: Null pointer dereference darknet/src/compare.c:251:11: warning: If memory allocation fails, then there is a possible null pointer dereference: boxes [nullPointerOutOfMemory] darknet/src/compare.c:242:34: note: Assuming allocation function fails darknet/src/compare.c:242:34: note: Assignment 'boxes=calloc(N,sizeof(struct sortable_bbox))', assigned value is 0 darknet/src/compare.c:251:11: note: Null pointer dereference darknet/src/compare.c:280:9: warning: If memory allocation fails, then there is a possible null pointer dereference: boxes [nullPointerOutOfMemory] darknet/src/compare.c:277:34: note: Assuming allocation function fails darknet/src/compare.c:277:34: note: Assignment 'boxes=calloc(N,sizeof(struct sortable_bbox))', assigned value is 0 darknet/src/compare.c:280:9: note: Null pointer dereference darknet/src/compare.c:281:9: warning: If memory allocation fails, then there is a possible null pointer dereference: boxes [nullPointerOutOfMemory] darknet/src/compare.c:277:34: note: Assuming allocation function fails darknet/src/compare.c:277:34: note: Assignment 'boxes=calloc(N,sizeof(struct sortable_bbox))', assigned value is 0 darknet/src/compare.c:281:9: note: Null pointer dereference darknet/src/compare.c:282:9: warning: If memory allocation fails, then there is a possible null pointer dereference: boxes [nullPointerOutOfMemory] darknet/src/compare.c:277:34: note: Assuming allocation function fails darknet/src/compare.c:277:34: note: Assignment 'boxes=calloc(N,sizeof(struct sortable_bbox))', assigned value is 0 darknet/src/compare.c:282:9: note: Null pointer dereference darknet/src/compare.c:283:9: warning: If memory allocation fails, then there is a possible null pointer dereference: boxes [nullPointerOutOfMemory] darknet/src/compare.c:277:34: note: Assuming allocation function fails darknet/src/compare.c:277:34: note: Assignment 'boxes=calloc(N,sizeof(struct sortable_bbox))', assigned value is 0 darknet/src/compare.c:283:9: note: Null pointer dereference darknet/src/compare.c:285:13: warning: If memory allocation fails, then there is a possible null pointer dereference: boxes [nullPointerOutOfMemory] darknet/src/compare.c:277:34: note: Assuming allocation function fails darknet/src/compare.c:277:34: note: Assignment 'boxes=calloc(N,sizeof(struct sortable_bbox))', assigned value is 0 darknet/src/compare.c:285:13: note: Null pointer dereference darknet/src/compare.c:326:21: warning: If resource allocation fails, then there is a possible null pointer dereference: outfp [nullPointerOutOfResources] darknet/src/compare.c:324:28: note: Assuming allocation function fails darknet/src/compare.c:324:28: note: Assignment 'outfp=fopen(buff,"w")', assigned value is 0 darknet/src/compare.c:326:21: note: Null pointer dereference darknet/src/compare.c:328:16: warning: If resource allocation fails, then there is a possible null pointer dereference: outfp [nullPointerOutOfResources] darknet/src/compare.c:324:28: note: Assuming allocation function fails darknet/src/compare.c:324:28: note: Assignment 'outfp=fopen(buff,"w")', assigned value is 0 darknet/src/compare.c:328:16: note: Null pointer dereference darknet/src/compare.c:181:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] darknet/src/compare.c:179:23: note: Assuming allocation function fails darknet/src/compare.c:179:23: note: Assignment 'X=calloc(net.w*net.h*net.c,sizeof(float))', assigned value is 0 darknet/src/compare.c:181:13: note: Null pointer addition darknet/src/compare.c:210:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] darknet/src/compare.c:208:23: note: Assuming allocation function fails darknet/src/compare.c:208:23: note: Assignment 'X=calloc(net.w*net.h*net.c,sizeof(float))', assigned value is 0 darknet/src/compare.c:210:13: note: Null pointer addition darknet/src/compare.c:295:34: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] darknet/src/compare.c:277:34: note: Assuming allocation function fails darknet/src/compare.c:277:34: note: Assignment 'boxes=calloc(N,sizeof(struct sortable_bbox))', assigned value is 0 darknet/src/compare.c:295:34: note: Null pointer addition darknet/src/compare.c:295:45: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] darknet/src/compare.c:277:34: note: Assuming allocation function fails darknet/src/compare.c:277:34: note: Assignment 'boxes=calloc(N,sizeof(struct sortable_bbox))', assigned value is 0 darknet/src/compare.c:295:45: note: Null pointer addition darknet/src/compare.c:15:11: style: Variable 'backup_directory' can be declared as pointer to const [constVariablePointer] darknet/src/compare.c:182:12: style: Variable 'predictions' can be declared as pointer to const [constVariablePointer] darknet/src/compare.c:211:12: style: Variable 'predictions' can be declared as pointer to const [constVariablePointer] darknet/src/compare.c:121:13: style: Variable 'num' is assigned a value that is never used. [unreadVariable] darknet/src/connected_layer.c:19:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECTED [valueFlowBailoutIncompleteVar] darknet/src/connected_layer.c:189:5: style: Variable 'n' is assigned an expression that holds the same value. [redundantAssignment] darknet/src/connected_layer.c:181:11: note: n is assigned 'l.inputs' here. darknet/src/connected_layer.c:189:5: note: Variable 'n' is assigned an expression that holds the same value. darknet/src/connected_layer.c:191:5: style: Variable 'a' is assigned an expression that holds the same value. [redundantAssignment] darknet/src/connected_layer.c:182:14: note: a is assigned 'l.delta' here. darknet/src/connected_layer.c:191:5: note: Variable 'a' is assigned an expression that holds the same value. darknet/src/convolutional_layer.c:180:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONVOLUTIONAL [valueFlowBailoutIncompleteVar] darknet/src/convolutional_layer.c:593:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable image [valueFlowBailoutIncompleteVar] darknet/src/convolutional_layer.c:596:9: warning: If memory allocation fails, then there is a possible null pointer dereference: weights [nullPointerOutOfMemory] darknet/src/convolutional_layer.c:593:28: note: Assuming allocation function fails darknet/src/convolutional_layer.c:593:28: note: Assignment 'weights=calloc(l.n,sizeof(image))', assigned value is 0 darknet/src/convolutional_layer.c:596:9: note: Null pointer dereference darknet/src/convolutional_layer.c:597:25: warning: If memory allocation fails, then there is a possible null pointer dereference: weights [nullPointerOutOfMemory] darknet/src/convolutional_layer.c:593:28: note: Assuming allocation function fails darknet/src/convolutional_layer.c:593:28: note: Assignment 'weights=calloc(l.n,sizeof(image))', assigned value is 0 darknet/src/convolutional_layer.c:597:25: note: Null pointer dereference darknet/src/convolutional_layer.c:561:9: style:inconclusive: Same expression used in consecutive assignments of 'h' and 'w'. [duplicateAssignExpression] darknet/src/convolutional_layer.c:562:9: note: Same expression used in consecutive assignments of 'h' and 'w'. darknet/src/convolutional_layer.c:561:9: note: Same expression used in consecutive assignments of 'h' and 'w'. darknet/src/convolutional_layer.c:66:50: style:inconclusive: Function 'convolutional_out_height' argument 1 names different: declaration 'layer' definition 'l'. [funcArgNamesDifferent] darknet/src/convolutional_layer.h:46:50: note: Function 'convolutional_out_height' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:66:50: note: Function 'convolutional_out_height' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:71:49: style:inconclusive: Function 'convolutional_out_width' argument 1 names different: declaration 'layer' definition 'l'. [funcArgNamesDifferent] darknet/src/convolutional_layer.h:47:49: note: Function 'convolutional_out_width' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:71:49: note: Function 'convolutional_out_width' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:76:51: style:inconclusive: Function 'get_convolutional_image' argument 1 names different: declaration 'layer' definition 'l'. [funcArgNamesDifferent] darknet/src/convolutional_layer.h:42:51: note: Function 'get_convolutional_image' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:76:51: note: Function 'get_convolutional_image' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:81:51: style:inconclusive: Function 'get_convolutional_delta' argument 1 names different: declaration 'layer' definition 'l'. [funcArgNamesDifferent] darknet/src/convolutional_layer.h:43:51: note: Function 'get_convolutional_delta' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:81:51: note: Function 'get_convolutional_delta' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:370:54: style:inconclusive: Function 'resize_convolutional_layer' argument 1 names different: declaration 'layer' definition 'l'. [funcArgNamesDifferent] darknet/src/convolutional_layer.h:29:54: note: Function 'resize_convolutional_layer' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:370:54: note: Function 'resize_convolutional_layer' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:445:54: style:inconclusive: Function 'forward_convolutional_layer' argument 1 names different: declaration 'layer' definition 'l'. [funcArgNamesDifferent] darknet/src/convolutional_layer.h:30:60: note: Function 'forward_convolutional_layer' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:445:54: note: Function 'forward_convolutional_layer' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:487:55: style:inconclusive: Function 'backward_convolutional_layer' argument 1 names different: declaration 'layer' definition 'l'. [funcArgNamesDifferent] darknet/src/convolutional_layer.h:37:55: note: Function 'backward_convolutional_layer' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:487:55: note: Function 'backward_convolutional_layer' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:538:53: style:inconclusive: Function 'update_convolutional_layer' argument 1 names different: declaration 'layer' definition 'l'. [funcArgNamesDifferent] darknet/src/convolutional_layer.h:31:53: note: Function 'update_convolutional_layer' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:538:53: note: Function 'update_convolutional_layer' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:559:52: style:inconclusive: Function 'get_convolutional_weight' argument 1 names different: declaration 'layer' definition 'l'. [funcArgNamesDifferent] darknet/src/convolutional_layer.h:44:52: note: Function 'get_convolutional_weight' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:559:52: note: Function 'get_convolutional_weight' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:608:58: style:inconclusive: Function 'visualize_convolutional_layer' argument 1 names different: declaration 'layer' definition 'l'. [funcArgNamesDifferent] darknet/src/convolutional_layer.h:32:58: note: Function 'visualize_convolutional_layer' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:608:58: note: Function 'visualize_convolutional_layer' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/convolutional_layer.c:28:30: style: Parameter 'weights' can be declared as pointer to const [constParameterPointer] darknet/src/convolutional_layer.c:43:26: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] darknet/src/convolutional_layer.c:51:28: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] darknet/src/convolutional_layer.c:411:37: style: Parameter 'biases' can be declared as pointer to const [constParameterPointer] darknet/src/convolutional_layer.c:423:39: style: Parameter 'scales' can be declared as pointer to const [constParameterPointer] darknet/src/cost_layer.c:12:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEG [valueFlowBailoutIncompleteVar] darknet/src/cost_layer.c:43:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/cost_layer.c:85:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MASKED [valueFlowBailoutIncompleteVar] darknet/src/cost_layer.c:41:61: style:inconclusive: Function 'make_cost_layer' argument 3 names different: declaration 'type' definition 'cost_type'. [funcArgNamesDifferent] darknet/src/cost_layer.h:10:61: note: Function 'make_cost_layer' argument 3 names different: declaration 'type' definition 'cost_type'. darknet/src/cost_layer.c:41:61: note: Function 'make_cost_layer' argument 3 names different: declaration 'type' definition 'cost_type'. darknet/src/cost_layer.c:10:31: style: Parameter 's' can be declared as pointer to const [constParameterPointer] darknet/src/cost_layer.c:98:15: style: Variable 'l.cost[0]' is assigned a value that is never used. [unreadVariable] darknet/src/crnn_layer.c:31:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/crop_layer.c:18:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/data.c:147:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable box_label [valueFlowBailoutIncompleteVar] darknet/src/data.c:184:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] darknet/src/data.c:235:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] darknet/src/data.c:274:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] darknet/src/data.c:469:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x [valueFlowBailoutIncompleteVar] darknet/src/data.c:583:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECRET_NUM [valueFlowBailoutIncompleteVar] darknet/src/data.c:969:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECRET_NUM [valueFlowBailoutIncompleteVar] darknet/src/data.c:1098:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OLD_CLASSIFICATION_DATA [valueFlowBailoutIncompleteVar] darknet/src/data.c:1138:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable load_args [valueFlowBailoutIncompleteVar] darknet/src/data.c:1152:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] darknet/src/data.c:1175:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable load_args [valueFlowBailoutIncompleteVar] darknet/src/data.c:1183:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable load_args [valueFlowBailoutIncompleteVar] darknet/src/data.c:1274:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] darknet/src/data.c:1295:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] darknet/src/data.c:1651:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] darknet/src/data.c:379:12: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darknet/src/data.c:416:12: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darknet/src/data.c:690:11: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darknet/src/data.c:721:11: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darknet/src/data.c:151:13: error: Common realloc mistake: 'boxes' nulled but not freed upon failure [memleakOnRealloc] darknet/src/data.c:21:12: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] darknet/src/data.c:15:23: note: Assuming allocation function fails darknet/src/data.c:15:23: note: Assignment 'file=fopen(filename,"r")', assigned value is 0 darknet/src/data.c:21:12: note: Null pointer dereference darknet/src/data.c:49:9: warning: If memory allocation fails, then there is a possible null pointer dereference: random_paths [nullPointerOutOfMemory] darknet/src/data.c:44:33: note: Assuming allocation function fails darknet/src/data.c:44:33: note: Assignment 'random_paths=calloc(n,sizeof(char*))', assigned value is 0 darknet/src/data.c:49:9: note: Null pointer dereference darknet/src/data.c:63:9: warning: If memory allocation fails, then there is a possible null pointer dereference: replace_paths [nullPointerOutOfMemory] darknet/src/data.c:58:34: note: Assuming allocation function fails darknet/src/data.c:58:34: note: Assignment 'replace_paths=calloc(n,sizeof(char*))', assigned value is 0 darknet/src/data.c:63:9: note: Null pointer dereference darknet/src/data.c:615:16: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] darknet/src/data.c:611:27: note: Assuming allocation function fails darknet/src/data.c:611:27: note: Assignment 'file=fopen(labelpath,"r")', assigned value is 0 darknet/src/data.c:615:16: note: Null pointer dereference darknet/src/data.c:1093:20: warning: If memory allocation fails, then there is a possible null pointer dereference: (struct load_args*)ptr [nullPointerOutOfMemory] darknet/src/data.c:1175:35: note: Assuming allocation function fails darknet/src/data.c:1175:35: note: Assignment 'ptr=calloc(1,sizeof(struct load_args))', assigned value is 0 darknet/src/data.c:1177:17: note: Calling function 'load_thread', 1st argument 'ptr' value is 0 darknet/src/data.c:1093:20: note: Null pointer dereference darknet/src/data.c:1139:6: warning: If memory allocation fails, then there is a possible null pointer dereference: ptr [nullPointerOutOfMemory] darknet/src/data.c:1138:35: note: Assuming allocation function fails darknet/src/data.c:1138:35: note: Assignment 'ptr=calloc(1,sizeof(struct load_args))', assigned value is 0 darknet/src/data.c:1139:6: note: Null pointer dereference darknet/src/data.c:1157:9: warning: If memory allocation fails, then there is a possible null pointer dereference: threads [nullPointerOutOfMemory] darknet/src/data.c:1153:32: note: Assuming allocation function fails darknet/src/data.c:1153:32: note: Assignment 'threads=calloc(args.threads,sizeof(pthread_t))', assigned value is 0 darknet/src/data.c:1157:9: note: Null pointer dereference darknet/src/data.c:1160:22: warning: If memory allocation fails, then there is a possible null pointer dereference: threads [nullPointerOutOfMemory] darknet/src/data.c:1153:32: note: Assuming allocation function fails darknet/src/data.c:1153:32: note: Assignment 'threads=calloc(args.threads,sizeof(pthread_t))', assigned value is 0 darknet/src/data.c:1160:22: note: Null pointer dereference darknet/src/data.c:1165:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buffers [nullPointerOutOfMemory] darknet/src/data.c:1152:27: note: Assuming allocation function fails darknet/src/data.c:1152:27: note: Assignment 'buffers=calloc(args.threads,sizeof(data))', assigned value is 0 darknet/src/data.c:1165:9: note: Null pointer dereference darknet/src/data.c:1166:19: warning: If memory allocation fails, then there is a possible null pointer dereference: buffers [nullPointerOutOfMemory] darknet/src/data.c:1152:27: note: Assuming allocation function fails darknet/src/data.c:1152:27: note: Assignment 'buffers=calloc(args.threads,sizeof(data))', assigned value is 0 darknet/src/data.c:1166:19: note: Null pointer dereference darknet/src/data.c:1176:6: warning: If memory allocation fails, then there is a possible null pointer dereference: ptr [nullPointerOutOfMemory] darknet/src/data.c:1175:35: note: Assuming allocation function fails darknet/src/data.c:1175:35: note: Assignment 'ptr=calloc(1,sizeof(struct load_args))', assigned value is 0 darknet/src/data.c:1176:6: note: Null pointer dereference darknet/src/data.c:1184:6: warning: If memory allocation fails, then there is a possible null pointer dereference: ptr [nullPointerOutOfMemory] darknet/src/data.c:1183:35: note: Assuming allocation function fails darknet/src/data.c:1183:35: note: Assignment 'ptr=calloc(1,sizeof(struct load_args))', assigned value is 0 darknet/src/data.c:1184:6: note: Null pointer dereference darknet/src/data.c:1315:9: warning: If memory allocation fails, then there is a possible null pointer dereference: ds [nullPointerOutOfMemory] darknet/src/data.c:1295:22: note: Assuming allocation function fails darknet/src/data.c:1295:22: note: Assignment 'ds=calloc(divs*divs,sizeof(data))', assigned value is 0 darknet/src/data.c:1315:9: note: Null pointer dereference darknet/src/data.c:1398:32: warning: If memory allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfMemory] darknet/src/data.c:1152:27: note: Assuming allocation function fails darknet/src/data.c:1152:27: note: Assignment 'buffers=calloc(args.threads,sizeof(data))', assigned value is 0 darknet/src/data.c:1162:25: note: Calling function 'concat_datas', 1st argument 'buffers' value is 0 darknet/src/data.c:1398:32: note: Null pointer dereference darknet/src/data.c:1436:31: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] darknet/src/data.c:1432:21: note: Assuming allocation function fails darknet/src/data.c:1432:21: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 darknet/src/data.c:1436:31: note: Null pointer dereference darknet/src/data.c:1499:35: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] darknet/src/data.c:1495:25: note: Assuming allocation function fails darknet/src/data.c:1495:25: note: Assignment 'fp=fopen(buff,"rb")', assigned value is 0 darknet/src/data.c:1499:35: note: Null pointer dereference darknet/src/data.c:1681:5: warning: If memory allocation fails, then there is a possible null pointer dereference: split [nullPointerOutOfMemory] darknet/src/data.c:1651:25: note: Assuming allocation function fails darknet/src/data.c:1651:25: note: Assignment 'split=calloc(2,sizeof(data))', assigned value is 0 darknet/src/data.c:1681:5: note: Null pointer dereference darknet/src/data.c:1682:5: warning: If memory allocation fails, then there is a possible null pointer dereference: split [nullPointerOutOfMemory] darknet/src/data.c:1651:25: note: Assuming allocation function fails darknet/src/data.c:1651:25: note: Assignment 'split=calloc(2,sizeof(data))', assigned value is 0 darknet/src/data.c:1682:5: note: Null pointer dereference darknet/src/data.c:1155:26: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] darknet/src/data.c:1152:27: note: Assuming allocation function fails darknet/src/data.c:1152:27: note: Assignment 'buffers=calloc(args.threads,sizeof(data))', assigned value is 0 darknet/src/data.c:1155:26: note: Null pointer addition darknet/src/data.c:1259:59: style:inconclusive: Function 'load_data_regression' argument 4 names different: declaration 'classes' definition 'k'. [funcArgNamesDifferent] darknet/src/data.h:32:59: note: Function 'load_data_regression' argument 4 names different: declaration 'classes' definition 'k'. darknet/src/data.c:1259:59: note: Function 'load_data_regression' argument 4 names different: declaration 'classes' definition 'k'. darknet/src/data.c:303:30: style: Parameter 'rle' can be declared as pointer to const [constParameterPointer] darknet/src/data.c:503:11: style: Variable 'begin' can be declared as pointer to const [constVariablePointer] darknet/src/data.c:1270:35: style: Parameter 'inds' can be declared as pointer to const [constParameterPointer] darknet/src/deconvolutional_layer.c:39:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DECONVOLUTIONAL [valueFlowBailoutIncompleteVar] darknet/src/deconvolutional_layer.c:277:17: style: Local variable 'm' shadows outer variable [shadowVariable] darknet/src/deconvolutional_layer.c:264:13: note: Shadowed variable darknet/src/deconvolutional_layer.c:277:17: note: Shadow local variable darknet/src/deconvolutional_layer.c:278:17: style: Local variable 'n' shadows outer variable [shadowVariable] darknet/src/deconvolutional_layer.c:265:13: note: Shadowed variable darknet/src/deconvolutional_layer.c:278:17: note: Shadow local variable darknet/src/deconvolutional_layer.c:279:17: style: Local variable 'k' shadows outer variable [shadowVariable] darknet/src/deconvolutional_layer.c:266:13: note: Shadowed variable darknet/src/deconvolutional_layer.c:279:17: note: Shadow local variable darknet/src/deconvolutional_layer.c:281:20: style: Local variable 'a' shadows outer variable [shadowVariable] darknet/src/deconvolutional_layer.c:268:16: note: Shadowed variable darknet/src/deconvolutional_layer.c:281:20: note: Shadow local variable darknet/src/deconvolutional_layer.c:282:20: style: Local variable 'b' shadows outer variable [shadowVariable] darknet/src/deconvolutional_layer.c:269:16: note: Shadowed variable darknet/src/deconvolutional_layer.c:282:20: note: Shadow local variable darknet/src/deconvolutional_layer.c:283:20: style: Local variable 'c' shadows outer variable [shadowVariable] darknet/src/deconvolutional_layer.c:270:16: note: Shadowed variable darknet/src/deconvolutional_layer.c:283:20: note: Shadow local variable darknet/src/demo.c:346:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/detection_layer.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DETECTION [valueFlowBailoutIncompleteVar] darknet/src/detection_layer.c:243:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bbox [valueFlowBailoutIncompleteVar] darknet/src/detection_layer.c:14:72: style:inconclusive: Function 'make_detection_layer' argument 4 names different: declaration 'size' definition 'side'. [funcArgNamesDifferent] darknet/src/detection_layer.h:9:72: note: Function 'make_detection_layer' argument 4 names different: declaration 'size' definition 'side'. darknet/src/detection_layer.c:14:72: note: Function 'make_detection_layer' argument 4 names different: declaration 'size' definition 'side'. darknet/src/detection_layer.c:228:12: style: Variable 'predictions' can be declared as pointer to const [constVariablePointer] darknet/src/dropout_layer.c:10:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DROPOUT [valueFlowBailoutIncompleteVar] darknet/src/gemm.c:35:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] darknet/src/gemm.c:58:110: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] darknet/src/gemm.c:35:9: warning: If memory allocation fails, then there is a possible null pointer dereference: m [nullPointerOutOfMemory] darknet/src/gemm.c:33:22: note: Assuming allocation function fails darknet/src/gemm.c:33:22: note: Assignment 'm=calloc(rows*cols,sizeof(float))', assigned value is 0 darknet/src/gemm.c:35:9: note: Null pointer dereference darknet/src/gemm.c:9:16: style: Parameter 'A' can be declared as pointer to const [constParameterPointer] darknet/src/gemm.c:10:16: style: Parameter 'B' can be declared as pointer to const [constParameterPointer] darknet/src/gemm.c:75:16: style: Parameter 'A' can be declared as pointer to const [constParameterPointer] darknet/src/gemm.c:76:16: style: Parameter 'B' can be declared as pointer to const [constParameterPointer] darknet/src/gemm.c:92:16: style: Parameter 'A' can be declared as pointer to const [constParameterPointer] darknet/src/gemm.c:93:16: style: Parameter 'B' can be declared as pointer to const [constParameterPointer] darknet/src/gemm.c:110:16: style: Parameter 'A' can be declared as pointer to const [constParameterPointer] darknet/src/gemm.c:111:16: style: Parameter 'B' can be declared as pointer to const [constParameterPointer] darknet/src/gemm.c:127:16: style: Parameter 'A' can be declared as pointer to const [constParameterPointer] darknet/src/gemm.c:128:16: style: Parameter 'B' can be declared as pointer to const [constParameterPointer] darknet/src/gru_layer.c:31:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/gru_layer.c:170:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGISTIC [valueFlowBailoutIncompleteVar] darknet/src/gru_layer.c:128:41: style:inconclusive: Function 'forward_gru_layer' argument 2 names different: declaration 'state' definition 'net'. [funcArgNamesDifferent] darknet/src/gru_layer.h:11:41: note: Function 'forward_gru_layer' argument 2 names different: declaration 'state' definition 'net'. darknet/src/gru_layer.c:128:41: note: Function 'forward_gru_layer' argument 2 names different: declaration 'state' definition 'net'. darknet/src/gru_layer.c:204:42: style:inconclusive: Function 'backward_gru_layer' argument 2 names different: declaration 'state' definition 'net'. [funcArgNamesDifferent] darknet/src/gru_layer.h:12:42: note: Function 'backward_gru_layer' argument 2 names different: declaration 'state' definition 'net'. darknet/src/gru_layer.c:204:42: note: Function 'backward_gru_layer' argument 2 names different: declaration 'state' definition 'net'. darknet/src/im2col.c:3:31: style: Parameter 'im' can be declared as pointer to const [constParameterPointer] darknet/src/image.c:227:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable image [valueFlowBailoutIncompleteVar] darknet/src/image.c:247:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable prob [valueFlowBailoutIncompleteVar] darknet/src/image.c:543:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/image.c:553:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PNG [valueFlowBailoutIncompleteVar] darknet/src/image.c:576:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JPG [valueFlowBailoutIncompleteVar] darknet/src/image.c:751:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_MAX [valueFlowBailoutIncompleteVar] darknet/src/image.c:1298:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/image.c:1369:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] darknet/src/image.c:1404:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h [valueFlowBailoutIncompleteVar] darknet/src/stb_image_write.h:1270:16: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] darknet/src/stb_image.h:5175:17: style: Redundant condition: The condition 'req_comp' is redundant since 'req_comp >= 3' is sufficient. [redundantCondition] darknet/src/stb_image.h:5680:22: style: Condition 'len>128' is always true [knownConditionTrueFalse] darknet/src/stb_image.h:5668:15: note: Assuming that condition 'len==128' is not redundant darknet/src/stb_image.h:5670:22: note: Assuming condition is false darknet/src/stb_image.h:5680:22: note: Condition 'len>128' is always true darknet/src/stb_image.h:6318:34: style: Condition 'code==avail' is always false [knownConditionTrueFalse] darknet/src/stb_image.h:6305:26: note: Assuming that condition 'code<=avail' is not redundant darknet/src/stb_image.h:6306:17: note: Assuming condition is false darknet/src/stb_image.h:6310:25: note: Assuming condition is true darknet/src/stb_image.h:6311:30: note: avail is incremented', new value is symbolic=code darknet/src/stb_image.h:6312:26: note: Assuming condition is false darknet/src/stb_image.h:6318:34: note: Condition 'code==avail' is always false darknet/src/stb_image.h:6473:41: style: Condition 'g->transparent>=0' is always true [knownConditionTrueFalse] darknet/src/stb_image.h:6472:49: note: Assignment 'g->transparent=stbi__get8(s)', assigned value is greater than -1 darknet/src/stb_image.h:6473:41: note: Condition 'g->transparent>=0' is always true darknet/src/image.c:777:16: style: Condition 'd2 darknet/src/stb_image.h:5942:19: note: Assuming condition is false darknet/src/stb_image.h:5948:11: note: Uninitialized variable: dest darknet/src/stb_image.h:5643:22: style: Variable 'tga_palette_start' is assigned a value that is never used. [unreadVariable] darknet/src/stb_image.h:5643:40: style: Variable 'tga_palette_len' is assigned a value that is never used. [unreadVariable] darknet/src/stb_image.h:5643:59: style: Variable 'tga_palette_bits' is assigned a value that is never used. [unreadVariable] darknet/src/stb_image.h:5644:23: style: Variable 'tga_x_origin' is assigned a value that is never used. [unreadVariable] darknet/src/stb_image.h:5644:38: style: Variable 'tga_y_origin' is assigned a value that is never used. [unreadVariable] darknet/src/image.c:68:35: style: Variable 'm.data[c*m.h*m.w+y*m.w+x]' is assigned a value that is never used. [unreadVariable] darknet/src/image.c:73:35: style: Variable 'm.data[c*m.h*m.w+y*m.w+x]' is assigned a value that is never used. [unreadVariable] darknet/src/iseg_layer.c:16:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ISEG [valueFlowBailoutIncompleteVar] darknet/src/iseg_layer.c:90:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGISTIC [valueFlowBailoutIncompleteVar] darknet/src/l2norm_layer.c:14:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/layer.c:8:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DROPOUT [valueFlowBailoutIncompleteVar] darknet/src/list.c:7:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] darknet/src/list.c:42:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable node [valueFlowBailoutIncompleteVar] darknet/src/list.c:8:2: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] darknet/src/list.c:7:18: note: Assuming allocation function fails darknet/src/list.c:7:18: note: Assignment 'l=malloc(sizeof(list))', assigned value is 0 darknet/src/list.c:8:2: note: Null pointer dereference darknet/src/list.c:9:2: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] darknet/src/list.c:7:18: note: Assuming allocation function fails darknet/src/list.c:7:18: note: Assignment 'l=malloc(sizeof(list))', assigned value is 0 darknet/src/list.c:9:2: note: Null pointer dereference darknet/src/list.c:10:2: warning: If memory allocation fails, then there is a possible null pointer dereference: l [nullPointerOutOfMemory] darknet/src/list.c:7:18: note: Assuming allocation function fails darknet/src/list.c:7:18: note: Assignment 'l=malloc(sizeof(list))', assigned value is 0 darknet/src/list.c:10:2: note: Null pointer dereference darknet/src/list.c:43:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] darknet/src/list.c:42:20: note: Assuming allocation function fails darknet/src/list.c:42:20: note: Assignment 'new=malloc(sizeof(node))', assigned value is 0 darknet/src/list.c:43:2: note: Null pointer dereference darknet/src/list.c:44:2: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] darknet/src/list.c:42:20: note: Assuming allocation function fails darknet/src/list.c:42:20: note: Assignment 'new=malloc(sizeof(node))', assigned value is 0 darknet/src/list.c:44:2: note: Null pointer dereference darknet/src/list.c:51:3: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] darknet/src/list.c:42:20: note: Assuming allocation function fails darknet/src/list.c:42:20: note: Assignment 'new=malloc(sizeof(node))', assigned value is 0 darknet/src/list.c:51:3: note: Null pointer dereference darknet/src/list.c:88:9: warning: If memory allocation fails, then there is a possible null pointer dereference: a [nullPointerOutOfMemory] darknet/src/list.c:84:22: note: Assuming allocation function fails darknet/src/list.c:84:22: note: Assignment 'a=calloc(l->size,sizeof(void*))', assigned value is 0 darknet/src/list.c:88:9: note: Null pointer dereference darknet/src/list.c:40:24: style:inconclusive: Function 'list_insert' argument 1 names different: declaration '' definition 'l'. [funcArgNamesDifferentUnnamed] darknet/src/list.c:40:33: style:inconclusive: Function 'list_insert' argument 2 names different: declaration '' definition 'val'. [funcArgNamesDifferentUnnamed] darknet/src/list.c:73:31: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] darknet/src/list.c:82:28: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] darknet/src/list.c:86:11: style: Variable 'n' can be declared as pointer to const [constVariablePointer] darknet/src/local_layer.c:30:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOCAL [valueFlowBailoutIncompleteVar] darknet/src/local_layer.c:91:44: style:inconclusive: Function 'forward_local_layer' argument 1 names different: declaration 'layer' definition 'l'. [funcArgNamesDifferent] darknet/src/local_layer.h:23:44: note: Function 'forward_local_layer' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/local_layer.c:91:44: note: Function 'forward_local_layer' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/local_layer.c:122:39: style:inconclusive: Function 'backward_local_layer' argument 1 names different: declaration 'layer' definition 'l'. [funcArgNamesDifferent] darknet/src/local_layer.h:24:39: note: Function 'backward_local_layer' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/local_layer.c:122:39: note: Function 'backward_local_layer' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/local_layer.c:167:37: style:inconclusive: Function 'update_local_layer' argument 1 names different: declaration 'layer' definition 'l'. [funcArgNamesDifferent] darknet/src/local_layer.h:25:37: note: Function 'update_local_layer' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/local_layer.c:167:37: note: Function 'update_local_layer' argument 1 names different: declaration 'layer' definition 'l'. darknet/src/logistic_layer.c:14:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/logistic_layer.c:41:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGISTIC [valueFlowBailoutIncompleteVar] darknet/src/logistic_layer.c:44:19: style: Variable 'l.cost[0]' is assigned a value that is never used. [unreadVariable] darknet/src/lstm_layer.c:31:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/lstm_layer.c:209:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGISTIC [valueFlowBailoutIncompleteVar] darknet/src/lstm_layer.c:294:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGISTIC [valueFlowBailoutIncompleteVar] darknet/src/lstm_layer.c:156:42: style:inconclusive: Function 'forward_lstm_layer' argument 2 names different: declaration 'net' definition 'state'. [funcArgNamesDifferent] darknet/src/lstm_layer.h:11:42: note: Function 'forward_lstm_layer' argument 2 names different: declaration 'net' definition 'state'. darknet/src/lstm_layer.c:156:42: note: Function 'forward_lstm_layer' argument 2 names different: declaration 'net' definition 'state'. darknet/src/matrix.c:56:23: style: Condition 'm.rows>size' is always true [knownConditionTrueFalse] darknet/src/matrix.c:50:16: note: Assuming that condition 'm.rows==size' is not redundant darknet/src/matrix.c:51:16: note: Assuming condition is false darknet/src/matrix.c:56:23: note: Condition 'm.rows>size' is always true darknet/src/matrix.c:26:25: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: indexes [nullPointerOutOfMemory] darknet/src/matrix.c:19:26: note: Assuming allocation function fails darknet/src/matrix.c:19:26: note: Assignment 'indexes=calloc(k,sizeof(int))', assigned value is 0 darknet/src/matrix.c:26:25: note: Null pointer dereference darknet/src/matrix.c:124:9: warning: If memory allocation fails, then there is a possible null pointer dereference: col [nullPointerOutOfMemory] darknet/src/matrix.c:121:24: note: Assuming allocation function fails darknet/src/matrix.c:121:24: note: Assignment 'col=calloc(m->rows,sizeof(float))', assigned value is 0 darknet/src/matrix.c:124:9: note: Null pointer dereference darknet/src/maxpool_layer.c:24:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPOOL [valueFlowBailoutIncompleteVar] darknet/src/maxpool_layer.c:94:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_MAX [valueFlowBailoutIncompleteVar] darknet/src/maxpool_layer.c:82:9: style: Same expression used in consecutive assignments of 'w_offset' and 'h_offset'. [duplicateAssignExpression] darknet/src/maxpool_layer.c:83:9: note: Same expression used in consecutive assignments of 'w_offset' and 'h_offset'. darknet/src/maxpool_layer.c:82:9: note: Same expression used in consecutive assignments of 'w_offset' and 'h_offset'. darknet/src/network.c:117:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/network.c:179:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable network [valueFlowBailoutIncompleteVar] darknet/src/network.c:250:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cost [valueFlowBailoutIncompleteVar] darknet/src/network.c:334:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable temperature [valueFlowBailoutIncompleteVar] darknet/src/network.c:344:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable batch [valueFlowBailoutIncompleteVar] darknet/src/network.c:374:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONVOLUTIONAL [valueFlowBailoutIncompleteVar] darknet/src/network.c:444:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] darknet/src/network.c:485:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONVOLUTIONAL [valueFlowBailoutIncompleteVar] darknet/src/network.c:516:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YOLO [valueFlowBailoutIncompleteVar] darknet/src/network.c:532:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable detection [valueFlowBailoutIncompleteVar] darknet/src/network.c:547:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YOLO [valueFlowBailoutIncompleteVar] darknet/src/network.c:573:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable prob [valueFlowBailoutIncompleteVar] darknet/src/network.c:648:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/network.c:703:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] darknet/src/network.c:740:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] darknet/src/network.c:747:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inputs [valueFlowBailoutIncompleteVar] darknet/src/network.c:180:5: warning: If memory allocation fails, then there is a possible null pointer dereference: net [nullPointerOutOfMemory] darknet/src/network.c:179:26: note: Assuming allocation function fails darknet/src/network.c:179:26: note: Assignment 'net=calloc(1,sizeof(network))', assigned value is 0 darknet/src/network.c:180:5: note: Null pointer dereference darknet/src/network.c:181:5: warning: If memory allocation fails, then there is a possible null pointer dereference: net [nullPointerOutOfMemory] darknet/src/network.c:179:26: note: Assuming allocation function fails darknet/src/network.c:179:26: note: Assignment 'net=calloc(1,sizeof(network))', assigned value is 0 darknet/src/network.c:181:5: note: Null pointer dereference darknet/src/network.c:181:26: warning: If memory allocation fails, then there is a possible null pointer dereference: net [nullPointerOutOfMemory] darknet/src/network.c:179:26: note: Assuming allocation function fails darknet/src/network.c:179:26: note: Assignment 'net=calloc(1,sizeof(network))', assigned value is 0 darknet/src/network.c:181:26: note: Null pointer dereference darknet/src/network.c:182:5: warning: If memory allocation fails, then there is a possible null pointer dereference: net [nullPointerOutOfMemory] darknet/src/network.c:179:26: note: Assuming allocation function fails darknet/src/network.c:179:26: note: Assignment 'net=calloc(1,sizeof(network))', assigned value is 0 darknet/src/network.c:182:5: note: Null pointer dereference darknet/src/network.c:183:5: warning: If memory allocation fails, then there is a possible null pointer dereference: net [nullPointerOutOfMemory] darknet/src/network.c:179:26: note: Assuming allocation function fails darknet/src/network.c:179:26: note: Assignment 'net=calloc(1,sizeof(network))', assigned value is 0 darknet/src/network.c:183:5: note: Null pointer dereference darknet/src/network.c:184:5: warning: If memory allocation fails, then there is a possible null pointer dereference: net [nullPointerOutOfMemory] darknet/src/network.c:179:26: note: Assuming allocation function fails darknet/src/network.c:179:26: note: Assignment 'net=calloc(1,sizeof(network))', assigned value is 0 darknet/src/network.c:184:5: note: Null pointer dereference darknet/src/network.c:534:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dets [nullPointerOutOfMemory] darknet/src/network.c:532:29: note: Assuming allocation function fails darknet/src/network.c:532:29: note: Assignment 'dets=calloc(nboxes,sizeof(detection))', assigned value is 0 darknet/src/network.c:534:9: note: Null pointer dereference darknet/src/network.c:600:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] darknet/src/network.c:596:22: note: Assuming allocation function fails darknet/src/network.c:596:22: note: Assignment 'X=calloc(net->batch*test.X.rows,sizeof(float))', assigned value is 0 darknet/src/network.c:599:20: note: Assuming condition is false darknet/src/network.c:600:21: note: Null pointer addition darknet/src/network.c:625:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] darknet/src/network.c:621:22: note: Assuming allocation function fails darknet/src/network.c:621:22: note: Assignment 'X=calloc(net->batch*test.X.cols,sizeof(float))', assigned value is 0 darknet/src/network.c:624:20: note: Assuming condition is false darknet/src/network.c:625:21: note: Null pointer addition darknet/src/network.c:243:33: style:inconclusive: Function 'calc_network_cost' argument 1 names different: declaration 'net' definition 'netp'. [funcArgNamesDifferent] darknet/src/network.h:26:33: note: Function 'calc_network_cost' argument 1 names different: declaration 'net' definition 'netp'. darknet/src/network.c:243:33: note: Function 'calc_network_cost' argument 1 names different: declaration 'net' definition 'netp'. darknet/src/network.c:656:54: style:inconclusive: Function 'compare_networks' argument 3 names different: declaration 'd' definition 'test'. [funcArgNamesDifferent] darknet/src/network.h:16:54: note: Function 'compare_networks' argument 3 names different: declaration 'd' definition 'test'. darknet/src/network.c:656:54: note: Function 'compare_networks' argument 3 names different: declaration 'd' definition 'test'. darknet/src/network.c:35:34: style: Parameter 'net' can be declared as pointer to const [constParameterPointer] darknet/src/network.c:69:35: style: Parameter 'net' can be declared as pointer to const [constParameterPointer] darknet/src/network.c:243:33: style: Parameter 'netp' can be declared as pointer to const [constParameterPointer] darknet/src/network.c:263:32: style: Parameter 'netp' can be declared as pointer to const [constParameterPointer] darknet/src/network.c:440:44: style: Parameter 'net' can be declared as pointer to const [constParameterPointer] darknet/src/network.c:588:28: style: Parameter 'net' can be declared as pointer to const [constParameterPointer] darknet/src/network.c:589:29: style: Parameter 'net' can be declared as pointer to const [constParameterPointer] darknet/src/network.c:603:20: style: Variable 'out' can be declared as pointer to const [constVariablePointer] darknet/src/network.c:627:16: style: Variable 'out' can be declared as pointer to const [constVariablePointer] darknet/src/network.c:699:41: style: Parameter 'net' can be declared as pointer to const [constParameterPointer] darknet/src/network.c:736:37: style: Parameter 'net' can be declared as pointer to const [constParameterPointer] darknet/src/normalization_layer.c:8:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/normalization_layer.c:40:40: warning: Function 'resize_normalization_layer' argument order different: declaration 'layer, h, w' definition 'layer, w, h' [funcArgOrderDifferent] darknet/src/normalization_layer.h:9:40: note: Function 'resize_normalization_layer' argument order different: declaration 'layer, h, w' definition 'layer, w, h' darknet/src/normalization_layer.c:40:40: note: Function 'resize_normalization_layer' argument order different: declaration 'layer, h, w' definition 'layer, w, h' darknet/src/option_list.c:25:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/option_list.c:43:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/option_list.c:85:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/option_list.c:108:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/option_list.c:116:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/option_list.c:138:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/option_list.c:73:5: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] darknet/src/option_list.c:72:20: note: Assuming allocation function fails darknet/src/option_list.c:72:20: note: Assignment 'p=malloc(sizeof(struct kvp))', assigned value is 0 darknet/src/option_list.c:73:5: note: Null pointer dereference darknet/src/option_list.c:74:5: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] darknet/src/option_list.c:72:20: note: Assuming allocation function fails darknet/src/option_list.c:72:20: note: Assignment 'p=malloc(sizeof(struct kvp))', assigned value is 0 darknet/src/option_list.c:74:5: note: Null pointer dereference darknet/src/option_list.c:75:5: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] darknet/src/option_list.c:72:20: note: Assuming allocation function fails darknet/src/option_list.c:72:20: note: Assignment 'p=malloc(sizeof(struct kvp))', assigned value is 0 darknet/src/option_list.c:75:5: note: Null pointer dereference darknet/src/option_list.c:79:26: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] darknet/src/option_list.c:83:14: style: Variable 'p' can be declared as pointer to const [constVariablePointer] darknet/src/option_list.c:91:25: style: Parameter 'l' can be declared as pointer to const [constParameterPointer] darknet/src/option_list.c:91:34: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] darknet/src/option_list.c:114:11: style: Variable 'v' can be declared as pointer to const [constVariablePointer] darknet/src/option_list.c:122:11: style: Variable 'v' can be declared as pointer to const [constVariablePointer] darknet/src/option_list.c:129:11: style: Variable 'v' can be declared as pointer to const [constVariablePointer] darknet/src/option_list.c:136:11: style: Variable 'v' can be declared as pointer to const [constVariablePointer] darknet/src/parser.c:50:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHORTCUT [valueFlowBailoutIncompleteVar] darknet/src/parser.c:619:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable outputs [valueFlowBailoutIncompleteVar] darknet/src/parser.c:644:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RANDOM [valueFlowBailoutIncompleteVar] darknet/src/parser.c:699:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STEP [valueFlowBailoutIncompleteVar] darknet/src/parser.c:748:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gpu_index [valueFlowBailoutIncompleteVar] darknet/src/parser.c:916:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/parser.c:1014:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/parser.c:1225:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/parser.c:298:13: warning: If memory allocation fails, then there is a possible null pointer dereference: mask [nullPointerOutOfMemory] darknet/src/parser.c:295:22: note: Assuming allocation function fails darknet/src/parser.c:295:22: note: Assignment 'mask=calloc(n,sizeof(int))', assigned value is 0 darknet/src/parser.c:298:13: note: Null pointer dereference darknet/src/parser.c:604:22: warning: Either the condition '!l' is redundant or there is possible null pointer dereference: l. [nullPointerRedundantCheck] darknet/src/parser.c:605:8: note: Assuming that condition '!l' is not redundant darknet/src/parser.c:604:22: note: Null pointer dereference darknet/src/parser.c:618:9: warning: If memory allocation fails, then there is a possible null pointer dereference: layers [nullPointerOutOfMemory] darknet/src/parser.c:612:25: note: Assuming allocation function fails darknet/src/parser.c:612:25: note: Assignment 'layers=calloc(n,sizeof(int))', assigned value is 0 darknet/src/parser.c:618:9: note: Null pointer dereference darknet/src/parser.c:619:9: warning: If memory allocation fails, then there is a possible null pointer dereference: sizes [nullPointerOutOfMemory] darknet/src/parser.c:613:24: note: Assuming allocation function fails darknet/src/parser.c:613:24: note: Assignment 'sizes=calloc(n,sizeof(int))', assigned value is 0 darknet/src/parser.c:619:9: note: Null pointer dereference darknet/src/parser.c:625:45: warning: If memory allocation fails, then there is a possible null pointer dereference: layers [nullPointerOutOfMemory] darknet/src/parser.c:612:25: note: Assuming allocation function fails darknet/src/parser.c:612:25: note: Assignment 'layers=calloc(n,sizeof(int))', assigned value is 0 darknet/src/parser.c:625:45: note: Null pointer dereference darknet/src/parser.c:630:21: warning: If memory allocation fails, then there is a possible null pointer dereference: layers [nullPointerOutOfMemory] darknet/src/parser.c:612:25: note: Assuming allocation function fails darknet/src/parser.c:612:25: note: Assignment 'layers=calloc(n,sizeof(int))', assigned value is 0 darknet/src/parser.c:630:21: note: Null pointer dereference darknet/src/parser.c:707:26: warning: Either the condition '!l' is redundant or there is possible null pointer dereference: l. [nullPointerRedundantCheck] darknet/src/parser.c:705:12: note: Assuming that condition '!l' is not redundant darknet/src/parser.c:707:26: note: Null pointer dereference darknet/src/parser.c:720:13: warning: If memory allocation fails, then there is a possible null pointer dereference: steps [nullPointerOutOfMemory] darknet/src/parser.c:713:28: note: Assuming allocation function fails darknet/src/parser.c:713:28: note: Assignment 'steps=calloc(n,sizeof(int))', assigned value is 0 darknet/src/parser.c:720:13: note: Null pointer dereference darknet/src/parser.c:721:13: warning: If memory allocation fails, then there is a possible null pointer dereference: scales [nullPointerOutOfMemory] darknet/src/parser.c:714:31: note: Assuming allocation function fails darknet/src/parser.c:714:31: note: Assignment 'scales=calloc(n,sizeof(float))', assigned value is 0 darknet/src/parser.c:721:13: note: Null pointer dereference darknet/src/parser.c:751:29: warning: Either the condition '!n' is redundant or there is possible null pointer dereference: n. [nullPointerRedundantCheck] darknet/src/parser.c:746:8: note: Assuming that condition '!n' is not redundant darknet/src/parser.c:751:29: note: Null pointer dereference darknet/src/parser.c:906:17: warning: If memory allocation fails, then there is a possible null pointer dereference: current [nullPointerOutOfMemory] darknet/src/parser.c:904:33: note: Assuming allocation function fails darknet/src/parser.c:904:33: note: Assignment 'current=malloc(sizeof(struct section))', assigned value is 0 darknet/src/parser.c:906:17: note: Null pointer dereference darknet/src/parser.c:907:17: warning: If memory allocation fails, then there is a possible null pointer dereference: current [nullPointerOutOfMemory] darknet/src/parser.c:904:33: note: Assuming allocation function fails darknet/src/parser.c:904:33: note: Assignment 'current=malloc(sizeof(struct section))', assigned value is 0 darknet/src/parser.c:907:17: note: Null pointer dereference darknet/src/parser.c:1021:36: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] darknet/src/parser.c:1015:21: note: Assuming allocation function fails darknet/src/parser.c:1015:21: note: Assignment 'fp=fopen(filename,"wb")', assigned value is 0 darknet/src/parser.c:1021:36: note: Null pointer dereference darknet/src/parser.c:1091:13: warning: If memory allocation fails, then there is a possible null pointer dereference: transpose [nullPointerOutOfMemory] darknet/src/parser.c:1087:30: note: Assuming allocation function fails darknet/src/parser.c:1087:30: note: Assignment 'transpose=calloc(rows*cols,sizeof(float))', assigned value is 0 darknet/src/parser.c:1091:13: note: Null pointer dereference darknet/src/parser.c:1094:15: warning: If memory allocation fails, then there is a possible null pointer dereference: transpose [nullPointerOutOfMemory] darknet/src/parser.c:1087:30: note: Assuming allocation function fails darknet/src/parser.c:1087:30: note: Assignment 'transpose=calloc(rows*cols,sizeof(float))', assigned value is 0 darknet/src/parser.c:1094:15: note: Null pointer dereference darknet/src/parser.c:1233:35: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] darknet/src/parser.c:1227:21: note: Assuming allocation function fails darknet/src/parser.c:1227:21: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 darknet/src/parser.c:1233:35: note: Null pointer dereference darknet/src/parser.c:469:9: style: Local variable 'flatten' shadows outer function [shadowFunction] darknet/src/blas.h:5:6: note: Shadowed function darknet/src/parser.c:469:9: note: Shadow local variable darknet/src/parser.c:47:40: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] darknet/src/parser.c:109:11: style: Variable 'curr' can be declared as pointer to const [constVariablePointer] darknet/src/parser.c:500:35: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] darknet/src/parser.c:533:29: style: Parameter 'options' can be declared as pointer to const [constParameterPointer] darknet/src/parser.c:541:11: style: Variable 'l' can be declared as pointer to const [constVariablePointer] darknet/src/parser.c:642:39: style: Parameter 's' can be declared as pointer to const [constParameterPointer] darknet/src/parser.c:736:25: style: Parameter 's' can be declared as pointer to const [constParameterPointer] darknet/src/region_layer.c:16:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REGION [valueFlowBailoutIncompleteVar] darknet/src/region_layer.c:167:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGISTIC [valueFlowBailoutIncompleteVar] darknet/src/region_layer.c:349:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bbox [valueFlowBailoutIncompleteVar] darknet/src/region_layer.c:397:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable prob [valueFlowBailoutIncompleteVar] darknet/src/region_layer.c:175:13: style: Local variable 'i' shadows outer variable [shadowVariable] darknet/src/region_layer.c:160:9: note: Shadowed variable darknet/src/region_layer.c:175:13: note: Shadow local variable darknet/src/region_layer.c:417:29: style: Local variable 'class_index' shadows outer variable [shadowVariable] darknet/src/region_layer.c:411:17: note: Shadowed variable darknet/src/region_layer.c:417:29: note: Shadow local variable darknet/src/region_layer.c:422:25: style: Local variable 'j' shadows outer variable [shadowVariable] darknet/src/region_layer.c:366:11: note: Shadowed variable darknet/src/region_layer.c:422:25: note: Shadow local variable darknet/src/region_layer.c:428:29: style: Local variable 'class_index' shadows outer variable [shadowVariable] darknet/src/region_layer.c:411:17: note: Shadowed variable darknet/src/region_layer.c:428:29: note: Shadow local variable darknet/src/region_layer.c:76:27: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] darknet/src/region_layer.c:76:37: style: Parameter 'biases' can be declared as pointer to const [constParameterPointer] darknet/src/region_layer.c:103:31: style: Parameter 'truth' can be declared as pointer to const [constParameterPointer] darknet/src/region_layer.c:103:45: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] darknet/src/region_layer.c:112:32: style: Parameter 'output' can be declared as pointer to const [constParameterPointer] darknet/src/region_layer.c:364:90: style: Parameter 'map' can be declared as pointer to const [constParameterPointer] darknet/src/reorg_layer.c:11:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REORG [valueFlowBailoutIncompleteVar] darknet/src/reorg_layer.c:8:85: style: Argument 'flatten' shadows outer function [shadowFunction] darknet/src/blas.h:5:6: note: Shadowed function darknet/src/reorg_layer.c:8:85: note: Shadow argument darknet/src/rnn_layer.c:31:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/route_layer.c:9:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/route_layer.c:80:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable output [valueFlowBailoutIncompleteVar] darknet/src/route_layer.c:95:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable delta [valueFlowBailoutIncompleteVar] darknet/src/route_layer.c:7:72: style:inconclusive: Function 'make_route_layer' argument 4 names different: declaration 'input_size' definition 'input_sizes'. [funcArgNamesDifferent] darknet/src/route_layer.h:8:72: note: Function 'make_route_layer' argument 4 names different: declaration 'input_size' definition 'input_sizes'. darknet/src/route_layer.c:7:72: note: Function 'make_route_layer' argument 4 names different: declaration 'input_size' definition 'input_sizes'. darknet/src/shortcut_layer.c:11:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/shortcut_layer.c:65:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable output [valueFlowBailoutIncompleteVar] darknet/src/shortcut_layer.c:73:109: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable delta [valueFlowBailoutIncompleteVar] darknet/src/softmax_layer.c:14:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/softmax_layer.c:55:19: style: Variable 'l.cost[0]' is assigned a value that is never used. [unreadVariable] darknet/src/tree.c:24:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/tree.c:135:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tree [valueFlowBailoutIncompleteVar] darknet/src/tree.c:96:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] darknet/src/tree.c:96:31: warning: If memory allocation fails, then there is a possible null pointer dereference: id [nullPointerOutOfMemory] darknet/src/tree.c:94:26: note: Assuming allocation function fails darknet/src/tree.c:94:26: note: Assignment 'id=calloc(256,sizeof(char))', assigned value is 0 darknet/src/tree.c:96:31: note: Null pointer dereference darknet/src/tree.c:136:6: warning: If memory allocation fails, then there is a possible null pointer dereference: tree_ptr [nullPointerOutOfMemory] darknet/src/tree.c:135:28: note: Assuming allocation function fails darknet/src/tree.c:135:28: note: Assignment 'tree_ptr=calloc(1,sizeof(tree))', assigned value is 0 darknet/src/tree.c:136:6: note: Null pointer dereference darknet/src/tree.c:27:40: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] darknet/src/tree.c:53:37: style: Parameter 'predictions' can be declared as pointer to const [constParameterPointer] darknet/src/tree.c:83:23: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] darknet/src/tree.c:88:11: style: Variable 'line' can be declared as pointer to const [constVariablePointer] darknet/src/upsample_layer.c:10:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UPSAMPLE [valueFlowBailoutIncompleteVar] darknet/src/utils.c:90:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] darknet/src/utils.c:234:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCKS_PER_SEC [valueFlowBailoutIncompleteVar] darknet/src/utils.c:277:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/utils.c:283:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darknet/src/utils.c:667:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] darknet/src/utils.c:705:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] darknet/src/utils.c:352:17: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] darknet/src/utils.c:68:9: error: Common realloc mistake: 'map' nulled but not freed upon failure [memleakOnRealloc] darknet/src/utils.c:48:13: warning: If memory allocation fails, then there is a possible null pointer dereference: gpus [nullPointerOutOfMemory] darknet/src/utils.c:46:22: note: Assuming allocation function fails darknet/src/utils.c:46:22: note: Assignment 'gpus=calloc(*ngpus,sizeof(int))', assigned value is 0 darknet/src/utils.c:48:13: note: Null pointer dereference darknet/src/utils.c:53:10: warning: If memory allocation fails, then there is a possible null pointer dereference: gpus [nullPointerOutOfMemory] darknet/src/utils.c:52:22: note: Assuming allocation function fails darknet/src/utils.c:52:22: note: Assignment 'gpus=calloc(1,sizeof(float))', assigned value is 0 darknet/src/utils.c:53:10: note: Null pointer dereference darknet/src/utils.c:91:16: warning: If memory allocation fails, then there is a possible null pointer dereference: swp [nullPointerOutOfMemory] darknet/src/utils.c:88:23: note: Assuming allocation function fails darknet/src/utils.c:88:23: note: Assignment 'swp=calloc(1,size)', assigned value is 0 darknet/src/utils.c:91:16: note: Null pointer dereference darknet/src/utils.c:93:30: warning: If memory allocation fails, then there is a possible null pointer dereference: swp [nullPointerOutOfMemory] darknet/src/utils.c:88:23: note: Assuming allocation function fails darknet/src/utils.c:88:23: note: Assignment 'swp=calloc(1,size)', assigned value is 0 darknet/src/utils.c:93:30: note: Null pointer dereference darknet/src/utils.c:102:9: warning: If memory allocation fails, then there is a possible null pointer dereference: inds [nullPointerOutOfMemory] darknet/src/utils.c:99:23: note: Assuming allocation function fails darknet/src/utils.c:99:23: note: Assignment 'inds=calloc(max-min,sizeof(int))', assigned value is 0 darknet/src/utils.c:102:9: note: Null pointer dereference darknet/src/utils.c:105:20: warning: If memory allocation fails, then there is a possible null pointer dereference: inds [nullPointerOutOfMemory] darknet/src/utils.c:99:23: note: Assuming allocation function fails darknet/src/utils.c:99:23: note: Assignment 'inds=calloc(max-min,sizeof(int))', assigned value is 0 darknet/src/utils.c:105:20: note: Null pointer dereference darknet/src/utils.c:107:9: warning: If memory allocation fails, then there is a possible null pointer dereference: inds [nullPointerOutOfMemory] darknet/src/utils.c:99:23: note: Assuming allocation function fails darknet/src/utils.c:99:23: note: Assignment 'inds=calloc(max-min,sizeof(int))', assigned value is 0 darknet/src/utils.c:107:9: note: Null pointer dereference darknet/src/utils.c:107:19: warning: If memory allocation fails, then there is a possible null pointer dereference: inds [nullPointerOutOfMemory] darknet/src/utils.c:99:23: note: Assuming allocation function fails darknet/src/utils.c:99:23: note: Assignment 'inds=calloc(max-min,sizeof(int))', assigned value is 0 darknet/src/utils.c:107:19: note: Null pointer dereference darknet/src/utils.c:108:9: warning: If memory allocation fails, then there is a possible null pointer dereference: inds [nullPointerOutOfMemory] darknet/src/utils.c:99:23: note: Assuming allocation function fails darknet/src/utils.c:99:23: note: Assignment 'inds=calloc(max-min,sizeof(int))', assigned value is 0 darknet/src/utils.c:108:9: note: Null pointer dereference darknet/src/utils.c:265:11: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] darknet/src/utils.c:262:21: note: Assuming allocation function fails darknet/src/utils.c:262:21: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 darknet/src/utils.c:265:11: note: Null pointer dereference darknet/src/utils.c:270:11: warning: If memory allocation fails, then there is a possible null pointer dereference: text [nullPointerOutOfMemory] darknet/src/utils.c:269:33: note: Assuming allocation function fails darknet/src/utils.c:269:33: note: Assignment 'text=calloc(size+1,sizeof(char))', assigned value is 0 darknet/src/utils.c:270:11: note: Null pointer dereference darknet/src/utils.c:340:15: warning: If memory allocation fails, then there is a possible null pointer dereference: line [nullPointerOutOfMemory] darknet/src/utils.c:339:24: note: Assuming allocation function fails darknet/src/utils.c:339:24: note: Assignment 'line=malloc(size*sizeof(char))', assigned value is 0 darknet/src/utils.c:340:15: note: Null pointer dereference darknet/src/utils.c:426:13: warning: If memory allocation fails, then there is a possible null pointer dereference: copy [nullPointerOutOfMemory] darknet/src/utils.c:425:24: note: Assuming allocation function fails darknet/src/utils.c:425:24: note: Assignment 'copy=malloc(strlen(s)+1)', assigned value is 0 darknet/src/utils.c:426:13: note: Null pointer dereference darknet/src/utils.c:720:9: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] darknet/src/utils.c:718:23: note: Assuming allocation function fails darknet/src/utils.c:718:23: note: Assignment 't=calloc(n,sizeof(float*))', assigned value is 0 darknet/src/utils.c:720:9: note: Null pointer dereference darknet/src/utils.c:722:9: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] darknet/src/utils.c:718:23: note: Assuming allocation function fails darknet/src/utils.c:718:23: note: Assignment 't=calloc(n,sizeof(float*))', assigned value is 0 darknet/src/utils.c:722:9: note: Null pointer dereference darknet/src/utils.c:396:17: style: Checking if unsigned expression 'next' is less than zero. [unsignedLessThanZero] darknet/src/utils.c:417:17: style: Checking if unsigned expression 'next' is less than zero. [unsignedLessThanZero] darknet/src/utils.c:63:11: style: Variable 'str' can be declared as pointer to const [constVariablePointer] darknet/src/utils.c:120:44: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:133:47: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:148:51: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:163:50: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:203:30: style: Parameter 'A' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:216:25: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:216:36: style: Parameter 'orig' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:216:48: style: Parameter 'rep' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:237:19: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:260:32: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:281:23: style: Parameter 's' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:391:34: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:412:30: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:423:25: style: Parameter 's' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:451:11: style: Variable 'c' can be declared as pointer to const [constVariablePointer] darknet/src/utils.c:479:24: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:538:25: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:538:35: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:546:24: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:574:24: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:605:24: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:619:22: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:633:20: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:715:31: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] darknet/src/utils.c:81:20: portability: 'arr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] darknet/src/utils.c:91:33: portability: 'arr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] darknet/src/utils.c:92:19: portability: 'arr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] darknet/src/utils.c:92:33: portability: 'arr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] darknet/src/utils.c:93:19: portability: 'arr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] darknet/src/utils.c:562:8: style: Variable 'mu' is assigned a value that is never used. [unreadVariable] darknet/src/utils.c:563:11: style: Variable 'sigma' is assigned a value that is never used. [unreadVariable] darknet/src/yolo_layer.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable YOLO [valueFlowBailoutIncompleteVar] darknet/src/yolo_layer.c:141:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGISTIC [valueFlowBailoutIncompleteVar] darknet/src/yolo_layer.c:260:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bbox [valueFlowBailoutIncompleteVar] darknet/src/yolo_layer.c:330:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bbox [valueFlowBailoutIncompleteVar] darknet/src/yolo_layer.c:83:25: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] darknet/src/yolo_layer.c:83:35: style: Parameter 'biases' can be declared as pointer to const [constParameterPointer] darknet/src/yolo_layer.c:111:30: style: Parameter 'output' can be declared as pointer to const [constParameterPointer] darknet/examples/go.c:20:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [ctunullpointerOutOfResources] darknet/examples/go.c:36:21: note: Assuming allocation function fails darknet/examples/go.c:36:21: note: Assignment 'fp=fopen(filename,"rb")', assigned value is 0 darknet/examples/go.c:39:26: note: Calling function fgetgo, 1st argument is null darknet/examples/go.c:20:13: note: Dereferencing argument fp that is null darknet/examples/go.c:56:12: warning: If memory allocation fails, then there is a possible null pointer dereference: board [ctunullpointerOutOfMemory] darknet/examples/go.c:742:26: note: Assuming allocation function fails darknet/examples/go.c:742:26: note: Assignment 'board=calloc(19*19*3,sizeof(float))', assigned value is 0 darknet/examples/go.c:757:24: note: Calling function string_to_board, 2nd argument is null darknet/examples/go.c:56:12: note: Dereferencing argument board that is null darknet/examples/go.c:90:9: warning: Null pointer dereference: b [ctunullpointer] darknet/examples/go.c:1104:26: note: Assuming allocation function fails darknet/examples/go.c:1104:26: note: Assignment 'board=calloc(19*19*3,sizeof(float))', assigned value is 0 darknet/examples/go.c:1115:20: note: Calling function print_board, 2nd argument is null darknet/examples/go.c:278:22: note: Calling function occupied, 1st argument is null darknet/examples/go.c:90:9: note: Dereferencing argument b that is null darknet/examples/go.c:770:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [ctunullpointerOutOfResources] darknet/examples/go.c:1049:32: note: Assuming allocation function fails darknet/examples/go.c:1049:32: note: Assignment 'f=fopen("game.txt","w")', assigned value is 0 darknet/examples/go.c:1050:39: note: Calling function print_game, 2nd argument is null darknet/examples/go.c:770:13: note: Dereferencing argument fp that is null darknet/src/utils.c:337:13: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [ctunullpointerOutOfResources] darknet/src/data.c:15:23: note: Assuming allocation function fails darknet/src/data.c:15:23: note: Assignment 'file=fopen(filename,"r")', assigned value is 0 darknet/src/data.c:18:22: note: Calling function fgetl, 1st argument is null darknet/src/utils.c:337:13: note: Dereferencing argument fp that is null diff: 2.22.0 darknet/src/stb_image.h:4859:23: style: Condition '!stbi__compute_transparency16(z,tc16,s->img_out_n)' is always false [knownConditionTrueFalse] darknet/src/stb_image.h:4859:52: note: Calling function 'stbi__compute_transparency16' returns 1 darknet/src/stb_image.h:4859:23: note: Condition '!stbi__compute_transparency16(z,tc16,s->img_out_n)' is always false 2.22.0 darknet/src/stb_image.h:4861:23: style: Condition '!stbi__compute_transparency(z,tc,s->img_out_n)' is always false [knownConditionTrueFalse] darknet/src/stb_image.h:4861:50: note: Calling function 'stbi__compute_transparency' returns 1 darknet/src/stb_image.h:4861:23: note: Condition '!stbi__compute_transparency(z,tc,s->img_out_n)' is always false DONE