2026-05-03 23:00 ftp://ftp.de.debian.org/debian/pool/main/o/onak/onak_0.6.4.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=bsd --library=libcurl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-1047-aws-aarch64-with-glibc2.35 python: 3.10.12 client-version: 1.4.0 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 355 348 elapsed-time: 16.9 15.3 head-timing-info: old-timing-info: head results: onak-0.6.4/armor.c:48:15: style: Condition 'c>=26' is always true [knownConditionTrueFalse] onak-0.6.4/armor.c:46:8: note: Assuming that condition 'c<=25' is not redundant onak-0.6.4/armor.c:48:15: note: Condition 'c>=26' is always true onak-0.6.4/armor.c:325:11: style:inconclusive: Function 'armor_openpgp_stream' argument 2 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] onak-0.6.4/armor.c:326:33: style:inconclusive: Function 'armor_openpgp_stream' argument 3 names different: declaration '' definition 'packets'. [funcArgNamesDifferentUnnamed] onak-0.6.4/armor.c:353:11: style:inconclusive: Function 'dearmor_openpgp_stream' argument 2 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] onak-0.6.4/armor.c:354:34: style:inconclusive: Function 'dearmor_openpgp_stream' argument 3 names different: declaration '' definition 'packets'. [funcArgNamesDifferentUnnamed] onak-0.6.4/cgi/add.c:70:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable logfile [valueFlowBailoutIncompleteVar] onak-0.6.4/cgi/add.c:41:37: style: Variable 'count' is assigned a value that is never used. [unreadVariable] onak-0.6.4/cgi/getcgi.c:145:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] onak-0.6.4/cgi/getcgi.c:224:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] onak-0.6.4/cgi/getcgi.c:169:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] onak-0.6.4/cgi/getcgi.c:176:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] onak-0.6.4/cgi/getcgi.c:173:4: error: Common realloc mistake: 'pairlist' nulled but not freed upon failure [memleakOnRealloc] onak-0.6.4/cgi/getcgi.c:82:15: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] onak-0.6.4/cgi/getcgi.c:188:38: note: Assuming allocation function fails onak-0.6.4/cgi/getcgi.c:188:31: note: Calling function 'unescape_url', 1st argument 'cgivars[i*2+1]=strdup(eqpos+1)' value is 0 onak-0.6.4/cgi/getcgi.c:82:15: note: Null pointer dereference onak-0.6.4/cgi/getcgi.c:83:7: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] onak-0.6.4/cgi/getcgi.c:188:38: note: Assuming allocation function fails onak-0.6.4/cgi/getcgi.c:188:31: note: Calling function 'unescape_url', 1st argument 'cgivars[i*2+1]=strdup(eqpos+1)' value is 0 onak-0.6.4/cgi/getcgi.c:83:7: note: Null pointer dereference onak-0.6.4/cgi/getcgi.c:83:16: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] onak-0.6.4/cgi/getcgi.c:188:38: note: Assuming allocation function fails onak-0.6.4/cgi/getcgi.c:188:31: note: Calling function 'unescape_url', 1st argument 'cgivars[i*2+1]=strdup(eqpos+1)' value is 0 onak-0.6.4/cgi/getcgi.c:83:16: note: Null pointer dereference onak-0.6.4/cgi/getcgi.c:89:2: warning: If memory allocation fails, then there is a possible null pointer dereference: url [nullPointerOutOfMemory] onak-0.6.4/cgi/getcgi.c:188:38: note: Assuming allocation function fails onak-0.6.4/cgi/getcgi.c:188:31: note: Calling function 'unescape_url', 1st argument 'cgivars[i*2+1]=strdup(eqpos+1)' value is 0 onak-0.6.4/cgi/getcgi.c:89:2: note: Null pointer dereference onak-0.6.4/cgi/getcgi.c:179:2: warning: If memory allocation fails, then there is a possible null pointer dereference: pairlist [nullPointerOutOfMemory] onak-0.6.4/cgi/getcgi.c:167:18: note: Assuming allocation function fails onak-0.6.4/cgi/getcgi.c:167:18: note: Assignment 'pairlist=malloc(256*sizeof(char*))', assigned value is 0 onak-0.6.4/cgi/getcgi.c:170:9: note: Assuming condition is false onak-0.6.4/cgi/getcgi.c:179:2: note: Null pointer dereference onak-0.6.4/cgi/getcgi.c:192:16: warning: If memory allocation fails, then there is a possible null pointer dereference: cgivars [nullPointerOutOfMemory] onak-0.6.4/cgi/getcgi.c:183:17: note: Assuming allocation function fails onak-0.6.4/cgi/getcgi.c:183:17: note: Assignment 'cgivars=malloc((paircount*2+1)*sizeof(char*))', assigned value is 0 onak-0.6.4/cgi/getcgi.c:192:16: note: Null pointer dereference onak-0.6.4/cgi/getcgi.c:195:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cgivars [nullPointerOutOfMemory] onak-0.6.4/cgi/getcgi.c:183:17: note: Assuming allocation function fails onak-0.6.4/cgi/getcgi.c:183:17: note: Assignment 'cgivars=malloc((paircount*2+1)*sizeof(char*))', assigned value is 0 onak-0.6.4/cgi/getcgi.c:195:2: note: Null pointer dereference onak-0.6.4/cgi/getcgi.c:199:12: warning: If memory allocation fails, then there is a possible null pointer dereference: pairlist [nullPointerOutOfMemory] onak-0.6.4/cgi/getcgi.c:167:18: note: Assuming allocation function fails onak-0.6.4/cgi/getcgi.c:167:18: note: Assignment 'pairlist=malloc(256*sizeof(char*))', assigned value is 0 onak-0.6.4/cgi/getcgi.c:170:9: note: Assuming condition is false onak-0.6.4/cgi/getcgi.c:199:12: note: Null pointer dereference onak-0.6.4/cgi/getcgi.c:95:35: style: Parameter 'argv' can be declared as const array [constParameter] onak-0.6.4/cgi/getcgi.c:98:8: style: Variable 'request_method' can be declared as pointer to const [constVariablePointer] onak-0.6.4/cgi/getcgi.c:98:25: style: Variable 'env' can be declared as pointer to const [constVariablePointer] onak-0.6.4/cgi/getcgi.c:103:8: style: Variable 'nvpair' can be declared as pointer to const [constVariablePointer] onak-0.6.4/cgi/gpgwww.c:207:30: error: There is an unknown macro here somewhere. Configuration is required. If ONAK_VERSION is a macro then please configure it. [unknownMacro] onak-0.6.4/cgi/hashquery.c:54:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable logfile [valueFlowBailoutIncompleteVar] onak-0.6.4/cgi/hashquery.c:35:20: style: Parameter 'error' can be declared as pointer to const [constParameterPointer] onak-0.6.4/cgi/hashquery.c:46:8: style: Variable 'request_method' can be declared as pointer to const [constVariablePointer] onak-0.6.4/cgi/hashquery.c:46:25: style: Variable 'env' can be declared as pointer to const [constVariablePointer] onak-0.6.4/cgi/hashquery.c:62:25: error: Uninitialized variable: cgipostbuf [uninitvar] onak-0.6.4/cgi/lookup.c:89:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable maxkeys [valueFlowBailoutIncompleteVar] onak-0.6.4/cgi/lookup.c:228:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable logfile [valueFlowBailoutIncompleteVar] onak-0.6.4/charfuncs.c:104:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] onak-0.6.4/charfuncs.c:112:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] onak-0.6.4/charfuncs.c:58:54: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] onak-0.6.4/charfuncs.c:82:29: style: Parameter 'fd' can be declared as pointer to const [constParameterPointer] onak-0.6.4/charfuncs.c:92:27: style: Parameter 'fd' can be declared as pointer to const [constParameterPointer] onak-0.6.4/charfuncs.c:92:51: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] onak-0.6.4/charfuncs.c:110:63: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] onak-0.6.4/cleankey.c:144:28: style: Variable 'sigkeys' can be declared as pointer to const [constVariablePointer] onak-0.6.4/cleankey.c:144:28: style: Variable 'sigkeys' is assigned a value that is never used. [unreadVariable] onak-0.6.4/cleankey.c:144:45: style: Unused variable: curkey [unusedVariable] onak-0.6.4/cleankey.c:150:18: style: Unused variable: sigid [unusedVariable] onak-0.6.4/decodekey.c:328:3: warning: If memory allocation fails, then there is a possible null pointer dereference: uids [nullPointerOutOfMemory] onak-0.6.4/decodekey.c:315:16: note: Assuming allocation function fails onak-0.6.4/decodekey.c:315:16: note: Assignment 'uids=malloc((spsize(key->uids)+1)*sizeof(char*))', assigned value is 0 onak-0.6.4/decodekey.c:328:3: note: Null pointer dereference onak-0.6.4/decodekey.c:362:3: warning: If memory allocation fails, then there is a possible null pointer dereference: subkeys [nullPointerOutOfMemory] onak-0.6.4/decodekey.c:355:19: note: Assuming allocation function fails onak-0.6.4/decodekey.c:355:19: note: Assignment 'subkeys=malloc((spsize(key->subkeys)+1)*sizeof(struct openpgp_fingerprint))', assigned value is 0 onak-0.6.4/decodekey.c:362:3: note: Null pointer dereference onak-0.6.4/decodekey.c:224:15: style: Variable '*creation' is reassigned a value before the old one has been used. [redundantAssignment] onak-0.6.4/decodekey.c:223:15: note: *creation is assigned onak-0.6.4/decodekey.c:224:15: note: *creation is overwritten onak-0.6.4/decodekey.c:226:15: style: Variable '*creation' is reassigned a value before the old one has been used. [redundantAssignment] onak-0.6.4/decodekey.c:225:15: note: *creation is assigned onak-0.6.4/decodekey.c:226:15: note: *creation is overwritten onak-0.6.4/decodekey.c:228:15: style: Variable '*creation' is reassigned a value before the old one has been used. [redundantAssignment] onak-0.6.4/decodekey.c:227:15: note: *creation is assigned onak-0.6.4/decodekey.c:228:15: note: *creation is overwritten onak-0.6.4/decodekey.c:107:4: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] onak-0.6.4/decodekey.c:45:47: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] onak-0.6.4/decodekey.c:287:36: style: Variable 'cur' can be declared as pointer to const [constVariablePointer] onak-0.6.4/decodekey.c:305:36: style: Variable 'curuid' can be declared as pointer to const [constVariablePointer] onak-0.6.4/decodekey.c:368:39: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] onak-0.6.4/decodekey.c:50:16: style: Variable 'packetlen' is assigned a value that is never used. [unreadVariable] onak-0.6.4/gpgstats-0.0.2/dotrees.c:57:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HASHSIZE [valueFlowBailoutIncompleteVar] onak-0.6.4/gpgstats-0.0.2/dotrees.c:86:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] onak-0.6.4/gpgstats-0.0.2/dotrees.c:180:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HASHSIZE [valueFlowBailoutIncompleteVar] onak-0.6.4/gpgstats-0.0.2/dotrees.c:226:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HASHSIZE [valueFlowBailoutIncompleteVar] onak-0.6.4/gpgstats-0.0.2/dotrees.c:97:4: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/dotrees.c:192:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/dotrees.c:216:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/dotrees.c:255:23: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/dotrees.c:258:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/dotrees.c:70:27: style:inconclusive: Function 'readkeys' argument 1 names different: declaration '' definition 'filename'. [funcArgNamesDifferentUnnamed] onak-0.6.4/gpgstats-0.0.2/dotrees.c:22:30: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] onak-0.6.4/gpgstats-0.0.2/dotrees.c:37:24: style: Parameter 'key1' can be declared as pointer to const. However it seems that 'keycmp' is a callback function, if 'key1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/gpgstats-0.0.2/dotrees.c:80:4: note: You might need to cast the function pointer here onak-0.6.4/gpgstats-0.0.2/dotrees.c:37:24: note: Parameter 'key1' can be declared as pointer to const onak-0.6.4/gpgstats-0.0.2/dotrees.c:37:42: style: Parameter 'key2' can be declared as pointer to const. However it seems that 'keycmp' is a callback function, if 'key2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/gpgstats-0.0.2/dotrees.c:80:4: note: You might need to cast the function pointer here onak-0.6.4/gpgstats-0.0.2/dotrees.c:37:42: note: Parameter 'key2' can be declared as pointer to const onak-0.6.4/gpgstats-0.0.2/dotrees.c:223:13: style: Variable 'curkey' can be declared as pointer to const [constVariablePointer] onak-0.6.4/gpgstats-0.0.2/dotrees.c:262:26: style: Parameter 'argv' can be declared as const array [constParameter] onak-0.6.4/gpgstats-0.0.2/dotrees.c:264:14: style: Unused variable: keyinfo [unusedVariable] onak-0.6.4/gpgstats-0.0.2/dotrees.c:264:22: style: Unused variable: foo [unusedVariable] onak-0.6.4/gpgstats-0.0.2/dotrees.c:265:6: style: Unused variable: rec [unusedVariable] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:111:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HASHSIZE [valueFlowBailoutIncompleteVar] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:149:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HASHSIZE [valueFlowBailoutIncompleteVar] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:220:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:76:3: warning: %llX in format string (no. 1) requires 'unsigned long long' but the argument type is 'unsigned long'. [invalidPrintfArgType_uint] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:126:2: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:126:2: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:128:2: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:130:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:130:2: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:131:2: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:131:2: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:133:2: portability: %ld in format string (no. 1) requires 'long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:133:2: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:135:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:137:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:166:4: warning: %ld in format string (no. 4) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:48:13: style: Variable 'curtree' can be declared as pointer to const [constVariablePointer] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:48:22: style: Variable 'curkey' can be declared as pointer to const [constVariablePointer] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:270:26: style: Parameter 'argv' can be declared as const array [constParameter] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:89:9: warning: Uninitialized variable: cursig [uninitvar] onak-0.6.4/gpgstats-0.0.2/gpgstats.c:83:6: note: Assuming condition is false onak-0.6.4/gpgstats-0.0.2/gpgstats.c:89:9: note: Uninitialized variable: cursig onak-0.6.4/gpgstats-0.0.2/graphstuff.c:149:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HASHSIZE [valueFlowBailoutIncompleteVar] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:198:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HASHSIZE [valueFlowBailoutIncompleteVar] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:62:4: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:97:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:97:2: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:97:2: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:97:2: warning: %ld in format string (no. 4) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:98:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:98:2: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:98:2: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:98:2: warning: %ld in format string (no. 4) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:25:30: style: Parameter 'key1' can be declared as pointer to const. However it seems that 'keycmp' is a callback function, if 'key1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:49:4: note: You might need to cast the function pointer here onak-0.6.4/gpgstats-0.0.2/graphstuff.c:25:30: note: Parameter 'key1' can be declared as pointer to const onak-0.6.4/gpgstats-0.0.2/graphstuff.c:25:54: style: Parameter 'key2' can be declared as pointer to const. However it seems that 'keycmp' is a callback function, if 'key2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:49:4: note: You might need to cast the function pointer here onak-0.6.4/gpgstats-0.0.2/graphstuff.c:25:54: note: Parameter 'key2' can be declared as pointer to const onak-0.6.4/gpgstats-0.0.2/graphstuff.c:45:34: style: Variable 'cursign' can be declared as pointer to const [constVariablePointer] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:195:13: style: Variable 'curkey' can be declared as pointer to const [constVariablePointer] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:115:9: warning: Uninitialized variable: curkey [uninitvar] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:110:11: note: Assuming condition is true onak-0.6.4/gpgstats-0.0.2/graphstuff.c:115:9: note: Uninitialized variable: curkey onak-0.6.4/gpgstats-0.0.2/graphstuff.c:19:33: style: struct member 'keycount::count' is never used. [unusedStructMember] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:19:58: style: struct member 'keycount::k' is never used. [unusedStructMember] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:43:17: style: Variable 'keyin' is assigned a value that is never used. [unreadVariable] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:44:18: style: Variable 'cursig' is assigned a value that is never used. [unreadVariable] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:76:16: style: Variable 'cursign' is assigned a value that is never used. [unreadVariable] onak-0.6.4/gpgstats-0.0.2/graphstuff.c:77:13: style: Variable 'cursign' is assigned a value that is never used. [unreadVariable] onak-0.6.4/hash-helper.c:24:48: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] onak-0.6.4/hash.c:129:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpkey [nullPointerOutOfMemory] onak-0.6.4/hash.c:128:18: note: Assuming allocation function fails onak-0.6.4/hash.c:128:18: note: Assignment 'tmpkey=malloc(sizeof(*tmpkey))', assigned value is 0 onak-0.6.4/hash.c:129:10: note: Null pointer dereference onak-0.6.4/hash.c:130:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpkey [nullPointerOutOfMemory] onak-0.6.4/hash.c:128:18: note: Assuming allocation function fails onak-0.6.4/hash.c:128:18: note: Assignment 'tmpkey=malloc(sizeof(*tmpkey))', assigned value is 0 onak-0.6.4/hash.c:130:3: note: Null pointer dereference onak-0.6.4/hash.c:136:44: style: Parameter 'key' can be declared as pointer to const. However it seems that 'stats_key_cmp' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/hash.c:146:43: note: You might need to cast the function pointer here onak-0.6.4/hash.c:136:44: note: Parameter 'key' can be declared as pointer to const onak-0.6.4/hash.c:136:59: style: Parameter 'keyid' can be declared as pointer to const. However it seems that 'stats_key_cmp' is a callback function, if 'keyid' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/hash.c:146:43: note: You might need to cast the function pointer here onak-0.6.4/hash.c:136:59: note: Parameter 'keyid' can be declared as pointer to const onak-0.6.4/hash.c:144:13: style: Variable 'found' can be declared as pointer to const [constVariablePointer] onak-0.6.4/key-store.c:51:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] onak-0.6.4/key-store.c:59:3: error: Resource leak: fd [resourceLeak] onak-0.6.4/keyarray.c:30:49: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] onak-0.6.4/keyarray.c:31:31: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] onak-0.6.4/keyarray.c:45:11: style: Variable 'top' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keyarray.c:46:14: style: Variable 'bottom' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keyarray.c:70:11: style: Variable 'top' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keyarray.c:71:14: style: Variable 'bottom' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keyd.c:610:15: error: There is an unknown macro here somewhere. Configuration is required. If ONAK_VERSION is a macro then please configure it. [unknownMacro] onak-0.6.4/keydb/keydb_db4.c:101:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGTHING_DEBUG [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_db4.c:129:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGTHING_CRITICAL [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_db4.c:154:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGTHING_CRITICAL [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_db4.c:184:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_db4.c:338:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FINGERPRINT_LEN [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_db4.c:465:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FINGERPRINT_LEN [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_db4.c:541:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DB_DBT_MALLOC [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_db4.c:631:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FINGERPRINT_LEN [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_db4.c:693:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ONAK_E_OK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_db4.c:1014:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ONAK_E_OK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_db4.c:1343:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DB_NEXT [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb.c:58:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPENPGP_PACKET_UID [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb.c:188:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGTHING_INFO [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_db4.c:1473:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_db4.c:1539:10: style: The if condition is the same as the previous if condition [duplicateCondition] onak-0.6.4/keydb/keydb_db4.c:1525:10: note: First condition onak-0.6.4/keydb/keydb_db4.c:1539:10: note: Second condition onak-0.6.4/keydb/keydb_db4.c:1549:16: warning: Either the condition 'privctx->dbenv!=NULL' is redundant or there is possible null pointer dereference: privctx->dbenv. [nullPointerRedundantCheck] onak-0.6.4/keydb/keydb_db4.c:1589:23: note: Assuming that condition 'privctx->dbenv!=NULL' is not redundant onak-0.6.4/keydb/keydb_db4.c:1549:16: note: Null pointer dereference onak-0.6.4/keydb/keydb_db4.c:514:13: style: Variable 'curword' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_db4.c:677:13: style: Variable 'curword' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_db4.c:1009:13: style: Variable 'curword' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb.c:50:36: style: Variable 'curuid' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb.c:90:36: style: Variable 'uids' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_db4.c:337:15: error: Uninitialized variable: subfp [uninitvar] onak-0.6.4/keydb/keydb_db4.c:466:14: error: Uninitialized variable: fingerprint [uninitvar] onak-0.6.4/keydb/keydb_db4.c:632:14: error: Uninitialized variable: fingerprint [uninitvar] onak-0.6.4/keydb/keydb_db4.c:428:23: style: Variable 'shortkeyid' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_db4.c:669:22: style: Variable 'shortkeyid' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_db4.c:670:20: style: Variable 'subkeyid' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_db4.c:999:15: style: Variable 'i' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_db4.c:1004:24: style: Variable 'shortkeyid' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_db4.c:1324:34: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_db4.c:1395:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_db4.c:1449:15: style: Variable 'i' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_dynamic.c:224:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable onak_dbctx [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_dynamic.c:318:27: style: Condition 'privctx->loadeddbctx!=NULL' is always true [knownConditionTrueFalse] onak-0.6.4/keydb/keydb_dynamic.c:226:8: style: Variable 'type' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_file.c:89:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ONAK_E_OK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_file.c:121:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ONAK_E_OK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_file.c:217:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ONAK_E_OK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb.c:257:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FINGERPRINT_LEN [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_file.c:274:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable onak_dbctx [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_file.c:48:57: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'file_starttrans' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_file.c:283:23: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_file.c:48:57: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_file.c:58:55: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'file_endtrans' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_file.c:284:22: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_file.c:58:55: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_file.c:80:8: style: Variable 'db_dir' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_file.c:113:8: style: Variable 'db_dir' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_file.c:155:8: style: Variable 'db_dir' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_file.c:174:60: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'file_fetch_key_text' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_file.c:289:27: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_file.c:174:60: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_file.c:202:30: style: Variable 'curfile' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_fs.c:183:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_RDLCK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_fs.c:204:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_UNLCK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_fs.c:275:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ONAK_E_NOT_FOUND [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_fs.c:318:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ONAK_E_OK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_fs.c:430:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGTHING_DEBUG [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_fs.c:493:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGTHING_DEBUG [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_fs.c:533:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGTHING_DEBUG [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_fs.c:604:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ONAK_E_OK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb.c:315:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ONAK_E_OK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_fs.c:667:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable onak_dbctx [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_fs.c:191:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] onak-0.6.4/keydb/keydb_fs.c:347:13: style: Local variable 'hash' shadows outer variable [shadowVariable] onak-0.6.4/keydb/keydb_fs.c:313:17: note: Shadowed declaration onak-0.6.4/keydb/keydb_fs.c:347:13: note: Shadow variable onak-0.6.4/keydb/keydb_fs.c:436:13: style: Local variable 'hash' shadows outer variable [shadowVariable] onak-0.6.4/keydb/keydb_fs.c:413:17: note: Shadowed declaration onak-0.6.4/keydb/keydb_fs.c:436:13: note: Shadow variable onak-0.6.4/keydb/keydb_fs.c:69:20: style: Variable 'c' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_fs.c:79:9: style: Parameter 'basepath' can be declared as pointer to const [constParameterPointer] onak-0.6.4/keydb/keydb_fs.c:89:9: style: Parameter 'basepath' can be declared as pointer to const [constParameterPointer] onak-0.6.4/keydb/keydb_fs.c:98:49: style: Parameter 'what' can be declared as pointer to const [constParameterPointer] onak-0.6.4/keydb/keydb_fs.c:98:61: style: Parameter 'basepath' can be declared as pointer to const [constParameterPointer] onak-0.6.4/keydb/keydb_fs.c:121:57: style: Parameter 'word' can be declared as pointer to const [constParameterPointer] onak-0.6.4/keydb/keydb_fs.c:122:25: style: Parameter 'basepath' can be declared as pointer to const [constParameterPointer] onak-0.6.4/keydb/keydb_fs.c:129:56: style: Parameter 'word' can be declared as pointer to const [constParameterPointer] onak-0.6.4/keydb/keydb_fs.c:130:9: style: Parameter 'basepath' can be declared as pointer to const [constParameterPointer] onak-0.6.4/keydb/keydb_fs.c:138:9: style: Parameter 'basepath' can be declared as pointer to const [constParameterPointer] onak-0.6.4/keydb/keydb_fs.c:149:9: style: Parameter 'basepath' can be declared as pointer to const [constParameterPointer] onak-0.6.4/keydb/keydb_fs.c:159:37: style: Parameter 'basepath' can be declared as pointer to const [constParameterPointer] onak-0.6.4/keydb/keydb_fs.c:215:17: style: Variable 'de' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_fs.c:625:56: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'fs_iterate_keys' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_fs.c:727:25: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_fs.c:625:56: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_fs.c:628:18: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'fs_iterate_keys' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_fs.c:727:25: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_fs.c:628:18: note: Parameter 'ctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_fs.c:316:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_fs.c:417:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_hkp.c:61:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGTHING_CRITICAL [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_hkp.c:122:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_URL [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_hkp.c:158:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FINGERPRINT_LEN [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_hkp.c:244:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_putchar [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_hkp.c:359:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable onak_dbctx [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_hkp.c:53:12: error: Width 256 given in format string (no. 2) is larger than destination buffer 'host[256]', use %255[a-zA-Z0-9.-] to prevent overflowing it. [invalidScanfFormatWidth] onak-0.6.4/keydb/keydb_hkp.c:57:3: error: Width 256 given in format string (no. 1) is larger than destination buffer 'host[256]', use %255[a-zA-Z0-9.-] to prevent overflowing it. [invalidScanfFormatWidth] onak-0.6.4/keydb/keydb_hkp.c:246:2: warning: If memory allocation fails, then there is a possible null pointer dereference: addform [nullPointerOutOfMemory] onak-0.6.4/keydb/keydb_hkp.c:245:28: note: Assuming allocation function fails onak-0.6.4/keydb/keydb_hkp.c:245:28: note: Assignment 'addform=curl_easy_escape(privctx->curl,buf.buffer,buf.offset)', assigned value is 0 onak-0.6.4/keydb/keydb_hkp.c:246:2: note: Null pointer dereference onak-0.6.4/keydb/keydb_hkp.c:150:31: style: Parameter 'fingerprint' can be declared as pointer to const. However it seems that 'hkp_fetch_key_fp' is a callback function, if 'fingerprint' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_hkp.c:370:25: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_hkp.c:150:31: note: Parameter 'fingerprint' can be declared as pointer to const onak-0.6.4/keydb/keydb_hkp.c:154:25: style: Variable 'privctx' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_hkp.c:184:25: style: Variable 'privctx' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_hkp.c:208:25: style: Variable 'privctx' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_hkp.c:280:55: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'hkp_delete_key' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_hkp.c:375:23: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_hkp.c:280:55: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_hkp.c:281:40: style: Parameter 'fp' can be declared as pointer to const. However it seems that 'hkp_delete_key' is a callback function, if 'fp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_hkp.c:375:23: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_hkp.c:281:40: note: Parameter 'fp' can be declared as pointer to const onak-0.6.4/keydb/keydb_hkp.c:293:57: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'hkp_iterate_keys' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_hkp.c:379:25: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_hkp.c:293:57: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_hkp.c:295:18: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'hkp_iterate_keys' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_hkp.c:379:25: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_hkp.c:295:18: note: Parameter 'ctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_hkp.c:305:56: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'hkp_starttrans' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_hkp.c:367:23: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_hkp.c:305:56: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_hkp.c:315:54: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'hkp_endtrans' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_hkp.c:368:22: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_hkp.c:315:54: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_hkp.c:357:26: style: Variable 'curl_info' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_keyd.c:108:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FINGERPRINT_LEN [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_keyd.c:157:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FINGERPRINT_LEN [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_keyd.c:212:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGTHING_TRACE [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_keyd.c:284:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ONAK_E_OK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_keyd.c:347:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGTHING_TRACE [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_keyd.c:390:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGTHING_TRACE [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_keyd.c:443:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGTHING_TRACE [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_keyd.c:495:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGTHING_CRITICAL [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_keyd.c:551:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGTHING_CRITICAL [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_keyd.c:370:2: style:inconclusive: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] onak-0.6.4/keydb/keydb_keyd.c:50:57: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'keyd_starttrans' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyd.c:611:23: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyd.c:50:57: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyd.c:60:55: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'keyd_endtrans' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyd.c:612:22: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyd.c:60:55: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyd.c:96:46: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'keyd_fetch_key' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyd.c:613:22: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyd.c:96:46: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyd.c:97:31: style: Parameter 'fingerprint' can be declared as pointer to const. However it seems that 'keyd_fetch_key' is a callback function, if 'fingerprint' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyd.c:613:22: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyd.c:97:31: note: Parameter 'fingerprint' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyd.c:145:49: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'keyd_fetch_key_fp' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyd.c:614:25: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyd.c:145:49: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyd.c:146:31: style: Parameter 'fingerprint' can be declared as pointer to const. However it seems that 'keyd_fetch_key_fp' is a callback function, if 'fingerprint' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyd.c:614:25: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyd.c:146:31: note: Parameter 'fingerprint' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyd.c:194:49: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'keyd_fetch_key_id' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyd.c:615:25: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyd.c:194:49: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyd.c:244:47: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'keyd_delete_key' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyd.c:620:23: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyd.c:244:47: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyd.c:245:31: style: Parameter 'fp' can be declared as pointer to const. However it seems that 'keyd_delete_key' is a callback function, if 'fp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyd.c:620:23: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyd.c:245:31: note: Parameter 'fp' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyd.c:271:46: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'keyd_store_key' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyd.c:618:22: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyd.c:271:46: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyd.c:328:51: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'keyd_fetch_key_text' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyd.c:616:27: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyd.c:328:51: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyd.c:373:54: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'keyd_fetch_key_skshash' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyd.c:617:29: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyd.c:373:54: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyd.c:425:49: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'keyd_iterate_keys' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyd.c:624:25: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyd.c:425:49: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyd.c:104:36: style: Variable 'bytes' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_keyd.c:153:36: style: Variable 'bytes' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_keyd.c:202:36: style: Variable 'bytes' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_keyd.c:335:36: style: Variable 'bytes' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_keyd.c:380:36: style: Variable 'bytes' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_keyd.c:433:36: style: Variable 'bytes' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_keyd.c:434:36: style: Variable 'count' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_keyring.c:93:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_fetchchar [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_keyring.c:316:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPENPGP_PACKET_PUBLICKEY [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_keyring.c:391:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable onak_dbctx [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_keyring.c:61:60: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'keyring_starttrans' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyring.c:448:23: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyring.c:61:60: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyring.c:71:58: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'keyring_endtrans' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyring.c:449:22: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyring.c:71:58: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyring.c:160:58: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'keyring_store_key' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyring.c:455:22: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyring.c:160:58: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyring.c:161:38: style: Parameter 'publickey' can be declared as pointer to const. However it seems that 'keyring_store_key' is a callback function, if 'publickey' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyring.c:455:22: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyring.c:161:38: note: Parameter 'publickey' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyring.c:175:59: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'keyring_delete_key' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyring.c:457:23: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyring.c:175:59: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyring.c:176:40: style: Parameter 'fp' can be declared as pointer to const. However it seems that 'keyring_delete_key' is a callback function, if 'fp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyring.c:457:23: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyring.c:176:40: note: Parameter 'fp' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyring.c:191:63: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'keyring_fetch_key_text' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyring.c:454:27: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyring.c:191:63: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyring.c:230:60: style: Parameter 'dbctx' can be declared as pointer to const. However it seems that 'keyring_update_keys' is a callback function, if 'dbctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyring.c:456:24: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyring.c:230:60: note: Parameter 'dbctx' can be declared as pointer to const onak-0.6.4/keydb/keydb_keyring.c:232:29: style: Parameter 'blacklist' can be declared as pointer to const. However it seems that 'keyring_update_keys' is a callback function, if 'blacklist' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/keydb/keydb_keyring.c:456:24: note: You might need to cast the function pointer here onak-0.6.4/keydb/keydb_keyring.c:232:29: note: Parameter 'blacklist' can be declared as pointer to const onak-0.6.4/keydb/keydb_pg.c:153:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PGRES_TUPLES_OK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_pg.c:224:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PGRES_TUPLES_OK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_pg.c:289:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PGRES_TUPLES_OK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_pg.c:369:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ONAK_E_OK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_pg.c:503:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PGRES_TUPLES_OK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_pg.c:550:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PGRES_TUPLES_OK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_pg.c:617:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PGRES_TUPLES_OK [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_pg.c:688:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable onak_dbctx [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_pg.c:539:6: style: Condition '!intrans' is always true [knownConditionTrueFalse] onak-0.6.4/keydb/keydb_pg.c:536:17: note: Assignment 'intrans=false', assigned value is 0 onak-0.6.4/keydb/keydb_pg.c:539:6: note: Condition '!intrans' is always true onak-0.6.4/keydb/keydb_pg.c:213:9: warning: If memory allocation fails, then there is a possible null pointer dereference: newsearch [nullPointerOutOfMemory] onak-0.6.4/keydb/keydb_pg.c:212:20: note: Assuming allocation function fails onak-0.6.4/keydb/keydb_pg.c:212:20: note: Assignment 'newsearch=malloc(strlen(search)*2+1)', assigned value is 0 onak-0.6.4/keydb/keydb_pg.c:213:9: note: Null pointer dereference onak-0.6.4/keydb/keydb_pg.c:219:4: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: newsearch [nullPointerOutOfMemory] onak-0.6.4/keydb/keydb_pg.c:212:20: note: Assuming allocation function fails onak-0.6.4/keydb/keydb_pg.c:212:20: note: Assignment 'newsearch=malloc(strlen(search)*2+1)', assigned value is 0 onak-0.6.4/keydb/keydb_pg.c:219:4: note: Null pointer dereference onak-0.6.4/keydb/keydb_pg.c:128:8: style: Variable 'oids' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_pg.c:201:8: style: Variable 'oids' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_pg.c:269:8: style: Variable 'oids' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_pg.c:351:36: style: Variable 'curuid' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_pg.c:537:8: style: Variable 'str' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_pg.c:609:8: style: Variable 'oids' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keydb/keydb_pg.c:130:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_pg.c:203:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_pg.c:535:14: style: Variable 'numsigs' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_pg.c:610:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keydb/keydb_stacked.c:121:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clean_policies [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_stacked.c:350:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOGTHING_CRITICAL [valueFlowBailoutIncompleteVar] onak-0.6.4/keydb/keydb_stacked.c:324:13: warning: Either the condition 'dbctx->priv!=NULL' is redundant or there is possible null pointer dereference: privctx. [nullPointerRedundantCheck] onak-0.6.4/keydb/keydb_stacked.c:330:18: note: Assuming that condition 'dbctx->priv!=NULL' is not redundant onak-0.6.4/keydb/keydb_stacked.c:318:37: note: privctx is assigned '(struct onak_stacked_dbctx*)dbctx->priv' here. onak-0.6.4/keydb/keydb_stacked.c:324:13: note: Null pointer dereference onak-0.6.4/keydb/keydb_stacked.c:324:51: style: The comparison 'res == 0' is always true. [knownConditionTrueFalse] onak-0.6.4/keydb/keydb_stacked.c:322:12: note: 'res' is assigned value '0' here. onak-0.6.4/keydb/keydb_stacked.c:324:51: note: The comparison 'res == 0' is always true. onak-0.6.4/keydb/keydctl.c:203:18: error: There is an unknown macro here somewhere. Configuration is required. If ONAK_VERSION is a macro then please configure it. [unknownMacro] onak-0.6.4/keyid.c:275:53: style:inconclusive: Function 'get_skshash' argument 1 names different: declaration 'publickey' definition 'key'. [funcArgNamesDifferent] onak-0.6.4/keyid.h:77:53: note: Function 'get_skshash' argument 1 names different: declaration 'publickey' definition 'key'. onak-0.6.4/keyid.c:275:53: note: Function 'get_skshash' argument 1 names different: declaration 'publickey' definition 'key'. onak-0.6.4/keyid.c:278:30: style: Variable 'curpacket' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keyid.c:324:25: style: Parameter 'search' can be declared as pointer to const [constParameterPointer] onak-0.6.4/keyindex.c:224:8: style: Variable 'sig' can be declared as pointer to const [constVariablePointer] onak-0.6.4/keyindex.c:223:17: style: Variable 'sigid' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keyindex.c:323:23: style: Variable 'created_time' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keyindex.c:440:27: style: Variable 'created_time' is assigned a value that is never used. [unreadVariable] onak-0.6.4/keyindex.c:560:27: style: Variable 'created_time' is assigned a value that is never used. [unreadVariable] onak-0.6.4/ll.c:108:33: style: Parameter 'curll' can be declared as pointer to const [constParameterPointer] onak-0.6.4/log.c:197:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] onak-0.6.4/main.c:27:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] onak-0.6.4/marshal.c:83:29: warning: If memory allocation fails, then there is a possible null pointer dereference: hash [nullPointerOutOfMemory] onak-0.6.4/marshal.c:82:15: note: Assuming allocation function fails onak-0.6.4/marshal.c:82:15: note: Assignment 'hash=calloc(sizeof(struct skshash),1)', assigned value is 0 onak-0.6.4/marshal.c:83:29: note: Null pointer dereference onak-0.6.4/marshal.c:167:3: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] onak-0.6.4/marshal.c:165:16: note: Assuming allocation function fails onak-0.6.4/marshal.c:165:16: note: Assignment 'array=malloc(*size*sizeof(void*))', assigned value is 0 onak-0.6.4/marshal.c:167:3: note: Null pointer dereference onak-0.6.4/maxpath.c:97:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] onak-0.6.4/maxpath.c:79:4: warning: Possible null pointer dereference: from [nullPointer] onak-0.6.4/maxpath.c:40:0: note: Assignment 'from=NULL', assigned value is 0 onak-0.6.4/maxpath.c:54:35: note: Assuming condition is false onak-0.6.4/maxpath.c:79:4: note: Null pointer dereference onak-0.6.4/maxpath.c:80:4: warning: Possible null pointer dereference: to [nullPointer] onak-0.6.4/maxpath.c:40:0: note: Assignment 'to=NULL', assigned value is 0 onak-0.6.4/maxpath.c:54:35: note: Assuming condition is false onak-0.6.4/maxpath.c:80:4: note: Null pointer dereference onak-0.6.4/maxpath.c:82:20: warning: Possible null pointer dereference: to [nullPointer] onak-0.6.4/maxpath.c:40:0: note: Assignment 'to=NULL', assigned value is 0 onak-0.6.4/maxpath.c:54:35: note: Assuming condition is false onak-0.6.4/maxpath.c:82:20: note: Null pointer dereference onak-0.6.4/maxpath.c:82:31: warning: Possible null pointer dereference: from [nullPointer] onak-0.6.4/maxpath.c:40:0: note: Assignment 'from=NULL', assigned value is 0 onak-0.6.4/maxpath.c:54:35: note: Assuming condition is false onak-0.6.4/maxpath.c:82:31: note: Null pointer dereference onak-0.6.4/maxpath.c:35:20: style: Variable 'from' can be declared as pointer to const [constVariablePointer] onak-0.6.4/maxpath.c:35:27: style: Variable 'to' can be declared as pointer to const [constVariablePointer] onak-0.6.4/mem.c:36:58: style: Parameter 'packet' can be declared as pointer to const [constParameterPointer] onak-0.6.4/onak-conf.c:416:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFIGDIR [valueFlowBailoutIncompleteVar] onak-0.6.4/onak-conf.c:515:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] onak-0.6.4/onak-conf.c:238:5: warning: If memory allocation fails, then there is a possible null pointer dereference: backend [nullPointerOutOfMemory] onak-0.6.4/onak-conf.c:236:21: note: Assuming allocation function fails onak-0.6.4/onak-conf.c:236:21: note: Assignment 'backend=calloc(1,sizeof(struct onak_db_config))', assigned value is 0 onak-0.6.4/onak-conf.c:238:5: note: Null pointer dereference onak-0.6.4/onak-conf.c:390:13: warning: If memory allocation fails, then there is a possible null pointer dereference: conf [nullPointerOutOfMemory] onak-0.6.4/onak-conf.c:389:17: note: Assuming allocation function fails onak-0.6.4/onak-conf.c:389:17: note: Assignment 'conf=malloc(len)', assigned value is 0 onak-0.6.4/onak-conf.c:390:13: note: Null pointer dereference onak-0.6.4/onak-conf.c:404:13: warning: If memory allocation fails, then there is a possible null pointer dereference: conf [nullPointerOutOfMemory] onak-0.6.4/onak-conf.c:403:17: note: Assuming allocation function fails onak-0.6.4/onak-conf.c:403:17: note: Assignment 'conf=malloc(len)', assigned value is 0 onak-0.6.4/onak-conf.c:404:13: note: Null pointer dereference onak-0.6.4/onak-conf.c:523:10: warning: If resource allocation fails, then there is a possible null pointer dereference: conffile [nullPointerOutOfResources] onak-0.6.4/onak-conf.c:513:19: note: Assuming allocation function fails onak-0.6.4/onak-conf.c:513:19: note: Assignment 'conffile=fopen(configfile,"w")', assigned value is 0 onak-0.6.4/onak-conf.c:523:10: note: Null pointer dereference onak-0.6.4/onak-conf.c:67:74: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] onak-0.6.4/onak-conf.c:203:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] onak-0.6.4/onak-conf.c:369:8: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] onak-0.6.4/onak-conf.c:553:26: style: Variable 'backend' can be declared as pointer to const [constVariablePointer] onak-0.6.4/onak.c:139:15: error: There is an unknown macro here somewhere. Configuration is required. If ONAK_VERSION is a macro then please configure it. [unknownMacro] onak-0.6.4/parsekey.c:442:39: style: Condition 'packets->packet->length>191' is always true [knownConditionTrueFalse] onak-0.6.4/parsekey.c:439:32: note: Assuming that condition 'packets->packet->length<192' is not redundant onak-0.6.4/parsekey.c:442:39: note: Condition 'packets->packet->length>191' is always true onak-0.6.4/parsekey.c:166:2: portability: %zd in format string (no. 3) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] onak-0.6.4/parsekey.c:110:11: warning: If memory allocation fails, then there is a possible null pointer dereference: curkey [nullPointerOutOfMemory] onak-0.6.4/parsekey.c:104:26: note: Assuming allocation function fails onak-0.6.4/parsekey.c:104:26: note: Assignment 'curkey->next=malloc(sizeof(*curkey))', assigned value is 0 onak-0.6.4/parsekey.c:105:20: note: Assignment 'curkey=curkey->next', assigned value is 0 onak-0.6.4/parsekey.c:110:11: note: Null pointer dereference onak-0.6.4/parsekey.c:111:4: warning: If memory allocation fails, then there is a possible null pointer dereference: curkey [nullPointerOutOfMemory] onak-0.6.4/parsekey.c:104:26: note: Assuming allocation function fails onak-0.6.4/parsekey.c:104:26: note: Assignment 'curkey->next=malloc(sizeof(*curkey))', assigned value is 0 onak-0.6.4/parsekey.c:105:20: note: Assignment 'curkey=curkey->next', assigned value is 0 onak-0.6.4/parsekey.c:111:4: note: Null pointer dereference onak-0.6.4/parsekey.c:221:11: warning: If memory allocation fails, then there is a possible null pointer dereference: curpacket [nullPointerOutOfMemory] onak-0.6.4/parsekey.c:213:29: note: Assuming allocation function fails onak-0.6.4/parsekey.c:213:29: note: Assignment 'curpacket->next=malloc(sizeof(*curpacket))', assigned value is 0 onak-0.6.4/parsekey.c:215:26: note: Assignment 'curpacket=curpacket->next', assigned value is 0 onak-0.6.4/parsekey.c:221:11: note: Null pointer dereference onak-0.6.4/parsekey.c:222:4: warning: If memory allocation fails, then there is a possible null pointer dereference: curpacket [nullPointerOutOfMemory] onak-0.6.4/parsekey.c:213:29: note: Assuming allocation function fails onak-0.6.4/parsekey.c:213:29: note: Assignment 'curpacket->next=malloc(sizeof(*curpacket))', assigned value is 0 onak-0.6.4/parsekey.c:215:26: note: Assignment 'curpacket=curpacket->next', assigned value is 0 onak-0.6.4/parsekey.c:222:4: note: Null pointer dereference onak-0.6.4/parsekey.c:224:11: warning: If memory allocation fails, then there is a possible null pointer dereference: curpacket [nullPointerOutOfMemory] onak-0.6.4/parsekey.c:213:29: note: Assuming allocation function fails onak-0.6.4/parsekey.c:213:29: note: Assignment 'curpacket->next=malloc(sizeof(*curpacket))', assigned value is 0 onak-0.6.4/parsekey.c:215:26: note: Assignment 'curpacket=curpacket->next', assigned value is 0 onak-0.6.4/parsekey.c:224:11: note: Null pointer dereference onak-0.6.4/parsekey.c:227:4: warning: If memory allocation fails, then there is a possible null pointer dereference: curpacket [nullPointerOutOfMemory] onak-0.6.4/parsekey.c:213:29: note: Assuming allocation function fails onak-0.6.4/parsekey.c:213:29: note: Assignment 'curpacket->next=malloc(sizeof(*curpacket))', assigned value is 0 onak-0.6.4/parsekey.c:215:26: note: Assignment 'curpacket=curpacket->next', assigned value is 0 onak-0.6.4/parsekey.c:227:4: note: Null pointer dereference onak-0.6.4/parsekey.c:232:8: warning: If memory allocation fails, then there is a possible null pointer dereference: curpacket [nullPointerOutOfMemory] onak-0.6.4/parsekey.c:213:29: note: Assuming allocation function fails onak-0.6.4/parsekey.c:213:29: note: Assignment 'curpacket->next=malloc(sizeof(*curpacket))', assigned value is 0 onak-0.6.4/parsekey.c:215:26: note: Assignment 'curpacket=curpacket->next', assigned value is 0 onak-0.6.4/parsekey.c:232:8: note: Null pointer dereference onak-0.6.4/parsekey.c:187:11: style:inconclusive: Function 'read_openpgp_stream' argument 2 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] onak-0.6.4/parsekey.c:188:34: style:inconclusive: Function 'read_openpgp_stream' argument 3 names different: declaration '' definition 'packets'. [funcArgNamesDifferentUnnamed] onak-0.6.4/parsekey.c:189:9: style:inconclusive: Function 'read_openpgp_stream' argument 4 names different: declaration '' definition 'maxnum'. [funcArgNamesDifferentUnnamed] onak-0.6.4/parsekey.c:427:11: style:inconclusive: Function 'write_openpgp_stream' argument 2 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] onak-0.6.4/parsekey.c:428:33: style:inconclusive: Function 'write_openpgp_stream' argument 3 names different: declaration '' definition 'packets'. [funcArgNamesDifferentUnnamed] onak-0.6.4/parsekey.c:164:41: style: Parameter 'packet' can be declared as pointer to const [constParameterPointer] onak-0.6.4/parsekey.c:430:24: style: Variable 'curchar' is assigned a value that is never used. [unreadVariable] onak-0.6.4/photoid.c:42:38: style: Variable 'j' is assigned a value that is never used. [unreadVariable] onak-0.6.4/sendsync.c:32:50: style: Parameter 'c' can be declared as pointer to const. However it seems that 'fd_putchar' is a callback function, if 'c' is declared with const you might also need to cast function pointer(s). [constParameterCallback] onak-0.6.4/sendsync.c:73:24: note: You might need to cast the function pointer here onak-0.6.4/sendsync.c:32:50: note: Parameter 'c' can be declared as pointer to const onak-0.6.4/sendsync.c:46:30: style: Variable 'cursite' can be declared as pointer to const [constVariablePointer] onak-0.6.4/sha1.c:54:19: style: union member 'CHAR64LONG16::c' is never used. [unusedStructMember] onak-0.6.4/sha1x.c:77:41: error: Uninitialized variable: evenbuf [uninitvar] onak-0.6.4/sha1x.c:71:15: note: Assuming condition is false onak-0.6.4/sha1x.c:77:41: note: Uninitialized variable: evenbuf onak-0.6.4/sixdegrees.c:148:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] onak-0.6.4/splitkeys.c:44:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] onak-0.6.4/splitkeys.c:31:26: style: Parameter 'argv' can be declared as const array [constParameter] onak-0.6.4/splitkeys.c:37:16: style: Variable 'outfd' is assigned a value that is never used. [unreadVariable] onak-0.6.4/stats.c:86:55: style: Condition 'have->colour==0' is always true [knownConditionTrueFalse] onak-0.6.4/stats.c:83:54: note: Assuming that condition 'have->colour==0' is not redundant onak-0.6.4/stats.c:86:55: note: Condition 'have->colour==0' is always true onak-0.6.4/stats.c:170:3: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] onak-0.6.4/stats.c:70:21: style: Parameter 'have' can be declared as pointer to const [constParameterPointer] onak-0.6.4/wotsap.c:110:51: error: There is an unknown macro here somewhere. Configuration is required. If ONAK_VERSION is a macro then please configure it. [unknownMacro] onak-0.6.4/cgi/getcgi.c:82:15: warning: If memory allocation fails, then there is a possible null pointer dereference: url [ctunullpointerOutOfMemory] onak-0.6.4/cgi/getcgi.c:188:38: note: Assuming allocation function fails onak-0.6.4/cgi/getcgi.c:188:16: note: Calling function unescape_url, 1st argument is null onak-0.6.4/cgi/getcgi.c:82:15: note: Dereferencing argument url that is null diff: head onak-0.6.4/armor.c:325:11: style:inconclusive: Function 'armor_openpgp_stream' argument 2 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] head onak-0.6.4/armor.c:326:33: style:inconclusive: Function 'armor_openpgp_stream' argument 3 names different: declaration '' definition 'packets'. [funcArgNamesDifferentUnnamed] head onak-0.6.4/armor.c:353:11: style:inconclusive: Function 'dearmor_openpgp_stream' argument 2 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] head onak-0.6.4/armor.c:354:34: style:inconclusive: Function 'dearmor_openpgp_stream' argument 3 names different: declaration '' definition 'packets'. [funcArgNamesDifferentUnnamed] head onak-0.6.4/gpgstats-0.0.2/dotrees.c:70:27: style:inconclusive: Function 'readkeys' argument 1 names different: declaration '' definition 'filename'. [funcArgNamesDifferentUnnamed] 2.20.0 onak-0.6.4/keydb/keydb_hkp.c:108:9: style: Parameter 'url' can be declared as pointer to const [constParameterPointer] head onak-0.6.4/keydb/keydb_stacked.c:324:13: warning: Either the condition 'dbctx->priv!=NULL' is redundant or there is possible null pointer dereference: privctx. [nullPointerRedundantCheck] onak-0.6.4/keydb/keydb_stacked.c:330:18: note: Assuming that condition 'dbctx->priv!=NULL' is not redundant onak-0.6.4/keydb/keydb_stacked.c:318:37: note: privctx is assigned '(struct onak_stacked_dbctx*)dbctx->priv' here. onak-0.6.4/keydb/keydb_stacked.c:324:13: note: Null pointer dereference 2.20.0 onak-0.6.4/keydb/keydb_stacked.c:324:13: warning: Either the condition 'dbctx->priv!=NULL' is redundant or there is possible null pointer dereference: privctx. [nullPointerRedundantCheck] onak-0.6.4/keydb/keydb_stacked.c:330:18: note: Assuming that condition 'dbctx->priv!=NULL' is not redundant onak-0.6.4/keydb/keydb_stacked.c:319:4: note: Assignment 'privctx=(struct onak_stacked_dbctx*)dbctx->priv', assigned value is 0 onak-0.6.4/keydb/keydb_stacked.c:324:13: note: Null pointer dereference 2.20.0 onak-0.6.4/onak-conf.c:391:21: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: conf [nullPointerOutOfMemory] onak-0.6.4/onak-conf.c:389:17: note: Assuming allocation function fails onak-0.6.4/onak-conf.c:389:17: note: Assignment 'conf=malloc(len)', assigned value is 0 onak-0.6.4/onak-conf.c:391:21: note: Null pointer dereference 2.20.0 onak-0.6.4/onak-conf.c:405:21: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: conf [nullPointerOutOfMemory] onak-0.6.4/onak-conf.c:403:17: note: Assuming allocation function fails onak-0.6.4/onak-conf.c:403:17: note: Assignment 'conf=malloc(len)', assigned value is 0 onak-0.6.4/onak-conf.c:405:21: note: Null pointer dereference head onak-0.6.4/parsekey.c:187:11: style:inconclusive: Function 'read_openpgp_stream' argument 2 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] head onak-0.6.4/parsekey.c:188:34: style:inconclusive: Function 'read_openpgp_stream' argument 3 names different: declaration '' definition 'packets'. [funcArgNamesDifferentUnnamed] head onak-0.6.4/parsekey.c:189:9: style:inconclusive: Function 'read_openpgp_stream' argument 4 names different: declaration '' definition 'maxnum'. [funcArgNamesDifferentUnnamed] head onak-0.6.4/parsekey.c:427:11: style:inconclusive: Function 'write_openpgp_stream' argument 2 names different: declaration '' definition 'ctx'. [funcArgNamesDifferentUnnamed] head onak-0.6.4/parsekey.c:428:33: style:inconclusive: Function 'write_openpgp_stream' argument 3 names different: declaration '' definition 'packets'. [funcArgNamesDifferentUnnamed] DONE