2025-06-30 12:55 ftp://ftp.de.debian.org/debian/pool/main/r/redisearch/redisearch_1.2.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=bsd --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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: 7c1981b (2025-06-30 13:50:54 +0200) count: 1907 1845 elapsed-time: 17.1 17.5 head-timing-info: old-timing-info: head results: RediSearch-1.2.2/src/aggregate/filter.c:37:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_OK [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/aggregate_plan.c:732:42: error: syntax error [syntaxError] RediSearch-1.2.2/src/aggregate/aggregate_exec.c:12:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pcb [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/aggregate_exec.c:60:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REDISMODULE_OK [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/aggregate_exec.c:99:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cursorReadSize [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/aggregate_exec.c:138:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSCursors [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/aggregate_exec.c:164:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REDISMODULE_OK [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/expr/expression.c:47:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSValue_String [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/expr/expression.c:63:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSValue_Number [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/expr/expression.c:79:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cond [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/expr/expression.c:97:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSKEY_UNCACHED [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/expr/expression.c:181:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSVALUE_STATIC [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/expr/expression.c:197:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSVALUE_STATIC [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/expr/expression.c:249:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSVALUE_STATIC [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/expr/expression.c:378:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSValue_Null [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/function.c:46:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSValue_Null [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducer.h:59:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducer.h:58:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducer.h:58:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducer.h:59:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducer.h:60:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducer.h:58:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducer.h:58:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducer.h:60:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/aggregate_exec.c:40:71: style:inconclusive: Function 'AggregateCommand_ExecAggregateEx' argument 5 names different: declaration 'setings' definition 'settings'. [funcArgNamesDifferent] RediSearch-1.2.2/src/aggregate/aggregate.h:83:71: note: Function 'AggregateCommand_ExecAggregateEx' argument 5 names different: declaration 'setings' definition 'settings'. RediSearch-1.2.2/src/aggregate/aggregate_exec.c:40:71: note: Function 'AggregateCommand_ExecAggregateEx' argument 5 names different: declaration 'setings' definition 'settings'. RediSearch-1.2.2/src/aggregate/aggregate_request.c:20:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CmdArg_String [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/aggregate_request.c:25:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CmdArg_Array [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/aggregate_request.c:60:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CmdSchema_Required [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/aggregate_request.c:120:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CMDPARSE_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/aggregate_request.c:132:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable red [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/aggregate_request.c:173:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable explicitReturn [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/aggregate_request.c:267:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REDISMODULE_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/aggregate_exec.c:58:7: style: Variable 'hasCursor' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/aggregate/functions/date.c:16:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/date.c:76:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/date.c:101:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/date.c:118:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/date.c:143:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/date.c:164:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/date.c:185:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/date.c:205:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/date.c:226:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/date.c:251:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/date.c:270:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/expr/expression.c:10:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/expr/expression.c:9:26: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/expr/expression.c:9:26: note: Assignment 'ret=malloc(sizeof(struct RSArgList)+((e?1:0)*sizeof(struct RSExpr*)))', assigned value is 0 RediSearch-1.2.2/src/aggregate/expr/expression.c:10:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/expr/expression.c:11:10: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/expr/expression.c:9:26: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/expr/expression.c:9:26: note: Assignment 'ret=malloc(sizeof(struct RSArgList)+((e?1:0)*sizeof(struct RSExpr*)))', assigned value is 0 RediSearch-1.2.2/src/aggregate/expr/expression.c:11:10: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/expr/expression.c:23:3: warning: If memory allocation fails, then there is a possible null pointer dereference: e [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/expr/expression.c:22:21: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/expr/expression.c:22:21: note: Assignment 'e=malloc(sizeof(*e))', assigned value is 0 RediSearch-1.2.2/src/aggregate/expr/expression.c:23:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/functions/math.c:23:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/math.c:24:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/math.c:25:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/expr/expression.c:108:26: style:inconclusive: Function 'RSExpr_Free' argument 1 names different: declaration 'expr' definition 'e'. [funcArgNamesDifferent] RediSearch-1.2.2/src/aggregate/expr/expression.h:114:26: note: Function 'RSExpr_Free' argument 1 names different: declaration 'expr' definition 'e'. RediSearch-1.2.2/src/aggregate/expr/expression.c:108:26: note: Function 'RSExpr_Free' argument 1 names different: declaration 'expr' definition 'e'. RediSearch-1.2.2/src/aggregate/functions/math.c:26:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/expr/expression.c:133:27: style:inconclusive: Function 'RSExpr_Print' argument 1 names different: declaration 'expr' definition 'e'. [funcArgNamesDifferent] RediSearch-1.2.2/src/aggregate/expr/expression.h:115:27: note: Function 'RSExpr_Print' argument 1 names different: declaration 'expr' definition 'e'. RediSearch-1.2.2/src/aggregate/expr/expression.c:133:27: note: Function 'RSExpr_Print' argument 1 names different: declaration 'expr' definition 'e'. RediSearch-1.2.2/src/aggregate/functions/math.c:27:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/math.c:28:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/math.c:29:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/expr/expression.c:33:9: style: Variable 'end' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/expr/expression.c:257:12: style: Variable 'l_ptr' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/expr/expression.c:258:12: style: Variable 'r_ptr' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/projector.c:40:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_OK [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/string.c:35:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable str [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/string.c:50:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/string.c:70:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/string.c:91:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/string.c:128:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/functions/string.c:225:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/projector.c:20:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/projector.c:19:29: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/projector.c:19:29: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/aggregate/projector.c:20:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/aggregate_request.c:154:54: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/aggregate/aggregate_request.c:159:51: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/aggregate/aggregate_request.c:276:19: style: Variable 'ctx' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/aggregate_request.c:341:62: style: Parameter 'req' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/aggregate/functions/date.c:292:9: style: Variable 'rc' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/aggregate_request.c:197:15: style: Unused variable: key [unusedVariable] RediSearch-1.2.2/src/aggregate/aggregate_request.c:276:23: style: Variable 'ctx' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/aggregate/aggregate_request.c:276:19: style: Variable 'ctx' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/aggregate/functions/date.c:61:30: style: Unused variable: utc_hrs [unusedVariable] RediSearch-1.2.2/src/aggregate/reducers/count.c:34:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Reducer_GenericFree [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/group_by.c:126:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RS_RESULT_OK [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/group_by.c:163:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSValue_Array [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/group_by.c:190:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RS_RESULT_EOF [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/count.c:9:13: style: Variable 'ba' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/reducers/count.c:9:16: style: Variable 'ba' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/aggregate/reducers/count.c:9:13: style: Variable 'ba' is assigned a value that is never used. [unreadVariable] lexer.rl:252:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITY [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/deviation.c:39:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSValue_Array [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/deviation.c:71:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Reducer_GenericFree [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/group_by.c:235:3: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assignment 'g=malloc(sizeof(*g))', assigned value is 0 RediSearch-1.2.2/src/aggregate/group_by.c:235:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/group_by.c:236:3: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assignment 'g=malloc(sizeof(*g))', assigned value is 0 RediSearch-1.2.2/src/aggregate/group_by.c:236:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/group_by.c:237:3: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assignment 'g=malloc(sizeof(*g))', assigned value is 0 RediSearch-1.2.2/src/aggregate/group_by.c:237:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/group_by.c:238:3: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assignment 'g=malloc(sizeof(*g))', assigned value is 0 RediSearch-1.2.2/src/aggregate/group_by.c:238:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/group_by.c:239:3: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assignment 'g=malloc(sizeof(*g))', assigned value is 0 RediSearch-1.2.2/src/aggregate/group_by.c:239:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/group_by.c:239:24: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assignment 'g=malloc(sizeof(*g))', assigned value is 0 RediSearch-1.2.2/src/aggregate/group_by.c:239:24: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/group_by.c:240:3: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assignment 'g=malloc(sizeof(*g))', assigned value is 0 RediSearch-1.2.2/src/aggregate/group_by.c:240:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/group_by.c:241:3: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assignment 'g=malloc(sizeof(*g))', assigned value is 0 RediSearch-1.2.2/src/aggregate/group_by.c:241:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/group_by.c:242:3: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assignment 'g=malloc(sizeof(*g))', assigned value is 0 RediSearch-1.2.2/src/aggregate/group_by.c:242:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:34:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSValue_Null [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:68:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Reducer_GenericFreeWithStaticPrivdata [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:94:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSValue_Null [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:138:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Reducer_GenericFreeWithStaticPrivdata [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:243:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Reducer_GenericFreeWithStaticPrivdata [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/deviation.c:13:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/deviation.c:12:24: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/deviation.c:12:24: note: Assignment 'dctx=calloc(1,sizeof(*dctx))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/deviation.c:13:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/deviation.c:14:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/deviation.c:12:24: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/deviation.c:12:24: note: Assignment 'dctx=calloc(1,sizeof(*dctx))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/deviation.c:14:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/deviation.c:69:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/deviation.c:68:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/deviation.c:68:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/deviation.c:69:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/deviation.c:70:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/deviation.c:68:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/deviation.c:68:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/deviation.c:70:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/deviation.c:71:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/deviation.c:68:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/deviation.c:68:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/deviation.c:71:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/deviation.c:72:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/deviation.c:68:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/deviation.c:68:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/deviation.c:72:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/deviation.c:73:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/deviation.c:68:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/deviation.c:68:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/deviation.c:73:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/deviation.c:74:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/deviation.c:68:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/deviation.c:68:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/deviation.c:74:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/deviation.c:75:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/deviation.c:68:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/deviation.c:68:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/deviation.c:75:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/deviation.c:56:11: style: Variable 'dctx' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/group_by.c:46:7: style: struct member 'Grouper::sortKeyIdx' is never used. [unusedStructMember] RediSearch-1.2.2/src/aggregate/group_by.c:103:9: style: Unused variable: s [unusedVariable] RediSearch-1.2.2/src/aggregate/group_by.c:104:12: style: Unused variable: l [unusedVariable] RediSearch-1.2.2/src/aggregate/reducer.c:222:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSValue_Null [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/minmax.c:23:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/minmax.c:69:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Reducer_GenericFree [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/first_value.c:87:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Reducer_GenericFree [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:129:10: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:127:21: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:127:21: note: Assignment 'str=malloc(sizeof(hdr)+ctr->hll.size)', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:129:10: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:130:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:127:21: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:127:21: note: Assignment 'str=malloc(sizeof(hdr)+ctr->hll.size)', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:130:14: note: Null pointer addition RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:21:13: style: Variable 'ba' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:82:13: style: Variable 'ba' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:195:18: warning: Shifting 32-bit value by 64 bits is undefined behaviour. See condition at line 189. [shiftTooManyBits] RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:189:17: note: Assuming that condition 'hdr->bits>64' is not redundant RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:195:18: note: Shift RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:21:16: style: Variable 'ba' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:21:13: style: Variable 'ba' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:82:16: style: Variable 'ba' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:82:13: style: Variable 'ba' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/aggregate/reducers/first_value.c:79:3: warning: If memory allocation fails, then there is a possible null pointer dereference: params [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/first_value.c:78:43: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/first_value.c:78:43: note: Assignment 'params=malloc(sizeof(*params))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/first_value.c:79:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/first_value.c:80:3: warning: If memory allocation fails, then there is a possible null pointer dereference: params [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/first_value.c:78:43: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/first_value.c:78:43: note: Assignment 'params=malloc(sizeof(*params))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/first_value.c:80:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/first_value.c:81:3: warning: If memory allocation fails, then there is a possible null pointer dereference: params [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/first_value.c:78:43: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/first_value.c:78:43: note: Assignment 'params=malloc(sizeof(*params))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/first_value.c:81:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/minmax.c:67:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/minmax.c:66:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/minmax.c:66:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/minmax.c:67:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/minmax.c:68:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/minmax.c:66:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/minmax.c:66:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/minmax.c:68:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/minmax.c:69:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/minmax.c:66:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/minmax.c:66:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/minmax.c:69:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/minmax.c:70:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/minmax.c:66:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/minmax.c:66:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/minmax.c:70:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/minmax.c:71:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/minmax.c:66:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/minmax.c:66:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/minmax.c:71:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/minmax.c:75:5: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/minmax.c:66:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/minmax.c:66:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/minmax.c:75:5: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/minmax.c:78:5: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/minmax.c:66:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/minmax.c:66:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/minmax.c:78:5: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/minmax.c:82:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/minmax.c:66:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/minmax.c:66:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/minmax.c:82:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/first_value.c:21:13: style: Variable 'ba' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/reducers/first_value.c:21:16: style: Variable 'ba' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/aggregate/reducers/first_value.c:21:13: style: Variable 'ba' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/aggregate/reducers/quantile.c:29:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSValue_Array [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/quantile.c:62:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Reducer_GenericFree [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/quantile.c:60:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/quantile.c:59:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/quantile.c:59:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/quantile.c:60:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/quantile.c:61:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/quantile.c:59:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/quantile.c:59:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/quantile.c:61:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/quantile.c:62:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/quantile.c:59:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/quantile.c:59:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/quantile.c:62:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/quantile.c:63:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/quantile.c:59:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/quantile.c:59:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/quantile.c:63:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/quantile.c:64:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/quantile.c:59:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/quantile.c:59:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/quantile.c:64:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/quantile.c:65:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/quantile.c:59:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/quantile.c:59:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/quantile.c:65:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/quantile.c:69:3: warning: If memory allocation fails, then there is a possible null pointer dereference: params [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/quantile.c:67:34: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/quantile.c:67:34: note: Assignment 'params=calloc(1,sizeof(*params))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/quantile.c:69:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/quantile.c:70:3: warning: If memory allocation fails, then there is a possible null pointer dereference: params [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/quantile.c:67:34: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/quantile.c:67:34: note: Assignment 'params=calloc(1,sizeof(*params))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/quantile.c:70:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/quantile.c:71:3: warning: If memory allocation fails, then there is a possible null pointer dereference: params [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/quantile.c:67:34: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/quantile.c:67:34: note: Assignment 'params=calloc(1,sizeof(*params))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/quantile.c:71:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/quantile.c:72:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/quantile.c:59:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/quantile.c:59:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/quantile.c:72:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:70:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Reducer_GenericFree [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/sum.c:26:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSValue_Number [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/sum.c:63:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Reducer_GenericFreeWithStaticPrivdata [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/sum.c:61:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/sum.c:60:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/sum.c:60:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/sum.c:61:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/sum.c:62:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/sum.c:60:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/sum.c:60:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/sum.c:62:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/sum.c:63:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/sum.c:60:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/sum.c:60:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/sum.c:63:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/sum.c:64:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/sum.c:60:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/sum.c:60:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/sum.c:64:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/sum.c:65:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/sum.c:60:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/sum.c:60:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/sum.c:65:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/sum.c:66:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/sum.c:60:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/sum.c:60:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/sum.c:66:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/sum.c:68:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/sum.c:60:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/sum.c:60:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/sum.c:68:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/sum.c:39:18: style: Variable 'ctr' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:49:10: warning: If memory allocation fails, then there is a possible null pointer dereference: arr [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:48:25: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:48:25: note: Assignment 'arr=calloc(top,sizeof(RSValue*))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:49:10: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:68:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:67:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:67:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:68:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:69:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:67:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:67:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:69:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:70:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:67:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:67:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:70:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:71:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:67:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:67:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:71:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:72:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:67:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:67:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:72:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:73:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:67:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:67:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:73:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:75:3: warning: If memory allocation fails, then there is a possible null pointer dereference: props [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:74:48: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:74:48: note: Assignment 'props=malloc(sizeof(*props))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:75:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:76:3: warning: If memory allocation fails, then there is a possible null pointer dereference: props [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:74:48: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:74:48: note: Assignment 'props=malloc(sizeof(*props))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:76:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:77:3: warning: If memory allocation fails, then there is a possible null pointer dereference: props [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:74:48: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:74:48: note: Assignment 'props=malloc(sizeof(*props))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:77:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:78:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:67:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:67:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/random_sample.c:78:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/to_list.c:23:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSValue_Array [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/to_list.c:52:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSValue [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/to_list.c:80:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Reducer_GenericFree [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/benchmark/time_sample.h:17:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/benchmark/time_sample.h:27:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/aggregate/reducers/to_list.c:78:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/to_list.c:77:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/to_list.c:77:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/to_list.c:78:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/to_list.c:79:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/to_list.c:77:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/to_list.c:77:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/to_list.c:79:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/to_list.c:80:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/to_list.c:77:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/to_list.c:77:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/to_list.c:80:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/to_list.c:81:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/to_list.c:77:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/to_list.c:77:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/to_list.c:81:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/to_list.c:82:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/to_list.c:77:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/to_list.c:77:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/to_list.c:82:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/to_list.c:83:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/to_list.c:77:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/to_list.c:77:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/to_list.c:83:3: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/reducers/to_list.c:84:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/to_list.c:77:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/to_list.c:77:22: note: Assignment 'r=malloc(sizeof(*r))', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/to_list.c:84:3: note: Null pointer dereference lexer.c:178:5: style: Redundant initialization for 'ts'. The initialized value is overwritten before it is read. [redundantInitialization] lexer.rl:264:18: note: ts is initialized lexer.c:178:5: note: ts is overwritten lexer.c:179:5: style: Redundant initialization for 'te'. The initialized value is overwritten before it is read. [redundantInitialization] lexer.rl:265:18: note: te is initialized lexer.c:179:5: note: te is overwritten RediSearch-1.2.2/src/benchmark/benchmark.c:32:18: style: Local variable 'i' shadows outer variable [shadowVariable] RediSearch-1.2.2/src/benchmark/benchmark.c:20:14: note: Shadowed declaration RediSearch-1.2.2/src/benchmark/benchmark.c:32:18: note: Shadow variable RediSearch-1.2.2/src/benchmark/benchmark.c:35:18: style: Local variable 'i' shadows outer variable [shadowVariable] RediSearch-1.2.2/src/benchmark/benchmark.c:20:14: note: Shadowed declaration RediSearch-1.2.2/src/benchmark/benchmark.c:35:18: note: Shadow variable RediSearch-1.2.2/src/benchmark/time_sample.h:34:53: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/benchmark/time_sample.h:39:53: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/benchmark/time_sample.h:44:51: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/aggregate/functions/string.c:35:9: warning: If memory allocation fails, then there is a possible null pointer dereference: arr [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/functions/string.c:33:29: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/functions/string.c:33:29: note: Assignment 'arr=calloc(n,sizeof(RSValue*))', assigned value is 0 RediSearch-1.2.2/src/aggregate/functions/string.c:35:9: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/functions/string.c:275:5: warning: If memory allocation fails, then there is a possible null pointer dereference: vals [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/functions/string.c:273:26: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/functions/string.c:273:26: note: Assignment 'vals=calloc(l,sizeof(*vals))', assigned value is 0 RediSearch-1.2.2/src/aggregate/functions/string.c:275:5: note: Null pointer dereference RediSearch-1.2.2/src/aggregate/functions/string.c:24:17: style: Variable 'res' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/functions/string.c:57:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/functions/string.c:78:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/functions/string.c:211:9: style: Variable 'start' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/functions/string.c:211:17: style: Variable 'end' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/functions/string.c:211:28: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/functions/string.c:241:9: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/aggregate/functions/string.c:213:14: style: Variable 'start' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/buffer.c:45:3: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] RediSearch-1.2.2/src/buffer.c:54:23: note: Assuming allocation function fails RediSearch-1.2.2/src/buffer.c:54:23: note: Assignment 'buf=malloc(sizeof(struct Buffer))', assigned value is 0 RediSearch-1.2.2/src/buffer.c:55:15: note: Calling function 'Buffer_Init', 1st argument 'buf' value is 0 RediSearch-1.2.2/src/buffer.c:45:3: note: Null pointer dereference RediSearch-1.2.2/src/buffer.c:46:3: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] RediSearch-1.2.2/src/buffer.c:54:23: note: Assuming allocation function fails RediSearch-1.2.2/src/buffer.c:54:23: note: Assignment 'buf=malloc(sizeof(struct Buffer))', assigned value is 0 RediSearch-1.2.2/src/buffer.c:55:15: note: Calling function 'Buffer_Init', 1st argument 'buf' value is 0 RediSearch-1.2.2/src/buffer.c:46:3: note: Null pointer dereference RediSearch-1.2.2/src/buffer.c:47:3: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] RediSearch-1.2.2/src/buffer.c:54:23: note: Assuming allocation function fails RediSearch-1.2.2/src/buffer.c:54:23: note: Assignment 'buf=malloc(sizeof(struct Buffer))', assigned value is 0 RediSearch-1.2.2/src/buffer.c:55:15: note: Calling function 'Buffer_Init', 1st argument 'buf' value is 0 RediSearch-1.2.2/src/buffer.c:47:3: note: Null pointer dereference RediSearch-1.2.2/src/buffer.c:61:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] RediSearch-1.2.2/src/buffer.c:60:23: note: Assuming allocation function fails RediSearch-1.2.2/src/buffer.c:60:23: note: Assignment 'buf=malloc(sizeof(struct Buffer))', assigned value is 0 RediSearch-1.2.2/src/buffer.c:61:3: note: Null pointer dereference RediSearch-1.2.2/src/buffer.c:62:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] RediSearch-1.2.2/src/buffer.c:60:23: note: Assuming allocation function fails RediSearch-1.2.2/src/buffer.c:60:23: note: Assignment 'buf=malloc(sizeof(struct Buffer))', assigned value is 0 RediSearch-1.2.2/src/buffer.c:62:3: note: Null pointer dereference RediSearch-1.2.2/src/buffer.c:63:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] RediSearch-1.2.2/src/buffer.c:60:23: note: Assuming allocation function fails RediSearch-1.2.2/src/buffer.c:60:23: note: Assignment 'buf=malloc(sizeof(struct Buffer))', assigned value is 0 RediSearch-1.2.2/src/buffer.c:63:3: note: Null pointer dereference RediSearch-1.2.2/src/buffer.c:6:26: style:inconclusive: Function 'Buffer_Grow' argument 1 names different: declaration 'b' definition 'buf'. [funcArgNamesDifferent] RediSearch-1.2.2/src/buffer.h:93:26: note: Function 'Buffer_Grow' argument 1 names different: declaration 'b' definition 'buf'. RediSearch-1.2.2/src/buffer.c:6:26: note: Function 'Buffer_Grow' argument 1 names different: declaration 'b' definition 'buf'. RediSearch-1.2.2/src/buffer.c:53:26: style:inconclusive: Function 'NewBuffer' argument 1 names different: declaration 'len' definition 'cap'. [funcArgNamesDifferent] RediSearch-1.2.2/src/buffer.h:163:26: note: Function 'NewBuffer' argument 1 names different: declaration 'len' definition 'cap'. RediSearch-1.2.2/src/buffer.c:53:26: note: Function 'NewBuffer' argument 1 names different: declaration 'len' definition 'cap'. RediSearch-1.2.2/src/buffer.c:75:45: style:inconclusive: Function 'Buffer_ReadByte' argument 1 names different: declaration 'b' definition 'br'. [funcArgNamesDifferent] RediSearch-1.2.2/src/buffer.h:29:38: note: Function 'Buffer_ReadByte' argument 1 names different: declaration 'b' definition 'br'. RediSearch-1.2.2/src/buffer.c:75:45: note: Function 'Buffer_ReadByte' argument 1 names different: declaration 'b' definition 'br'. RediSearch-1.2.2/src/buffer.c:106:41: style:inconclusive: Function 'Buffer_Seek' argument 1 names different: declaration 'b' definition 'br'. [funcArgNamesDifferent] RediSearch-1.2.2/src/buffer.h:48:34: note: Function 'Buffer_Seek' argument 1 names different: declaration 'b' definition 'br'. RediSearch-1.2.2/src/buffer.c:106:41: note: Function 'Buffer_Seek' argument 1 names different: declaration 'b' definition 'br'. RediSearch-1.2.2/src/buffer.c:106:52: style:inconclusive: Function 'Buffer_Seek' argument 2 names different: declaration 'offset' definition 'where'. [funcArgNamesDifferent] RediSearch-1.2.2/src/buffer.h:48:44: note: Function 'Buffer_Seek' argument 2 names different: declaration 'offset' definition 'where'. RediSearch-1.2.2/src/buffer.c:106:52: note: Function 'Buffer_Seek' argument 2 names different: declaration 'offset' definition 'where'. RediSearch-1.2.2/src/buffer.h:103:59: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/cndict_loader.c:85:5: portability: %lu in format string (no. 3) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/rmutil/sds.h:92:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/sds.h:139:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/sds.h:164:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/sds.h:185:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alloc [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/sds.h:203:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alloc [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/concurrent_ctx.c:29:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_NPROCESSORS_ONLN [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/concurrent_ctx.c:129:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC_RAW [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/concurrent_ctx.c:151:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC_RAW [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/concurrent_ctx.c:215:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/bloom/contrib/bloom.c:147:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITY [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/concurrent_ctx.c:84:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdCtx [nullPointerOutOfMemory] RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assuming allocation function fails RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assignment 'cmdCtx=malloc(sizeof(*cmdCtx))', assigned value is 0 RediSearch-1.2.2/src/concurrent_ctx.c:84:3: note: Null pointer dereference RediSearch-1.2.2/src/concurrent_ctx.c:85:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdCtx [nullPointerOutOfMemory] RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assuming allocation function fails RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assignment 'cmdCtx=malloc(sizeof(*cmdCtx))', assigned value is 0 RediSearch-1.2.2/src/concurrent_ctx.c:85:3: note: Null pointer dereference RediSearch-1.2.2/src/concurrent_ctx.c:86:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdCtx [nullPointerOutOfMemory] RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assuming allocation function fails RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assignment 'cmdCtx=malloc(sizeof(*cmdCtx))', assigned value is 0 RediSearch-1.2.2/src/concurrent_ctx.c:86:3: note: Null pointer dereference RediSearch-1.2.2/src/concurrent_ctx.c:86:50: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdCtx [nullPointerOutOfMemory] RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assuming allocation function fails RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assignment 'cmdCtx=malloc(sizeof(*cmdCtx))', assigned value is 0 RediSearch-1.2.2/src/concurrent_ctx.c:86:50: note: Null pointer dereference RediSearch-1.2.2/src/concurrent_ctx.c:87:26: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdCtx [nullPointerOutOfMemory] RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assuming allocation function fails RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assignment 'cmdCtx=malloc(sizeof(*cmdCtx))', assigned value is 0 RediSearch-1.2.2/src/concurrent_ctx.c:87:26: note: Null pointer dereference RediSearch-1.2.2/src/concurrent_ctx.c:88:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdCtx [nullPointerOutOfMemory] RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assuming allocation function fails RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assignment 'cmdCtx=malloc(sizeof(*cmdCtx))', assigned value is 0 RediSearch-1.2.2/src/concurrent_ctx.c:88:3: note: Null pointer dereference RediSearch-1.2.2/src/concurrent_ctx.c:89:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdCtx [nullPointerOutOfMemory] RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assuming allocation function fails RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assignment 'cmdCtx=malloc(sizeof(*cmdCtx))', assigned value is 0 RediSearch-1.2.2/src/concurrent_ctx.c:89:3: note: Null pointer dereference RediSearch-1.2.2/src/concurrent_ctx.c:91:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdCtx [nullPointerOutOfMemory] RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assuming allocation function fails RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assignment 'cmdCtx=malloc(sizeof(*cmdCtx))', assigned value is 0 RediSearch-1.2.2/src/concurrent_ctx.c:91:3: note: Null pointer dereference RediSearch-1.2.2/src/concurrent_ctx.c:93:5: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdCtx [nullPointerOutOfMemory] RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assuming allocation function fails RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assignment 'cmdCtx=malloc(sizeof(*cmdCtx))', assigned value is 0 RediSearch-1.2.2/src/concurrent_ctx.c:93:5: note: Null pointer dereference RediSearch-1.2.2/src/concurrent_ctx.c:93:58: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdCtx [nullPointerOutOfMemory] RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assuming allocation function fails RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assignment 'cmdCtx=malloc(sizeof(*cmdCtx))', assigned value is 0 RediSearch-1.2.2/src/concurrent_ctx.c:93:58: note: Null pointer dereference RediSearch-1.2.2/src/concurrent_ctx.c:170:6: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx->openKeys [nullPointerOutOfMemory] RediSearch-1.2.2/src/concurrent_ctx.c:169:25: note: Assuming allocation function fails RediSearch-1.2.2/src/concurrent_ctx.c:169:25: note: Assignment 'ctx->openKeys=calloc(1,sizeof(*ctx->openKeys))', assigned value is 0 RediSearch-1.2.2/src/concurrent_ctx.c:170:6: note: Null pointer dereference RediSearch-1.2.2/src/concurrent_ctx.c:77:54: style:inconclusive: Function 'ConcurrentCmdCtx_KeepRedisCtx' argument 1 names different: declaration 'ctx' definition 'cctx'. [funcArgNamesDifferent] RediSearch-1.2.2/src/concurrent_ctx.h:181:61: note: Function 'ConcurrentCmdCtx_KeepRedisCtx' argument 1 names different: declaration 'ctx' definition 'cctx'. RediSearch-1.2.2/src/concurrent_ctx.c:77:54: note: Function 'ConcurrentCmdCtx_KeepRedisCtx' argument 1 names different: declaration 'ctx' definition 'cctx'. RediSearch-1.2.2/src/rmutil/sds.h:110:13: style: Variable 'sh' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/rmutil/sds.h:114:13: style: Variable 'sh' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/rmutil/sds.h:118:13: style: Variable 'sh' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/rmutil/sds.h:122:13: style: Variable 'sh' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/dep/bloom/contrib/bloom.c:132:21: style: Condition 'entries==0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/bloom/contrib/bloom.c:118:17: note: Assuming that condition 'entries<1' is not redundant RediSearch-1.2.2/src/dep/bloom/contrib/bloom.c:132:21: note: Condition 'entries==0' is always false RediSearch-1.2.2/src/dep/bloom/contrib/bloom.c:137:21: warning: Shifting 64-bit value by 64 bits is undefined behaviour. See condition at line 132. [shiftTooManyBits] RediSearch-1.2.2/src/dep/bloom/contrib/bloom.c:132:37: note: Assuming that condition 'entries>64' is not redundant RediSearch-1.2.2/src/dep/bloom/contrib/bloom.c:136:21: note: Assignment 'bloom->n2=entries', assigned value is 64 RediSearch-1.2.2/src/dep/bloom/contrib/bloom.c:137:21: note: Shift RediSearch-1.2.2/src/dep/bloom/contrib/bloom.c:138:18: style: Variable 'dentries' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/dep/bloom/contrib/bloom.c:138:28: style: Variable 'entries' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/config.c:38:40: style: Checking if unsigned expression 'RSGlobalConfig.maxDocTableSize' is less than zero. [unsignedLessThanZero] RediSearch-1.2.2/src/config.c:106:35: style: Checking if unsigned expression 'RSGlobalConfig.gcScanSize' is less than zero. [unsignedLessThanZero] RediSearch-1.2.2/src/dep/bloom/sb.c:178:5: warning: If memory allocation fails, then there is a possible null pointer dereference: hdr [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/bloom/sb.c:177:36: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/bloom/sb.c:177:36: note: Assignment 'hdr=malloc(*hdrlen)', assigned value is 0 RediSearch-1.2.2/src/dep/bloom/sb.c:178:5: note: Null pointer dereference RediSearch-1.2.2/src/dep/bloom/sb.c:179:5: warning: If memory allocation fails, then there is a possible null pointer dereference: hdr [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/bloom/sb.c:177:36: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/bloom/sb.c:177:36: note: Assignment 'hdr=malloc(*hdrlen)', assigned value is 0 RediSearch-1.2.2/src/dep/bloom/sb.c:179:5: note: Null pointer dereference RediSearch-1.2.2/src/dep/bloom/sb.c:180:5: warning: If memory allocation fails, then there is a possible null pointer dereference: hdr [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/bloom/sb.c:177:36: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/bloom/sb.c:177:36: note: Assignment 'hdr=malloc(*hdrlen)', assigned value is 0 RediSearch-1.2.2/src/dep/bloom/sb.c:180:5: note: Null pointer dereference RediSearch-1.2.2/src/dep/bloom/sb.c:225:39: style: Parameter 'sb' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/friso/friso_GBK.c:48:35: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/friso/friso_GBK.c:78:44: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/friso/friso_GBK.c:90:43: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/friso/friso_GBK.c:103:43: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/friso/friso_GBK.c:116:41: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/friso/friso_GBK.c:133:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/dep/friso/friso_GBK.c:151:41: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/friso/friso_GBK.c:182:36: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/friso/friso_GBK.c:200:37: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/friso/friso_GBK.c:213:40: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/friso/friso_GBK.c:225:39: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/friso/friso_GBK.c:243:41: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/friso/friso_GBK.c:134:12: style: Variable 'c1' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/dep/friso/friso_GBK.c:153:12: style: Variable 'c1' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/dep/friso/friso.c:159:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/friso/friso.c:911:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable length [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/value.h:91:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/value.h:104:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/doc_table.h:21:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable str [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/doc_table.h:169:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable str [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/util/arr.h:92:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/cursor.c:11:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/friso/friso_UTF8.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] RediSearch-1.2.2/src/dep/friso/friso_UTF8.c:126:19: style: Condition 'u>=0x00000080' is always true [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/friso/friso_UTF8.c:121:12: note: Assuming that condition 'u<=0x0000007F' is not redundant RediSearch-1.2.2/src/dep/friso/friso_UTF8.c:126:19: note: Condition 'u>=0x00000080' is always true RediSearch-1.2.2/src/dep/friso/friso_UTF8.c:230:19: style: Return value 'j' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/friso/friso_UTF8.c:207:20: note: Assignment 'j=0', assigned value is 0 RediSearch-1.2.2/src/dep/friso/friso_UTF8.c:230:19: note: Return value 'j' is always false RediSearch-1.2.2/src/dep/friso/friso_UTF8.c:230:21: style: Same expression on both sides of '||' because 'k' and 'j' represent the same value. [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/friso/friso_UTF8.c:207:27: note: 'k' is assigned value '0' here. RediSearch-1.2.2/src/dep/friso/friso_UTF8.c:207:20: note: 'j' is assigned value '0' here. RediSearch-1.2.2/src/dep/friso/friso_UTF8.c:230:21: note: Same expression on both sides of '||' because 'k' and 'j' represent the same value. RediSearch-1.2.2/src/dep/friso/friso_lexicon.c:190:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/friso/friso_lexicon.c:374:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/friso/friso_lexicon.c:505:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/friso/friso_link.c:103:14: style: Unsigned expression 'idx' can't be negative so it is unnecessary to test it. [unsignedPositive] RediSearch-1.2.2/src/dep/hll/hll.c:25:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/hll/hll.c:107:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/hll/hll.c:131:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/util/arr.h:64:3: error: Memory leak: hdr [memleak] RediSearch-1.2.2/src/util/arr.h:85:5: error: Common realloc mistake: 'hdr' nulled but not freed upon failure [memleakOnRealloc] RediSearch-1.2.2/src/util/arr.h:120:5: error: Common realloc mistake: 'arr_hdr' nulled but not freed upon failure [memleakOnRealloc] RediSearch-1.2.2/src/util/arr.h:61:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hdr [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/arr.h:60:36: note: Assuming allocation function fails RediSearch-1.2.2/src/util/arr.h:60:36: note: Assignment 'hdr=malloc(sizeof(struct array_hdr_t)+cap*elem_sz)', assigned value is 0 RediSearch-1.2.2/src/util/arr.h:61:3: note: Null pointer dereference RediSearch-1.2.2/src/util/arr.h:62:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hdr [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/arr.h:60:36: note: Assuming allocation function fails RediSearch-1.2.2/src/util/arr.h:60:36: note: Assignment 'hdr=malloc(sizeof(struct array_hdr_t)+cap*elem_sz)', assigned value is 0 RediSearch-1.2.2/src/util/arr.h:62:3: note: Null pointer dereference RediSearch-1.2.2/src/util/arr.h:63:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hdr [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/arr.h:60:36: note: Assuming allocation function fails RediSearch-1.2.2/src/util/arr.h:60:36: note: Assignment 'hdr=malloc(sizeof(struct array_hdr_t)+cap*elem_sz)', assigned value is 0 RediSearch-1.2.2/src/util/arr.h:63:3: note: Null pointer dereference RediSearch-1.2.2/src/util/arr.h:64:20: warning: If memory allocation fails, then there is a possible null pointer dereference: hdr [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/arr.h:60:36: note: Assuming allocation function fails RediSearch-1.2.2/src/util/arr.h:60:36: note: Assignment 'hdr=malloc(sizeof(struct array_hdr_t)+cap*elem_sz)', assigned value is 0 RediSearch-1.2.2/src/util/arr.h:64:20: note: Null pointer dereference RediSearch-1.2.2/src/util/arr.h:113:14: style: Unsigned expression 'len' can't be negative so it is unnecessary to test it. [unsignedPositive] RediSearch-1.2.2/src/debug_commads.c:41:14: style: Variable 'fieldSpec' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/doc_table.h:168:63: style: Parameter 'dt' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/value.h:253:21: style: Variable 'p' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/value.h:253:19: style: Variable 'p' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/dep/libnu/extra.c:45:9: error: Using pointer to local variable 'u' that is out of scope. [invalidLifetime] RediSearch-1.2.2/src/dep/libnu/extra.c:48:18: note: Address of variable taken here. RediSearch-1.2.2/src/dep/libnu/extra.c:48:18: note: Passed to initializer list. RediSearch-1.2.2/src/dep/libnu/extra.c:51:9: note: Assuming condition is false RediSearch-1.2.2/src/dep/libnu/extra.c:46:12: note: Variable created here. RediSearch-1.2.2/src/dep/libnu/extra.c:45:9: note: Using pointer to local variable 'u' that is out of scope. RediSearch-1.2.2/src/dep/libnu/extra.c:137:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/extra.c:141:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/extra.c:146:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/extra.c:151:53: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/extra.c:158:48: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/cursor.c:158:20: style: Condition 'spec->used>=spec->cap' is always true [knownConditionTrueFalse] RediSearch-1.2.2/src/cursor.c:156:18: note: Assuming that condition 'spec->used>=spec->cap' is not redundant RediSearch-1.2.2/src/cursor.c:158:20: note: Condition 'spec->used>=spec->cap' is always true RediSearch-1.2.2/src/cursor.c:117:5: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] RediSearch-1.2.2/src/cursor.c:116:18: note: Assuming allocation function fails RediSearch-1.2.2/src/cursor.c:116:18: note: Assignment 'info=malloc(sizeof(*info))', assigned value is 0 RediSearch-1.2.2/src/cursor.c:117:5: note: Null pointer dereference RediSearch-1.2.2/src/cursor.c:118:5: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] RediSearch-1.2.2/src/cursor.c:116:18: note: Assuming allocation function fails RediSearch-1.2.2/src/cursor.c:116:18: note: Assignment 'info=malloc(sizeof(*info))', assigned value is 0 RediSearch-1.2.2/src/cursor.c:118:5: note: Null pointer dereference RediSearch-1.2.2/src/cursor.c:122:3: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] RediSearch-1.2.2/src/cursor.c:116:18: note: Assuming allocation function fails RediSearch-1.2.2/src/cursor.c:116:18: note: Assignment 'info=malloc(sizeof(*info))', assigned value is 0 RediSearch-1.2.2/src/cursor.c:122:3: note: Null pointer dereference RediSearch-1.2.2/src/cursor.c:145:34: style:inconclusive: Function 'Cursors_Reserve' argument 4 names different: declaration 'timeout' definition 'interval'. [funcArgNamesDifferent] RediSearch-1.2.2/src/cursor.h:138:34: note: Function 'Cursors_Reserve' argument 4 names different: declaration 'timeout' definition 'interval'. RediSearch-1.2.2/src/cursor.c:145:34: note: Function 'Cursors_Reserve' argument 4 names different: declaration 'timeout' definition 'interval'. RediSearch-1.2.2/src/cursor.c:246:25: style:inconclusive: Function 'Cursor_Free' argument 1 names different: declaration 'cl' definition 'cur'. [funcArgNamesDifferent] RediSearch-1.2.2/src/cursor.h:155:25: note: Function 'Cursor_Free' argument 1 names different: declaration 'cl' definition 'cur'. RediSearch-1.2.2/src/cursor.c:246:25: note: Function 'Cursor_Free' argument 1 names different: declaration 'cl' definition 'cur'. RediSearch-1.2.2/src/cursor.c:250:54: style:inconclusive: Function 'Cursors_RenderStats' argument 2 names different: declaration 'key' definition 'name'. [funcArgNamesDifferent] RediSearch-1.2.2/src/cursor.h:164:54: note: Function 'Cursors_RenderStats' argument 2 names different: declaration 'key' definition 'name'. RediSearch-1.2.2/src/cursor.c:250:54: note: Function 'Cursors_RenderStats' argument 2 names different: declaration 'key' definition 'name'. RediSearch-1.2.2/src/dep/friso/friso_lexicon.c:277:24: style: Parameter 'config' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/friso/friso_lexicon.c:437:41: style: Variable '__line__' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/dep/friso/friso.c:160:21: portability: %d in format string (no. 1) requires 'int' but the argument type is 'uint_t {aka unsigned int}'. [invalidPrintfArgType_sint] RediSearch-1.2.2/src/dep/friso/friso.c:46:11: style: Variable 'slimiter' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/dep/friso/friso.c:384:24: style: Parameter 'config' can be declared as pointer to const. However it seems that 'next_simple_cjk' is a callback function, if 'config' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/dep/friso/friso.c:220:28: note: You might need to cast the function pointer here RediSearch-1.2.2/src/dep/friso/friso.c:384:24: note: Parameter 'config' can be declared as pointer to const RediSearch-1.2.2/src/dep/friso/friso.c:480:24: style: Parameter 'config' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/friso/friso.c:737:24: style: Parameter 'config' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/friso/friso.c:1265:24: style: Parameter 'config' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/friso/friso.c:1710:39: style: Parameter 'config' can be declared as pointer to const. However it seems that 'next_detect_token' is a callback function, if 'config' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/dep/friso/friso.c:223:30: note: You might need to cast the function pointer here RediSearch-1.2.2/src/dep/friso/friso.c:1710:39: note: Parameter 'config' can be declared as pointer to const RediSearch-1.2.2/src/dep/friso/friso.c:838:24: style: Variable 'tmp' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/dep/friso/friso.c:1326:15: style: Variable 'start' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/dep/libnu/strings.c:10:9: error: Using pointer to local variable 'u' that is out of scope. [invalidLifetime] RediSearch-1.2.2/src/dep/libnu/strings.c:12:13: note: Address of variable taken here. RediSearch-1.2.2/src/dep/libnu/strings.c:12:13: note: Passed to initializer list. RediSearch-1.2.2/src/dep/libnu/strings.c:14:9: note: Assuming condition is false RediSearch-1.2.2/src/dep/libnu/strings.c:11:12: note: Variable created here. RediSearch-1.2.2/src/dep/libnu/strings.c:10:9: note: Using pointer to local variable 'u' that is out of scope. RediSearch-1.2.2/src/dep/libnu/strings.c:66:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/strings.c:70:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/strings.c:74:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/tofold.c:29:9: error: Returning pointer to local variable '_u' that will be invalid when returning. [returnDanglingLifetime] RediSearch-1.2.2/src/dep/libnu/tofold.c:21:33: note: Address of variable taken here. RediSearch-1.2.2/src/dep/libnu/tofold.c:21:33: note: Passed to initializer list. RediSearch-1.2.2/src/dep/libnu/tofold.c:20:11: note: Variable created here. RediSearch-1.2.2/src/dep/libnu/tofold.c:29:9: note: Returning pointer to local variable '_u' that will be invalid when returning. RediSearch-1.2.2/src/dep/libnu/tolower.c:41:11: error: Returning pointer to local variable '_u' that will be invalid when returning. [returnDanglingLifetime] RediSearch-1.2.2/src/dep/libnu/tolower.c:25:33: note: Address of variable taken here. RediSearch-1.2.2/src/dep/libnu/tolower.c:25:33: note: Passed to initializer list. RediSearch-1.2.2/src/dep/libnu/tolower.c:24:11: note: Variable created here. RediSearch-1.2.2/src/dep/libnu/tolower.c:41:11: note: Returning pointer to local variable '_u' that will be invalid when returning. RediSearch-1.2.2/src/dep/libnu/tolower.c:49:11: error:inconclusive: Returning pointer to local variable '_u' that will be invalid when returning. [returnDanglingLifetime] RediSearch-1.2.2/src/dep/libnu/tolower.c:25:33: note: Address of variable taken here. RediSearch-1.2.2/src/dep/libnu/tolower.c:25:33: note: Passed to initializer list. RediSearch-1.2.2/src/dep/libnu/tolower.c:39:10: note: Assuming condition is false RediSearch-1.2.2/src/dep/libnu/tolower.c:24:11: note: Variable created here. RediSearch-1.2.2/src/dep/libnu/tolower.c:49:11: note: Returning pointer to local variable '_u' that will be invalid when returning. RediSearch-1.2.2/src/dep/libnu/tolower.c:55:9: error:inconclusive: Returning pointer to local variable '_u' that will be invalid when returning. [returnDanglingLifetime] RediSearch-1.2.2/src/dep/libnu/tolower.c:25:33: note: Address of variable taken here. RediSearch-1.2.2/src/dep/libnu/tolower.c:25:33: note: Passed to initializer list. RediSearch-1.2.2/src/dep/libnu/tolower.c:24:11: note: Variable created here. RediSearch-1.2.2/src/dep/libnu/tolower.c:55:9: note: Returning pointer to local variable '_u' that will be invalid when returning. RediSearch-1.2.2/src/dep/libnu/utf32be.c:31:15: warning: Either the condition 'utf32!=0' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] RediSearch-1.2.2/src/dep/libnu/utf32be.c:27:12: note: Assuming that condition 'utf32!=0' is not redundant RediSearch-1.2.2/src/dep/libnu/utf32be.c:31:15: note: Null pointer addition RediSearch-1.2.2/src/dep/libnu/utf32le.c:31:15: warning: Either the condition 'utf32!=0' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] RediSearch-1.2.2/src/dep/libnu/utf32le.c:27:12: note: Assuming that condition 'utf32!=0' is not redundant RediSearch-1.2.2/src/dep/libnu/utf32le.c:31:15: note: Null pointer addition RediSearch-1.2.2/src/dep/libnu/toupper.c:29:9: error: Returning pointer to local variable '_u' that will be invalid when returning. [returnDanglingLifetime] RediSearch-1.2.2/src/dep/libnu/toupper.c:21:33: note: Address of variable taken here. RediSearch-1.2.2/src/dep/libnu/toupper.c:21:33: note: Passed to initializer list. RediSearch-1.2.2/src/dep/libnu/toupper.c:20:11: note: Variable created here. RediSearch-1.2.2/src/dep/libnu/toupper.c:29:9: note: Returning pointer to local variable '_u' that will be invalid when returning. RediSearch-1.2.2/src/dep/snowball/examples/stemwords.c:20:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sb_symbol [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/snowball/examples/stemwords.c:140:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/snowball/examples/stemwords.c:120:12: style: Variable 'in' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/dep/snowball/examples/stemwords.c:121:12: style: Variable 'out' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/dep/snowball/examples/stemwords.c:129:12: style: Variable 's' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_danish.c:330:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_danish.c:328:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_danish.c:330:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/libnu/strcoll.c:22:9: error:inconclusive: Using pointer to local variable 'u' that is out of scope. [invalidLifetime] RediSearch-1.2.2/src/dep/libnu/strcoll.c:25:40: note: Address of variable taken here. RediSearch-1.2.2/src/dep/libnu/strcoll.c:25:40: note: Passed to initializer list. RediSearch-1.2.2/src/dep/libnu/strcoll.c:33:13: note: Assuming condition is false RediSearch-1.2.2/src/dep/libnu/strcoll.c:23:12: note: Variable created here. RediSearch-1.2.2/src/dep/libnu/strcoll.c:22:9: note: Using pointer to local variable 'u' that is out of scope. RediSearch-1.2.2/src/dep/libnu/strcoll.c:272:40: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/strcoll.c:313:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/strcoll.c:320:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/strcoll.c:327:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/strcoll.c:334:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/strcoll.c:341:25: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/strcoll.c:341:43: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/strcoll.c:350:25: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/strcoll.c:350:43: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/strcoll.c:359:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/strcoll.c:359:52: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/strcoll.c:368:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/libnu/strcoll.c:368:52: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_dutch.c:195:14: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_dutch.c:192:18: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_dutch.c:195:14: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_dutch.c:605:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_dutch.c:603:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_dutch.c:605:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_dutch.c:314:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_dutch.c:319:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_finnish.c:754:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_finnish.c:752:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_finnish.c:754:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_finnish.c:296:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/runtime/utilities.c:17:5: error: Memory leak: mem [memleak] RediSearch-1.2.2/src/dep/snowball/runtime/utilities.c:338:5: error: Memory leak: mem [memleak] RediSearch-1.2.2/src/dep/snowball/runtime/utilities.c:346:99: style:inconclusive: Function 'replace_s' argument 6 names different: declaration 'adjustment' definition 'adjptr'. [funcArgNamesDifferent] RediSearch-1.2.2/src/dep/snowball/runtime/header.h:46:99: note: Function 'replace_s' argument 6 names different: declaration 'adjustment' definition 'adjptr'. RediSearch-1.2.2/src/dep/snowball/runtime/utilities.c:346:99: note: Function 'replace_s' argument 6 names different: declaration 'adjustment' definition 'adjptr'. RediSearch-1.2.2/src/dep/snowball/runtime/utilities.c:216:14: style: Variable 'q' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/dep/snowball/runtime/utilities.c:276:14: style: Variable 'q' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/dep/snowball/runtime/utilities.c:378:40: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:1022:25: style: Condition 'ret==0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:1021:41: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:1021:41: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:1022:25: note: Condition 'ret==0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:1023:25: style: Condition 'ret<0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:1021:41: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:1021:41: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:1023:25: note: Condition 'ret<0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:412:14: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:409:18: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:412:14: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:572:22: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:570:26: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:572:22: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:1096:14: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:1092:22: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:1096:14: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:473:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_english.c:478:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_norwegian.c:290:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_norwegian.c:288:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_norwegian.c:290:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_german.c:152:14: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_german.c:149:18: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_german.c:152:14: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_german.c:393:32: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_german.c:392:29: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_german.c:393:32: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_german.c:506:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_german.c:504:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_german.c:506:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_german.c:283:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_german.c:288:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_french.c:1132:21: style: Condition 'ret==0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_french.c:1131:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_french.c:1131:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_french.c:1132:21: note: Condition 'ret==0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_french.c:1133:21: style: Condition 'ret<0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_french.c:1131:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_french.c:1131:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_french.c:1133:21: note: Condition 'ret<0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_french.c:1217:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_french.c:1215:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_french.c:1217:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_french.c:581:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_french.c:586:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_french.c:591:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_porter.c:296:22: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_porter.c:294:26: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_porter.c:296:22: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_porter.c:615:14: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_porter.c:612:18: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_porter.c:615:14: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_porter.c:711:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_porter.c:709:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_porter.c:711:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_porter.c:738:14: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_porter.c:734:18: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_porter.c:738:14: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_porter.c:234:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_porter.c:239:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_italian.c:998:21: style: Condition 'ret==0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_italian.c:997:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_italian.c:997:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_italian.c:998:21: note: Condition 'ret==0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_italian.c:999:21: style: Condition 'ret<0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_italian.c:997:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_italian.c:997:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_italian.c:999:21: note: Condition 'ret<0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_italian.c:543:14: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_italian.c:540:18: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_italian.c:543:14: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_italian.c:1040:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_italian.c:1038:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_italian.c:1040:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_italian.c:700:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_italian.c:705:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_italian.c:710:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_swedish.c:300:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_swedish.c:298:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_swedish.c:300:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:923:21: style: Condition 'ret==0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:922:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:922:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:923:21: note: Condition 'ret==0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:924:21: style: Condition 'ret<0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:922:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:922:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:924:21: note: Condition 'ret<0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:1017:21: style: Condition 'ret==0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:1016:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:1016:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:1017:21: note: Condition 'ret==0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:1018:21: style: Condition 'ret<0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:1016:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:1016:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:1018:21: note: Condition 'ret<0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:881:26: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:880:25: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:881:26: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:892:26: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:891:25: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:892:26: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:957:30: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:956:29: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:957:30: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:990:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:988:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:990:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:624:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:629:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_portuguese.c:634:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:947:26: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:946:25: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:947:26: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:997:26: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:996:25: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:997:26: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:1066:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:1064:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:1066:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:636:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:641:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_1_spanish.c:646:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_romanian.c:932:21: style: Condition 'ret==0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_romanian.c:931:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_romanian.c:931:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_romanian.c:932:21: note: Condition 'ret==0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_romanian.c:933:21: style: Condition 'ret<0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_romanian.c:931:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_romanian.c:931:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_romanian.c:933:21: note: Condition 'ret<0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_romanian.c:979:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_romanian.c:977:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_romanian.c:979:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_romanian.c:695:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_romanian.c:700:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_romanian.c:705:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_hungarian.c:1206:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_hungarian.c:1204:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_hungarian.c:1206:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_ISO_8859_2_hungarian.c:533:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_KOI8_R_russian.c:604:21: style: Condition 'ret==0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_KOI8_R_russian.c:603:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_KOI8_R_russian.c:603:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_KOI8_R_russian.c:604:21: note: Condition 'ret==0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_KOI8_R_russian.c:605:21: style: Condition 'ret<0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_KOI8_R_russian.c:603:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_KOI8_R_russian.c:603:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_KOI8_R_russian.c:605:21: note: Condition 'ret<0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_KOI8_R_russian.c:691:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_KOI8_R_russian.c:687:18: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_KOI8_R_russian.c:691:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_KOI8_R_russian.c:376:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_danish.c:332:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_danish.c:330:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_danish.c:332:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_dutch.c:197:14: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_dutch.c:194:18: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_dutch.c:197:14: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_dutch.c:615:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_dutch.c:613:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_dutch.c:615:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_dutch.c:320:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_dutch.c:325:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:1030:25: style: Condition 'ret==0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:1029:41: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:1029:41: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:1030:25: note: Condition 'ret==0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:1031:25: style: Condition 'ret<0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:1029:41: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:1029:41: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:1031:25: note: Condition 'ret<0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:414:14: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:411:18: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:414:14: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:576:22: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:574:26: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:576:22: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:1104:14: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:1100:22: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:1104:14: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:475:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_english.c:480:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_arabic.c:1044:14: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_arabic.c:1042:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_arabic.c:1044:14: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_arabic.c:1804:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_arabic.c:1802:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_arabic.c:1804:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_finnish.c:760:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_finnish.c:758:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_finnish.c:760:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_finnish.c:298:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_french.c:1143:21: style: Condition 'ret==0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_french.c:1142:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_french.c:1142:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_french.c:1143:21: note: Condition 'ret==0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_french.c:1144:21: style: Condition 'ret<0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_french.c:1142:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_french.c:1142:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_french.c:1144:21: note: Condition 'ret<0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_german.c:154:14: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_german.c:151:18: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_german.c:154:14: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_german.c:399:32: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_german.c:398:29: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_german.c:399:32: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_german.c:512:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_german.c:510:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_german.c:512:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_german.c:289:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_german.c:294:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_french.c:1227:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_french.c:1225:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_french.c:1227:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_french.c:592:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_french.c:597:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_french.c:602:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_norwegian.c:292:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_norwegian.c:290:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_norwegian.c:292:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_hungarian.c:1210:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_hungarian.c:1208:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_hungarian.c:1210:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_hungarian.c:535:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_italian.c:1006:21: style: Condition 'ret==0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_italian.c:1005:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_italian.c:1005:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_italian.c:1006:21: note: Condition 'ret==0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_italian.c:1007:21: style: Condition 'ret<0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_italian.c:1005:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_italian.c:1005:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_italian.c:1007:21: note: Condition 'ret<0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_italian.c:545:14: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_italian.c:542:18: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_italian.c:545:14: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_italian.c:1048:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_italian.c:1046:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_italian.c:1048:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_italian.c:708:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_italian.c:713:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_italian.c:718:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_russian.c:599:21: style: Condition 'ret==0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_russian.c:598:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_russian.c:598:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_russian.c:599:21: note: Condition 'ret==0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_russian.c:600:21: style: Condition 'ret<0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_russian.c:598:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_russian.c:598:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_russian.c:600:21: note: Condition 'ret<0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_russian.c:685:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_russian.c:681:18: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_russian.c:685:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_russian.c:386:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_porter.c:296:22: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_porter.c:294:26: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_porter.c:296:22: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_porter.c:619:14: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_porter.c:616:18: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_porter.c:619:14: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_porter.c:715:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_porter.c:713:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_porter.c:715:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_porter.c:744:14: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_porter.c:740:18: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_porter.c:744:14: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_porter.c:234:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_porter.c:239:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_romanian.c:938:21: style: Condition 'ret==0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_romanian.c:937:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_romanian.c:937:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_romanian.c:938:21: note: Condition 'ret==0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_romanian.c:939:21: style: Condition 'ret<0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_romanian.c:937:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_romanian.c:937:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_romanian.c:939:21: note: Condition 'ret<0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_romanian.c:985:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_romanian.c:983:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_romanian.c:985:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:929:21: style: Condition 'ret==0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:928:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:928:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:929:21: note: Condition 'ret==0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:930:21: style: Condition 'ret<0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:928:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:928:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:930:21: note: Condition 'ret<0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_romanian.c:702:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_romanian.c:707:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_romanian.c:712:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:887:26: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:886:25: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:887:26: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:898:26: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:897:25: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:898:26: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:963:30: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:962:29: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:963:30: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:996:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:994:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:996:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:630:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:635:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_portuguese.c:640:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_swedish.c:302:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_swedish.c:300:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_swedish.c:302:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/triemap/test/time_sample.h:23:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/triemap/test/time_sample.h:29:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/triemap/test/time_sample.h:34:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/triemap/test/time_sample.h:44:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/thpool/thpool.c:117:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/thpool/thpool.c:164:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/thpool/thpool.c:259:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/thpool/thpool.c:300:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/thpool/thpool.c:462:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/thpool/thpool.c:257:4: warning: Either the condition 'thread_p==NULL' is redundant or there is possible null pointer dereference: thread_p. [nullPointerRedundantCheck] RediSearch-1.2.2/src/dep/thpool/thpool.c:258:16: note: Assuming that condition 'thread_p==NULL' is not redundant RediSearch-1.2.2/src/dep/thpool/thpool.c:257:4: note: Null pointer dereference RediSearch-1.2.2/src/dep/thpool/thpool.c:263:4: warning: If memory allocation fails, then there is a possible null pointer dereference: *thread_p [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/thpool/thpool.c:257:37: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/thpool/thpool.c:257:15: note: Assignment '*thread_p=(struct thread*)malloc(sizeof(struct thread))', assigned value is 0 RediSearch-1.2.2/src/dep/thpool/thpool.c:258:16: note: Assuming condition is false RediSearch-1.2.2/src/dep/thpool/thpool.c:263:4: note: Null pointer dereference RediSearch-1.2.2/src/dep/thpool/thpool.c:395:61: style:inconclusive: Function 'jobqueue_push' argument 2 names different: declaration 'newjob_p' definition 'newjob'. [funcArgNamesDifferent] RediSearch-1.2.2/src/dep/thpool/thpool.c:91:61: note: Function 'jobqueue_push' argument 2 names different: declaration 'newjob_p' definition 'newjob'. RediSearch-1.2.2/src/dep/thpool/thpool.c:395:61: note: Function 'jobqueue_push' argument 2 names different: declaration 'newjob_p' definition 'newjob'. RediSearch-1.2.2/src/dep/thpool/thpool.c:226:28: style: Parameter 'thpool_p' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/thpool/thpool.c:243:41: style: Parameter 'thpool_p' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/triemap/test/time_sample.h:51:53: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/triemap/test/time_sample.h:56:53: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/triemap/test/time_sample.h:61:51: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/triemap/test/minunit.h:54:0: error: #error "Unable to define timers for an unknown OS." [preprocessorErrorDirective] RediSearch-1.2.2/src/dep/triemap/test/minunit.h:54:2: error: #error "Unable to define timers for an unknown OS." [preprocessorErrorDirective] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:1021:21: style: Condition 'ret==0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:1020:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:1020:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:1021:21: note: Condition 'ret==0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:1022:21: style: Condition 'ret<0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:1020:37: note: Calling function 'r_mark_regions' returns 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:1020:37: note: Assignment 'ret=r_mark_regions(z)', assigned value is 1 RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:1022:21: note: Condition 'ret<0' is always false RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:951:26: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:950:25: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:951:26: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:1001:26: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:1000:25: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:1001:26: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:1070:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:1068:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:1070:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/miniz/miniz.c:2536:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable m_look_up [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/miniz/miniz.c:3749:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/miniz/miniz.c:5045:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/miniz/miniz.c:5531:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:640:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:645:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_spanish.c:650:33: style: Parameter 'z' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/miniz/miniz.c:7153:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/triemap/triemap.c:517:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable childOffset [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/triemap/triemap.c:525:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stringOffset [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:860:18: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:858:22: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:860:18: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:954:18: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:952:22: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:954:18: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:972:18: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:970:22: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:972:18: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1051:18: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1049:22: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1051:18: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1109:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1107:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1109:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1229:26: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1227:30: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1229:26: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1263:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1259:18: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1263:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1314:26: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1312:30: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1314:26: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1363:26: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1361:30: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1363:26: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1405:26: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1403:30: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1405:26: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1457:26: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1455:30: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1457:26: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1493:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1491:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1493:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1585:30: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1583:34: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1585:30: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1646:30: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1644:34: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1646:30: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1707:30: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1705:34: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1707:30: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1813:14: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1808:22: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1813:14: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1827:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1825:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_tamil.c:1827:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:528:22: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:527:21: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:528:22: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:562:22: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:561:21: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:562:22: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:596:22: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:595:21: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:596:22: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:1909:14: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:1906:17: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:1909:14: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:1947:18: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:1944:21: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:1947:18: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:1971:18: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:1968:21: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:1971:18: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:2096:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:2094:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:2096:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:2123:10: style: Variable 'z->c' is reassigned a value before the old one has been used. [redundantAssignment] RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:2121:14: note: z->c is assigned RediSearch-1.2.2/src/dep/snowball/src_c/stem_UTF_8_turkish.c:2123:10: note: z->c is overwritten RediSearch-1.2.2/src/dep/triemap/triemap.c:403:7: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] RediSearch-1.2.2/src/dep/triemap/triemap.c:649:5: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] RediSearch-1.2.2/src/dep/triemap/triemap.c:676:7: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] RediSearch-1.2.2/src/dep/triemap/triemap.c:44:3: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:43:26: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:43:26: note: Assignment 'n=malloc(__trieMapNode_Sizeof(numChildren,nlen))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:44:3: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:45:3: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:43:26: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:43:26: note: Assignment 'n=malloc(__trieMapNode_Sizeof(numChildren,nlen))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:45:3: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:46:3: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:43:26: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:43:26: note: Assignment 'n=malloc(__trieMapNode_Sizeof(numChildren,nlen))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:46:3: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:47:3: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:43:26: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:43:26: note: Assignment 'n=malloc(__trieMapNode_Sizeof(numChildren,nlen))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:47:3: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:49:10: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:43:26: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:43:26: note: Assignment 'n=malloc(__trieMapNode_Sizeof(numChildren,nlen))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:49:10: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:56:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tm [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:55:23: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:55:23: note: Assignment 'tm=malloc(sizeof(struct TrieMap))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:56:3: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:57:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tm [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:55:23: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:55:23: note: Assignment 'tm=malloc(sizeof(struct TrieMap))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:57:3: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:365:14: warning: Either the condition 'nodes[i]' is redundant or there is possible null pointer dereference: nodes[i]. [nullPointerRedundantCheck] RediSearch-1.2.2/src/dep/triemap/triemap.c:385:16: note: Assuming that condition 'nodes[i]' is not redundant RediSearch-1.2.2/src/dep/triemap/triemap.c:365:14: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:507:7: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:544:14: note: Calling function '__tmi_Push', 1st argument 'it' value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:507:7: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:507:26: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:544:14: note: Calling function '__tmi_Push', 1st argument 'it' value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:507:26: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:516:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:544:14: note: Calling function '__tmi_Push', 1st argument 'it' value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:516:3: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:516:13: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:544:14: note: Calling function '__tmi_Push', 1st argument 'it' value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:516:13: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:535:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:535:3: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:536:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:536:3: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:536:23: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:536:23: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:537:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:537:3: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:538:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:538:3: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:538:22: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:538:22: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:539:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:539:3: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:540:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:540:3: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:541:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:541:3: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:542:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:542:3: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:645:3: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:644:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:644:31: note: Assignment 'stack=calloc(stackCap,sizeof(struct TrieMapNode*))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:645:3: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:687:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:686:21: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:686:21: note: Assignment 'buf=malloc(bufCap+1)', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:687:3: note: Null pointer dereference RediSearch-1.2.2/src/dep/triemap/triemap.c:690:16: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:686:21: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:686:21: note: Assignment 'buf=malloc(bufCap+1)', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:690:16: note: Null pointer addition RediSearch-1.2.2/src/dep/triemap/triemap.c:629:5: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] RediSearch-1.2.2/src/dep/triemap/triemap.c:532:75: style:inconclusive: Function 'TrieMap_Iterate' argument 3 names different: declaration 'prefixLen' definition 'len'. [funcArgNamesDifferent] RediSearch-1.2.2/src/dep/triemap/triemap.h:127:75: note: Function 'TrieMap_Iterate' argument 3 names different: declaration 'prefixLen' definition 'len'. RediSearch-1.2.2/src/dep/triemap/triemap.c:532:75: note: Function 'TrieMap_Iterate' argument 3 names different: declaration 'prefixLen' definition 'len'. RediSearch-1.2.2/src/dep/triemap/triemap.c:40:37: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:195:46: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:228:13: style: Variable 'childKeys' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:270:57: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:300:13: style: Variable 'childKeys' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:393:46: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:29:28: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:29:28: portability: '(void*)n+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:29:28: portability: '(void*)n+sizeof(struct TrieMapNode)+(n->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:70:3: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:70:3: portability: '(void*)n+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:70:3: portability: '(void*)n+sizeof(struct TrieMapNode)+(n->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:81:28: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:81:28: portability: '(void*)n+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:81:28: portability: '(void*)n+sizeof(struct TrieMapNode)+(n->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:82:31: portability: '(void*)newChild' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:82:31: portability: '(void*)newChild+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:82:31: portability: '(void*)newChild+sizeof(struct TrieMapNode)+(newChild->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:93:3: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:93:3: portability: '(void*)n+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:93:3: portability: '(void*)n+sizeof(struct TrieMapNode)+(n->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:156:26: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:156:26: portability: '(void*)n+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:156:26: portability: '(void*)n+sizeof(struct TrieMapNode)+(n->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:160:7: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:160:7: portability: '(void*)n+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:160:7: portability: '(void*)n+sizeof(struct TrieMapNode)+(n->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:189:11: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:189:11: portability: '(void*)n+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:189:11: portability: '(void*)n+sizeof(struct TrieMapNode)+(n->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:251:23: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:251:23: portability: '(void*)n+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:251:23: portability: '(void*)n+sizeof(struct TrieMapNode)+(n->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:305:23: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:305:23: portability: '(void*)n+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:305:23: portability: '(void*)n+sizeof(struct TrieMapNode)+(n->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:334:22: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:334:22: portability: '(void*)n+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:334:22: portability: '(void*)n+sizeof(struct TrieMapNode)+(n->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:346:10: portability: '(void*)merged' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:346:10: portability: '(void*)merged+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:346:10: portability: '(void*)merged+sizeof(struct TrieMapNode)+(merged->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:346:42: portability: '(void*)ch' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:346:42: portability: '(void*)ch+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:346:42: portability: '(void*)ch+sizeof(struct TrieMapNode)+(ch->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:361:25: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:361:25: portability: '(void*)n+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:361:25: portability: '(void*)n+sizeof(struct TrieMapNode)+(n->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:441:23: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:441:23: portability: '(void*)n+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:441:23: portability: '(void*)n+sizeof(struct TrieMapNode)+(n->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:471:26: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:471:26: portability: '(void*)n+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:471:26: portability: '(void*)n+sizeof(struct TrieMapNode)+(n->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:483:26: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:483:26: portability: '(void*)n+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:483:26: portability: '(void*)n+sizeof(struct TrieMapNode)+(n->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:610:29: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:610:29: portability: '(void*)n+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:610:29: portability: '(void*)n+sizeof(struct TrieMapNode)+(n->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:672:28: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:672:28: portability: '(void*)n+sizeof(struct TrieMapNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:672:28: portability: '(void*)n+sizeof(struct TrieMapNode)+(n->len+1)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/dep/triemap/triemap.c:229:14: style: Variable 'c' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/dep/triemap/triemap.c:229:12: style: Variable 'c' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/dep/triemap/triemap.c:301:14: style: Variable 'c' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/dep/triemap/triemap.c:301:12: style: Variable 'c' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/doc_table.c:15:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable size [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/document.c:218:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/document.c:493:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/document.c:579:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable docId [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/ext/default.c:231:5: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] RediSearch-1.2.2/src/fragmenter.c:219:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iovec [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/fragmenter.c:261:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable scoreRank [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/doc_table.c:139:6: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd->payload [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:136:29: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:136:29: note: Assignment 'dmd->payload=malloc(sizeof(struct RSPayload))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:139:6: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:205:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dpl [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:204:20: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:204:20: note: Assignment 'dpl=malloc(sizeof(struct RSPayload))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:205:5: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:206:12: warning: If memory allocation fails, then there is a possible null pointer dereference: dpl [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:204:20: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:204:20: note: Assignment 'dpl=malloc(sizeof(struct RSPayload))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:206:12: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:207:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dpl [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:204:20: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:204:20: note: Assignment 'dpl=malloc(sizeof(struct RSPayload))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:207:5: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:215:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:214:38: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:214:38: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:215:3: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:216:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:214:38: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:214:38: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:216:3: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:217:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:214:38: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:214:38: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:217:3: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:218:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:214:38: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:214:38: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:218:3: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:219:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:214:38: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:214:38: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:219:3: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:220:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:214:38: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:214:38: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:220:3: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:221:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:214:38: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:214:38: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:221:3: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:405:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:399:40: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:399:40: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:405:5: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:406:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:399:40: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:399:40: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:406:5: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:409:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:399:40: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:399:40: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:409:5: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:410:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:399:40: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:399:40: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:410:5: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:411:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:399:40: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:399:40: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:411:5: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:413:7: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:399:40: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:399:40: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:413:7: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:416:7: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:399:40: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:399:40: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:416:7: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:419:7: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:399:40: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:399:40: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:419:7: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:419:18: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:399:40: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:399:40: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:419:18: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:422:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:399:40: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:399:40: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:422:5: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:423:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:399:40: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:399:40: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:423:5: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:431:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:399:40: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:399:40: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:431:5: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:480:4: warning: If memory allocation fails, then there is a possible null pointer dereference: pd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:479:26: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:479:26: note: Assignment 'pd=malloc(sizeof(t_docId))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:480:4: note: Null pointer dereference RediSearch-1.2.2/src/doc_table.c:73:56: style:inconclusive: Function 'DocTable_GetByKeyR' argument 1 names different: declaration 'r' definition 't'. [funcArgNamesDifferent] RediSearch-1.2.2/src/doc_table.h:115:56: note: Function 'DocTable_GetByKeyR' argument 1 names different: declaration 'r' definition 't'. RediSearch-1.2.2/src/doc_table.c:73:56: note: Function 'DocTable_GetByKeyR' argument 1 names different: declaration 'r' definition 't'. RediSearch-1.2.2/src/doc_table.c:175:72: style:inconclusive: Function 'DocTable_SetByteOffsets' argument 3 names different: declaration 'offsets' definition 'v'. [funcArgNamesDifferent] RediSearch-1.2.2/src/doc_table.h:152:72: note: Function 'DocTable_SetByteOffsets' argument 3 names different: declaration 'offsets' definition 'v'. RediSearch-1.2.2/src/doc_table.c:175:72: note: Function 'DocTable_SetByteOffsets' argument 3 names different: declaration 'offsets' definition 'v'. RediSearch-1.2.2/src/doc_table.c:230:53: style:inconclusive: Function 'DocTable_GetPayload' argument 2 names different: declaration 'dodcId' definition 'docId'. [funcArgNamesDifferent] RediSearch-1.2.2/src/doc_table.h:156:53: note: Function 'DocTable_GetPayload' argument 2 names different: declaration 'dodcId' definition 'docId'. RediSearch-1.2.2/src/doc_table.c:230:53: note: Function 'DocTable_GetPayload' argument 2 names different: declaration 'dodcId' definition 'docId'. RediSearch-1.2.2/src/doc_table.c:175:39: style: Parameter 't' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/doc_table.c:230:42: style: Parameter 't' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/doc_table.c:237:48: style: Parameter 't' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/doc_table.c:246:42: style: Parameter 't' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/fragmenter.c:508:5: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/fragmenter.c:508:5: portability: %lu in format string (no. 3) requires 'unsigned long' but the argument type is 'ptrdiff_t {aka signed int}'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/fragmenter.c:226:3: warning: If memory allocation fails, then there is a possible null pointer dereference: docBuf [nullPointerOutOfMemory] RediSearch-1.2.2/src/fragmenter.c:225:24: note: Assuming allocation function fails RediSearch-1.2.2/src/fragmenter.c:225:24: note: Assignment 'docBuf=malloc(docLen+1)', assigned value is 0 RediSearch-1.2.2/src/fragmenter.c:226:3: note: Null pointer dereference RediSearch-1.2.2/src/fragmenter.c:344:65: style:inconclusive: Function 'FragmentList_HighlightFragments' argument 4 names different: declaration 'iovBufList' definition 'iovArrList'. [funcArgNamesDifferent] RediSearch-1.2.2/src/fragmenter.h:221:65: note: Function 'FragmentList_HighlightFragments' argument 4 names different: declaration 'iovBufList' definition 'iovArrList'. RediSearch-1.2.2/src/fragmenter.c:344:65: note: Function 'FragmentList_HighlightFragments' argument 4 names different: declaration 'iovBufList' definition 'iovArrList'. RediSearch-1.2.2/src/fragmenter.c:396:38: style:inconclusive: Function 'FragmentList_Free' argument 1 names different: declaration 'frags' definition 'fragList'. [funcArgNamesDifferent] RediSearch-1.2.2/src/fragmenter.h:180:38: note: Function 'FragmentList_Free' argument 1 names different: declaration 'frags' definition 'fragList'. RediSearch-1.2.2/src/fragmenter.c:396:38: note: Function 'FragmentList_Free' argument 1 names different: declaration 'frags' definition 'fragList'. RediSearch-1.2.2/src/fragmenter.c:457:89: style:inconclusive: Function 'FragmentTermIterator_InitOffsets' argument 2 names different: declaration 'bytesIter' definition 'byteOffsets'. [funcArgNamesDifferent] RediSearch-1.2.2/src/fragmenter.h:62:89: note: Function 'FragmentTermIterator_InitOffsets' argument 2 names different: declaration 'bytesIter' definition 'byteOffsets'. RediSearch-1.2.2/src/fragmenter.c:457:89: note: Function 'FragmentTermIterator_InitOffsets' argument 2 names different: declaration 'bytesIter' definition 'byteOffsets'. RediSearch-1.2.2/src/fragmenter.c:33:12: style: Variable 'locs' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/fragmenter.c:486:16: style: Variable 'term' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/fragmenter.c:339:39: portability: '(void*)frag->buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/fragmenter.c:35:22: style: Variable 'firstOcurrence' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/fragmenter.c:35:7: style: Variable 'firstOcurrence' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/document.c:196:5: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/document.c:118:62: style:inconclusive: Function 'NewAddDocumentCtx' argument 2 names different: declaration 'base' definition 'b'. [funcArgNamesDifferent] RediSearch-1.2.2/src/document.h:207:62: note: Function 'NewAddDocumentCtx' argument 2 names different: declaration 'base' definition 'b'. RediSearch-1.2.2/src/document.c:118:62: note: Function 'NewAddDocumentCtx' argument 2 names different: declaration 'base' definition 'b'. RediSearch-1.2.2/src/document.c:485:45: style:inconclusive: Function 'Document_AddToIndexes' argument 1 names different: declaration 'ctx' definition 'aCtx'. [funcArgNamesDifferent] RediSearch-1.2.2/src/document.h:228:45: note: Function 'Document_AddToIndexes' argument 1 names different: declaration 'ctx' definition 'aCtx'. RediSearch-1.2.2/src/document.c:485:45: note: Function 'Document_AddToIndexes' argument 1 names different: declaration 'ctx' definition 'aCtx'. RediSearch-1.2.2/src/document.c:218:14: warning: Unused variable value 'toLoad' [constStatement] RediSearch-1.2.2/src/extension.c:93:5: error: Resource leak: handle [resourceLeak] RediSearch-1.2.2/src/extension.c:98:5: error: Resource leak: handle [resourceLeak] RediSearch-1.2.2/src/extension.c:101:3: error: Resource leak: handle [resourceLeak] RediSearch-1.2.2/src/extension.c:32:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/extension.c:31:32: note: Assuming allocation function fails RediSearch-1.2.2/src/extension.c:31:32: note: Assignment 'ctx=malloc(sizeof(struct ExtScoringFunctionCtx))', assigned value is 0 RediSearch-1.2.2/src/extension.c:32:3: note: Null pointer dereference RediSearch-1.2.2/src/extension.c:33:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/extension.c:31:32: note: Assuming allocation function fails RediSearch-1.2.2/src/extension.c:31:32: note: Assignment 'ctx=malloc(sizeof(struct ExtScoringFunctionCtx))', assigned value is 0 RediSearch-1.2.2/src/extension.c:33:3: note: Null pointer dereference RediSearch-1.2.2/src/extension.c:34:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/extension.c:31:32: note: Assuming allocation function fails RediSearch-1.2.2/src/extension.c:31:32: note: Assignment 'ctx=malloc(sizeof(struct ExtScoringFunctionCtx))', assigned value is 0 RediSearch-1.2.2/src/extension.c:34:3: note: Null pointer dereference RediSearch-1.2.2/src/extension.c:53:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/extension.c:52:30: note: Assuming allocation function fails RediSearch-1.2.2/src/extension.c:52:30: note: Assignment 'ctx=malloc(sizeof(struct ExtQueryExpanderCtx))', assigned value is 0 RediSearch-1.2.2/src/extension.c:53:3: note: Null pointer dereference RediSearch-1.2.2/src/document.c:43:88: style: Parameter 'base' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/extension.c:54:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/extension.c:52:30: note: Assuming allocation function fails RediSearch-1.2.2/src/extension.c:52:30: note: Assignment 'ctx=malloc(sizeof(struct ExtQueryExpanderCtx))', assigned value is 0 RediSearch-1.2.2/src/extension.c:54:3: note: Null pointer dereference RediSearch-1.2.2/src/document.c:63:16: style: Variable 'fs' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/extension.c:55:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/extension.c:52:30: note: Assuming allocation function fails RediSearch-1.2.2/src/extension.c:52:30: note: Assignment 'ctx=malloc(sizeof(struct ExtQueryExpanderCtx))', assigned value is 0 RediSearch-1.2.2/src/extension.c:55:3: note: Null pointer dereference RediSearch-1.2.2/src/document.c:640:18: style: Variable 'fs' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/document.c:337:22: style: Variable 'stemmer' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/document.c:337:14: style: Variable 'stemmer' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/forward_index.c:68:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/forward_index.c:83:32: note: Assuming allocation function fails RediSearch-1.2.2/src/forward_index.c:83:32: note: Assignment 'idx=malloc(sizeof(struct ForwardIndex))', assigned value is 0 RediSearch-1.2.2/src/forward_index.c:102:27: note: Calling function 'ForwardIndex_InitCommon', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/forward_index.c:68:3: note: Null pointer dereference RediSearch-1.2.2/src/forward_index.c:69:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/forward_index.c:83:32: note: Assuming allocation function fails RediSearch-1.2.2/src/forward_index.c:83:32: note: Assignment 'idx=malloc(sizeof(struct ForwardIndex))', assigned value is 0 RediSearch-1.2.2/src/forward_index.c:102:27: note: Calling function 'ForwardIndex_InitCommon', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/forward_index.c:69:3: note: Null pointer dereference RediSearch-1.2.2/src/forward_index.c:70:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/forward_index.c:83:32: note: Assuming allocation function fails RediSearch-1.2.2/src/forward_index.c:83:32: note: Assignment 'idx=malloc(sizeof(struct ForwardIndex))', assigned value is 0 RediSearch-1.2.2/src/forward_index.c:102:27: note: Calling function 'ForwardIndex_InitCommon', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/forward_index.c:70:3: note: Null pointer dereference RediSearch-1.2.2/src/forward_index.c:72:7: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/forward_index.c:83:32: note: Assuming allocation function fails RediSearch-1.2.2/src/forward_index.c:83:32: note: Assignment 'idx=malloc(sizeof(struct ForwardIndex))', assigned value is 0 RediSearch-1.2.2/src/forward_index.c:102:27: note: Calling function 'ForwardIndex_InitCommon', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/forward_index.c:72:7: note: Null pointer dereference RediSearch-1.2.2/src/forward_index.c:72:37: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/forward_index.c:83:32: note: Assuming allocation function fails RediSearch-1.2.2/src/forward_index.c:83:32: note: Assignment 'idx=malloc(sizeof(struct ForwardIndex))', assigned value is 0 RediSearch-1.2.2/src/forward_index.c:102:27: note: Calling function 'ForwardIndex_InitCommon', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/forward_index.c:72:37: note: Null pointer dereference RediSearch-1.2.2/src/forward_index.c:77:8: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/forward_index.c:83:32: note: Assuming allocation function fails RediSearch-1.2.2/src/forward_index.c:83:32: note: Assignment 'idx=malloc(sizeof(struct ForwardIndex))', assigned value is 0 RediSearch-1.2.2/src/forward_index.c:102:27: note: Calling function 'ForwardIndex_InitCommon', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/forward_index.c:77:8: note: Null pointer dereference RediSearch-1.2.2/src/forward_index.c:95:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/forward_index.c:83:32: note: Assuming allocation function fails RediSearch-1.2.2/src/forward_index.c:83:32: note: Assignment 'idx=malloc(sizeof(struct ForwardIndex))', assigned value is 0 RediSearch-1.2.2/src/forward_index.c:95:3: note: Null pointer dereference RediSearch-1.2.2/src/forward_index.c:96:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/forward_index.c:83:32: note: Assuming allocation function fails RediSearch-1.2.2/src/forward_index.c:83:32: note: Assignment 'idx=malloc(sizeof(struct ForwardIndex))', assigned value is 0 RediSearch-1.2.2/src/forward_index.c:96:3: note: Null pointer dereference RediSearch-1.2.2/src/forward_index.c:97:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/forward_index.c:83:32: note: Assuming allocation function fails RediSearch-1.2.2/src/forward_index.c:83:32: note: Assignment 'idx=malloc(sizeof(struct ForwardIndex))', assigned value is 0 RediSearch-1.2.2/src/forward_index.c:97:3: note: Null pointer dereference RediSearch-1.2.2/src/forward_index.c:99:16: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/forward_index.c:83:32: note: Assuming allocation function fails RediSearch-1.2.2/src/forward_index.c:83:32: note: Assignment 'idx=malloc(sizeof(struct ForwardIndex))', assigned value is 0 RediSearch-1.2.2/src/forward_index.c:99:16: note: Null pointer dereference RediSearch-1.2.2/src/forward_index.c:100:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/forward_index.c:83:32: note: Assuming allocation function fails RediSearch-1.2.2/src/forward_index.c:83:32: note: Assignment 'idx=malloc(sizeof(struct ForwardIndex))', assigned value is 0 RediSearch-1.2.2/src/forward_index.c:100:3: note: Null pointer dereference RediSearch-1.2.2/src/forward_index.c:20:22: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/forward_index.c:67:66: style: Parameter 'doc' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/forward_index.c:127:19: style: Variable 'elemSize' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/forward_index.c:127:10: style: Variable 'elemSize' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/forward_index.c:249:7: style: Unused variable: dummy [unusedVariable] RediSearch-1.2.2/src/id_filter.c:11:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ids [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/id_filter.c:11:4: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_filter.c:10:25: note: Assuming allocation function fails RediSearch-1.2.2/src/id_filter.c:10:25: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/id_filter.c:11:4: note: Null pointer dereference RediSearch-1.2.2/src/id_filter.c:15:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_filter.c:10:25: note: Assuming allocation function fails RediSearch-1.2.2/src/id_filter.c:10:25: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/id_filter.c:12:13: note: Assuming condition is false RediSearch-1.2.2/src/id_filter.c:15:3: note: Null pointer dereference RediSearch-1.2.2/src/id_filter.c:8:70: style: Parameter 'dt' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/id_list.c:125:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_list.c:123:24: note: Assuming allocation function fails RediSearch-1.2.2/src/id_list.c:123:24: note: Assignment 'it=malloc(sizeof(struct IdListIterator))', assigned value is 0 RediSearch-1.2.2/src/id_list.c:125:3: note: Null pointer dereference RediSearch-1.2.2/src/id_list.c:126:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_list.c:123:24: note: Assuming allocation function fails RediSearch-1.2.2/src/id_list.c:123:24: note: Assignment 'it=malloc(sizeof(struct IdListIterator))', assigned value is 0 RediSearch-1.2.2/src/id_list.c:126:3: note: Null pointer dereference RediSearch-1.2.2/src/id_list.c:128:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_list.c:123:24: note: Assuming allocation function fails RediSearch-1.2.2/src/id_list.c:123:24: note: Assignment 'it=malloc(sizeof(struct IdListIterator))', assigned value is 0 RediSearch-1.2.2/src/id_list.c:128:3: note: Null pointer dereference RediSearch-1.2.2/src/id_list.c:129:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_list.c:123:24: note: Assuming allocation function fails RediSearch-1.2.2/src/id_list.c:123:24: note: Assignment 'it=malloc(sizeof(struct IdListIterator))', assigned value is 0 RediSearch-1.2.2/src/id_list.c:129:3: note: Null pointer dereference RediSearch-1.2.2/src/id_list.c:130:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_list.c:123:24: note: Assuming allocation function fails RediSearch-1.2.2/src/id_list.c:123:24: note: Assignment 'it=malloc(sizeof(struct IdListIterator))', assigned value is 0 RediSearch-1.2.2/src/id_list.c:130:3: note: Null pointer dereference RediSearch-1.2.2/src/id_list.c:131:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_list.c:123:24: note: Assuming allocation function fails RediSearch-1.2.2/src/id_list.c:123:24: note: Assignment 'it=malloc(sizeof(struct IdListIterator))', assigned value is 0 RediSearch-1.2.2/src/id_list.c:131:3: note: Null pointer dereference RediSearch-1.2.2/src/id_list.c:133:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_list.c:123:24: note: Assuming allocation function fails RediSearch-1.2.2/src/id_list.c:123:24: note: Assignment 'it=malloc(sizeof(struct IdListIterator))', assigned value is 0 RediSearch-1.2.2/src/id_list.c:133:3: note: Null pointer dereference RediSearch-1.2.2/src/id_list.c:136:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_list.c:135:24: note: Assuming allocation function fails RediSearch-1.2.2/src/id_list.c:135:24: note: Assignment 'ret=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/id_list.c:136:3: note: Null pointer dereference RediSearch-1.2.2/src/id_list.c:137:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_list.c:135:24: note: Assuming allocation function fails RediSearch-1.2.2/src/id_list.c:135:24: note: Assignment 'ret=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/id_list.c:137:3: note: Null pointer dereference RediSearch-1.2.2/src/id_list.c:138:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_list.c:135:24: note: Assuming allocation function fails RediSearch-1.2.2/src/id_list.c:135:24: note: Assignment 'ret=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/id_list.c:138:3: note: Null pointer dereference RediSearch-1.2.2/src/id_list.c:139:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_list.c:135:24: note: Assuming allocation function fails RediSearch-1.2.2/src/id_list.c:135:24: note: Assignment 'ret=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/id_list.c:139:3: note: Null pointer dereference RediSearch-1.2.2/src/id_list.c:140:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_list.c:135:24: note: Assuming allocation function fails RediSearch-1.2.2/src/id_list.c:135:24: note: Assignment 'ret=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/id_list.c:140:3: note: Null pointer dereference RediSearch-1.2.2/src/id_list.c:141:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_list.c:135:24: note: Assuming allocation function fails RediSearch-1.2.2/src/id_list.c:135:24: note: Assignment 'ret=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/id_list.c:141:3: note: Null pointer dereference RediSearch-1.2.2/src/id_list.c:142:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_list.c:135:24: note: Assuming allocation function fails RediSearch-1.2.2/src/id_list.c:135:24: note: Assignment 'ret=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/id_list.c:142:3: note: Null pointer dereference RediSearch-1.2.2/src/id_list.c:143:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_list.c:135:24: note: Assuming allocation function fails RediSearch-1.2.2/src/id_list.c:135:24: note: Assignment 'ret=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/id_list.c:143:3: note: Null pointer dereference RediSearch-1.2.2/src/id_list.c:144:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_list.c:135:24: note: Assuming allocation function fails RediSearch-1.2.2/src/id_list.c:135:24: note: Assignment 'ret=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/id_list.c:144:3: note: Null pointer dereference RediSearch-1.2.2/src/id_list.c:145:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/id_list.c:135:24: note: Assuming allocation function fails RediSearch-1.2.2/src/id_list.c:135:24: note: Assignment 'ret=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/id_list.c:145:3: note: Null pointer dereference RediSearch-1.2.2/src/geo_index.c:129:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lon [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/time_sample.h:17:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/time_sample.h:24:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/gc.c:66:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timer [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/gc.c:209:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/gc.c:337:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/index_result.c:12:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/index_result.c:39:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/index_result.c:55:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/index_result.c:70:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/highlight_processor.c:203:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iovec [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/index_result.c:11:4: warning: If memory allocation fails, then there is a possible null pointer dereference: res [nullPointerOutOfMemory] RediSearch-1.2.2/src/index_result.c:9:24: note: Assuming allocation function fails RediSearch-1.2.2/src/index_result.c:9:24: note: Assignment 'res=malloc(sizeof(struct RSIndexResult))', assigned value is 0 RediSearch-1.2.2/src/index_result.c:11:4: note: Null pointer dereference RediSearch-1.2.2/src/index_result.c:39:4: warning: If memory allocation fails, then there is a possible null pointer dereference: res [nullPointerOutOfMemory] RediSearch-1.2.2/src/index_result.c:37:24: note: Assuming allocation function fails RediSearch-1.2.2/src/index_result.c:37:24: note: Assignment 'res=malloc(sizeof(struct RSIndexResult))', assigned value is 0 RediSearch-1.2.2/src/index_result.c:39:4: note: Null pointer dereference RediSearch-1.2.2/src/index_result.c:55:4: warning: If memory allocation fails, then there is a possible null pointer dereference: res [nullPointerOutOfMemory] RediSearch-1.2.2/src/index_result.c:53:24: note: Assuming allocation function fails RediSearch-1.2.2/src/index_result.c:53:24: note: Assignment 'res=malloc(sizeof(struct RSIndexResult))', assigned value is 0 RediSearch-1.2.2/src/index_result.c:55:4: note: Null pointer dereference RediSearch-1.2.2/src/index_result.c:69:4: warning: If memory allocation fails, then there is a possible null pointer dereference: res [nullPointerOutOfMemory] RediSearch-1.2.2/src/index_result.c:67:24: note: Assuming allocation function fails RediSearch-1.2.2/src/index_result.c:67:24: note: Assignment 'res=malloc(sizeof(struct RSIndexResult))', assigned value is 0 RediSearch-1.2.2/src/index_result.c:69:4: note: Null pointer dereference RediSearch-1.2.2/src/index_result.c:83:4: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index_result.c:82:24: note: Assuming allocation function fails RediSearch-1.2.2/src/index_result.c:82:24: note: Assignment 'ret=malloc(sizeof(struct RSIndexResult))', assigned value is 0 RediSearch-1.2.2/src/index_result.c:83:4: note: Null pointer dereference RediSearch-1.2.2/src/index_result.c:84:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index_result.c:82:24: note: Assuming allocation function fails RediSearch-1.2.2/src/index_result.c:82:24: note: Assignment 'ret=malloc(sizeof(struct RSIndexResult))', assigned value is 0 RediSearch-1.2.2/src/index_result.c:84:3: note: Null pointer dereference RediSearch-1.2.2/src/index_result.c:151:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index_result.c:150:31: note: Assuming allocation function fails RediSearch-1.2.2/src/index_result.c:150:31: note: Assignment 'ret=malloc(sizeof(struct RSQueryTerm))', assigned value is 0 RediSearch-1.2.2/src/index_result.c:151:3: note: Null pointer dereference RediSearch-1.2.2/src/index_result.c:152:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index_result.c:150:31: note: Assuming allocation function fails RediSearch-1.2.2/src/index_result.c:150:31: note: Assignment 'ret=malloc(sizeof(struct RSQueryTerm))', assigned value is 0 RediSearch-1.2.2/src/index_result.c:152:3: note: Null pointer dereference RediSearch-1.2.2/src/index_result.c:153:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index_result.c:150:31: note: Assuming allocation function fails RediSearch-1.2.2/src/index_result.c:150:31: note: Assignment 'ret=malloc(sizeof(struct RSQueryTerm))', assigned value is 0 RediSearch-1.2.2/src/index_result.c:153:3: note: Null pointer dereference RediSearch-1.2.2/src/index_result.c:154:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index_result.c:150:31: note: Assuming allocation function fails RediSearch-1.2.2/src/index_result.c:150:31: note: Assignment 'ret=malloc(sizeof(struct RSQueryTerm))', assigned value is 0 RediSearch-1.2.2/src/index_result.c:154:3: note: Null pointer dereference RediSearch-1.2.2/src/index_result.c:155:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index_result.c:150:31: note: Assuming allocation function fails RediSearch-1.2.2/src/index_result.c:150:31: note: Assignment 'ret=malloc(sizeof(struct RSQueryTerm))', assigned value is 0 RediSearch-1.2.2/src/index_result.c:155:3: note: Null pointer dereference RediSearch-1.2.2/src/index_result.c:247:7: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] RediSearch-1.2.2/src/index_result.c:255:7: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] RediSearch-1.2.2/src/index_result.c:81:58: style:inconclusive: Function 'IndexResult_DeepCopy' argument 1 names different: declaration 'res' definition 'src'. [funcArgNamesDifferent] RediSearch-1.2.2/src/index_result.h:55:58: note: Function 'IndexResult_DeepCopy' argument 1 names different: declaration 'res' definition 'src'. RediSearch-1.2.2/src/index_result.c:81:58: note: Function 'IndexResult_DeepCopy' argument 1 names different: declaration 'res' definition 'src'. RediSearch-1.2.2/src/index_result.c:434:46: style:inconclusive: Function 'IndexResult_IsWithinRange' argument 1 names different: declaration 'r' definition 'ir'. [funcArgNamesDifferent] RediSearch-1.2.2/src/index_result.h:72:46: note: Function 'IndexResult_IsWithinRange' argument 1 names different: declaration 'r' definition 'ir'. RediSearch-1.2.2/src/index_result.c:434:46: note: Function 'IndexResult_IsWithinRange' argument 1 names different: declaration 'r' definition 'ir'. RediSearch-1.2.2/src/index_result.c:222:53: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/index_result.c:362:44: style: Parameter 'arr' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/index_result.c:374:44: style: Parameter 'arr' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/geo_index.c:128:4: warning: If memory allocation fails, then there is a possible null pointer dereference: gf [nullPointerOutOfMemory] RediSearch-1.2.2/src/geo_index.c:127:25: note: Assuming allocation function fails RediSearch-1.2.2/src/geo_index.c:127:25: note: Assignment 'gf=malloc(sizeof(*gf))', assigned value is 0 RediSearch-1.2.2/src/geo_index.c:128:4: note: Null pointer dereference RediSearch-1.2.2/src/highlight_processor.c:325:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hlpCtx [nullPointerOutOfMemory] RediSearch-1.2.2/src/highlight_processor.c:324:30: note: Assuming allocation function fails RediSearch-1.2.2/src/highlight_processor.c:324:30: note: Assignment 'hlpCtx=calloc(1,sizeof(*hlpCtx))', assigned value is 0 RediSearch-1.2.2/src/highlight_processor.c:325:3: note: Null pointer dereference RediSearch-1.2.2/src/geo_index.c:139:34: style:inconclusive: Function 'GeoFilter_IsValid' argument 1 names different: declaration 'f' definition 'gf'. [funcArgNamesDifferent] RediSearch-1.2.2/src/geo_index.h:33:34: note: Function 'GeoFilter_IsValid' argument 1 names different: declaration 'f' definition 'gf'. RediSearch-1.2.2/src/geo_index.c:139:34: note: Function 'GeoFilter_IsValid' argument 1 names different: declaration 'f' definition 'gf'. RediSearch-1.2.2/src/geo_index.c:139:34: style: Parameter 'gf' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/gc.c:65:4: warning: If memory allocation fails, then there is a possible null pointer dereference: gc [nullPointerOutOfMemory] RediSearch-1.2.2/src/gc.c:63:35: note: Assuming allocation function fails RediSearch-1.2.2/src/gc.c:63:35: note: Assignment 'gc=malloc(sizeof(*gc))', assigned value is 0 RediSearch-1.2.2/src/gc.c:65:4: note: Null pointer dereference RediSearch-1.2.2/src/gc.c:69:3: warning: If memory allocation fails, then there is a possible null pointer dereference: gc [nullPointerOutOfMemory] RediSearch-1.2.2/src/gc.c:63:35: note: Assuming allocation function fails RediSearch-1.2.2/src/gc.c:63:35: note: Assignment 'gc=malloc(sizeof(*gc))', assigned value is 0 RediSearch-1.2.2/src/gc.c:69:3: note: Null pointer dereference RediSearch-1.2.2/src/gc.c:70:3: warning: If memory allocation fails, then there is a possible null pointer dereference: gc [nullPointerOutOfMemory] RediSearch-1.2.2/src/gc.c:63:35: note: Assuming allocation function fails RediSearch-1.2.2/src/gc.c:63:35: note: Assignment 'gc=malloc(sizeof(*gc))', assigned value is 0 RediSearch-1.2.2/src/gc.c:70:3: note: Null pointer dereference RediSearch-1.2.2/src/gc.c:186:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/gc.c:185:37: note: Assuming allocation function fails RediSearch-1.2.2/src/gc.c:185:37: note: Assignment 'ctx=malloc(sizeof(struct NumericFieldGCCtx))', assigned value is 0 RediSearch-1.2.2/src/gc.c:186:3: note: Null pointer dereference RediSearch-1.2.2/src/gc.c:187:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/gc.c:185:37: note: Assuming allocation function fails RediSearch-1.2.2/src/gc.c:185:37: note: Assignment 'ctx=malloc(sizeof(struct NumericFieldGCCtx))', assigned value is 0 RediSearch-1.2.2/src/gc.c:187:3: note: Null pointer dereference RediSearch-1.2.2/src/gc.c:188:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/gc.c:185:37: note: Assuming allocation function fails RediSearch-1.2.2/src/gc.c:185:37: note: Assignment 'ctx=malloc(sizeof(struct NumericFieldGCCtx))', assigned value is 0 RediSearch-1.2.2/src/gc.c:188:3: note: Null pointer dereference RediSearch-1.2.2/src/highlight_processor.c:323:57: style:inconclusive: Function 'NewHighlightProcessor' argument 1 names different: declaration 'upstream' definition 'parent'. [funcArgNamesDifferent] RediSearch-1.2.2/src/highlight.h:7:57: note: Function 'NewHighlightProcessor' argument 1 names different: declaration 'upstream' definition 'parent'. RediSearch-1.2.2/src/highlight_processor.c:323:57: note: Function 'NewHighlightProcessor' argument 1 names different: declaration 'upstream' definition 'parent'. RediSearch-1.2.2/src/highlight_processor.c:202:19: style: Variable 'iovs' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/highlight_processor.c:242:92: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/highlight_processor.c:252:15: style: Variable 'hlpCtx' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/highlight_processor.c:286:23: style: Variable 'dmd' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/gc.c:209:16: warning: Unused variable value 'fields' [constStatement] RediSearch-1.2.2/src/tests/time_sample.h:31:53: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/tests/time_sample.h:36:53: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/tests/time_sample.h:41:51: style: Parameter 'ts' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/module-init/module-init.c:9:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REDISMODULE_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/numeric_filter.c:126:7: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] RediSearch-1.2.2/src/index.c:62:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:61:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:61:29: note: Assignment 'ctx=calloc(1,sizeof(struct UnionContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:62:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:63:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:61:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:61:29: note: Assignment 'ctx=calloc(1,sizeof(struct UnionContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:63:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:64:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:61:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:61:29: note: Assignment 'ctx=calloc(1,sizeof(struct UnionContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:64:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:65:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:61:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:61:29: note: Assignment 'ctx=calloc(1,sizeof(struct UnionContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:65:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:66:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:61:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:61:29: note: Assignment 'ctx=calloc(1,sizeof(struct UnionContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:66:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:67:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:61:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:61:29: note: Assignment 'ctx=calloc(1,sizeof(struct UnionContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:67:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:68:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:61:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:61:29: note: Assignment 'ctx=calloc(1,sizeof(struct UnionContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:68:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:69:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:61:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:61:29: note: Assignment 'ctx=calloc(1,sizeof(struct UnionContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:69:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:70:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:61:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:61:29: note: Assignment 'ctx=calloc(1,sizeof(struct UnionContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:70:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:73:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:72:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:72:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:73:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:74:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:72:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:72:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:74:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:75:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:72:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:72:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:75:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:76:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:72:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:72:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:76:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:77:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:72:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:72:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:77:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:78:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:72:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:72:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:78:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:79:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:72:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:72:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:79:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:80:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:72:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:72:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:80:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:81:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:72:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:72:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:81:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:82:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:72:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:72:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:82:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:331:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:330:33: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:330:33: note: Assignment 'ctx=calloc(1,sizeof(struct IntersectContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:331:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:332:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:330:33: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:330:33: note: Assignment 'ctx=calloc(1,sizeof(struct IntersectContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:332:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:333:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:330:33: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:330:33: note: Assignment 'ctx=calloc(1,sizeof(struct IntersectContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:333:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:334:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:330:33: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:330:33: note: Assignment 'ctx=calloc(1,sizeof(struct IntersectContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:334:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:335:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:330:33: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:330:33: note: Assignment 'ctx=calloc(1,sizeof(struct IntersectContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:335:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:336:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:330:33: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:330:33: note: Assignment 'ctx=calloc(1,sizeof(struct IntersectContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:336:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:337:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:330:33: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:330:33: note: Assignment 'ctx=calloc(1,sizeof(struct IntersectContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:337:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:338:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:330:33: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:330:33: note: Assignment 'ctx=calloc(1,sizeof(struct IntersectContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:338:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:339:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:330:33: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:330:33: note: Assignment 'ctx=calloc(1,sizeof(struct IntersectContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:339:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:340:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:330:33: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:330:33: note: Assignment 'ctx=calloc(1,sizeof(struct IntersectContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:340:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:341:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:330:33: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:330:33: note: Assignment 'ctx=calloc(1,sizeof(struct IntersectContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:341:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:342:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:330:33: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:330:33: note: Assignment 'ctx=calloc(1,sizeof(struct IntersectContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:342:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:343:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:330:33: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:330:33: note: Assignment 'ctx=calloc(1,sizeof(struct IntersectContext))', assigned value is 0 RediSearch-1.2.2/src/index.c:343:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:347:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:346:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:346:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:347:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:348:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:346:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:346:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:348:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:349:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:346:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:346:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:349:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:350:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:346:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:346:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:350:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:351:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:346:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:346:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:351:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:352:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:346:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:346:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:352:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:353:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:346:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:346:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:353:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:354:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:346:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:346:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:354:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:355:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:346:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:346:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:355:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:356:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:346:29: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:346:29: note: Assignment 'it=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/index.c:356:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:683:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:682:26: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:682:26: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:683:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:684:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:682:26: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:682:26: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:684:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:685:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:682:26: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:682:26: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:685:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:686:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:682:26: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:682:26: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:686:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:687:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:682:26: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:682:26: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:687:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:688:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:682:26: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:682:26: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:688:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:689:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:682:26: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:682:26: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:689:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:690:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:682:26: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:682:26: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:690:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:693:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:692:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:692:30: note: Assignment 'ret=malloc(sizeof(*it))', assigned value is 0 RediSearch-1.2.2/src/index.c:693:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:694:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:692:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:692:30: note: Assignment 'ret=malloc(sizeof(*it))', assigned value is 0 RediSearch-1.2.2/src/index.c:694:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:695:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:692:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:692:30: note: Assignment 'ret=malloc(sizeof(*it))', assigned value is 0 RediSearch-1.2.2/src/index.c:695:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:696:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:692:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:692:30: note: Assignment 'ret=malloc(sizeof(*it))', assigned value is 0 RediSearch-1.2.2/src/index.c:696:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:697:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:692:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:692:30: note: Assignment 'ret=malloc(sizeof(*it))', assigned value is 0 RediSearch-1.2.2/src/index.c:697:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:698:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:692:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:692:30: note: Assignment 'ret=malloc(sizeof(*it))', assigned value is 0 RediSearch-1.2.2/src/index.c:698:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:699:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:692:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:692:30: note: Assignment 'ret=malloc(sizeof(*it))', assigned value is 0 RediSearch-1.2.2/src/index.c:699:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:700:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:692:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:692:30: note: Assignment 'ret=malloc(sizeof(*it))', assigned value is 0 RediSearch-1.2.2/src/index.c:700:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:701:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:692:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:692:30: note: Assignment 'ret=malloc(sizeof(*it))', assigned value is 0 RediSearch-1.2.2/src/index.c:701:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:702:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:692:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:692:30: note: Assignment 'ret=malloc(sizeof(*it))', assigned value is 0 RediSearch-1.2.2/src/index.c:702:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:816:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:815:36: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:815:36: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:816:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:817:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:815:36: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:815:36: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:817:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:818:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:815:36: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:815:36: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:818:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:819:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:815:36: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:815:36: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:819:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:819:17: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:815:36: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:815:36: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:819:17: note: Null pointer dereference RediSearch-1.2.2/src/index.c:820:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:815:36: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:815:36: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:820:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:821:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:815:36: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:815:36: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:821:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:822:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:815:36: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:815:36: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:822:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:823:3: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:815:36: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:815:36: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:823:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:826:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:825:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:825:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:826:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:827:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:825:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:825:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:827:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:828:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:825:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:825:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:828:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:829:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:825:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:825:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:829:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:830:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:825:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:825:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:830:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:831:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:825:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:825:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:831:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:832:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:825:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:825:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:832:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:833:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:825:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:825:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:833:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:834:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:825:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:825:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:834:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:835:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:825:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:825:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:835:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:931:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:930:34: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:930:34: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 RediSearch-1.2.2/src/index.c:931:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:932:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:930:34: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:930:34: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 RediSearch-1.2.2/src/index.c:932:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:933:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:930:34: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:930:34: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 RediSearch-1.2.2/src/index.c:933:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:934:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:930:34: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:930:34: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 RediSearch-1.2.2/src/index.c:934:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:935:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:930:34: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:930:34: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 RediSearch-1.2.2/src/index.c:935:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:938:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:937:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:937:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:938:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:939:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:937:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:937:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:939:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:940:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:937:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:937:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:940:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:941:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:937:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:937:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:941:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:942:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:937:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:937:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:942:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:943:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:937:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:937:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:943:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:944:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:937:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:937:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:944:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:945:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:937:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:937:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:945:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:946:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:937:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:937:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:946:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:947:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:937:30: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:937:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/index.c:947:3: note: Null pointer dereference RediSearch-1.2.2/src/index.c:58:73: style:inconclusive: Function 'NewUnionIterator' argument 3 names different: declaration 't' definition 'dt'. [funcArgNamesDifferent] RediSearch-1.2.2/src/index.h:54:73: note: Function 'NewUnionIterator' argument 3 names different: declaration 't' definition 'dt'. RediSearch-1.2.2/src/index.c:58:73: note: Function 'NewUnionIterator' argument 3 names different: declaration 't' definition 'dt'. RediSearch-1.2.2/src/index.c:327:76: style:inconclusive: Function 'NewIntersecIterator' argument 3 names different: declaration 't' definition 'dt'. [funcArgNamesDifferent] RediSearch-1.2.2/src/index.h:84:76: note: Function 'NewIntersecIterator' argument 3 names different: declaration 't' definition 'dt'. RediSearch-1.2.2/src/index.c:327:76: note: Function 'NewIntersecIterator' argument 3 names different: declaration 't' definition 'dt'. RediSearch-1.2.2/src/index.c:162:17: style: Variable 'u' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/index.c:516:21: style: Variable 'ic' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/index.c:656:15: style: Variable 'nc' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/index.c:663:15: style: Variable 'nc' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/index.c:669:15: style: Variable 'nc' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/index.c:675:15: style: Variable 'nc' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/index.c:774:25: style: Variable 'nc' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/index.c:787:25: style: Variable 'nc' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/index.c:799:25: style: Variable 'nc' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/index.c:899:24: style: Variable 'nc' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/index.c:906:24: style: Variable 'nc' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/index.c:912:24: style: Variable 'nc' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/index.c:918:24: style: Variable 'nc' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/index.c:440:10: style: Variable 'nh' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/index.c:441:9: style: Variable 'i' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/numeric_index.c:220:7: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] RediSearch-1.2.2/src/inverted_index.c:34:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable firstId [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/inverted_index.c:306:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITY [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/inverted_index.c:450:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable docId [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/inverted_index.c:500:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/inverted_index.c:510:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/inverted_index.c:525:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITY [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/inverted_index.c:576:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/inverted_index.c:585:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/inverted_index.c:593:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/inverted_index.c:600:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/inverted_index.c:663:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/inverted_index.c:935:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/inverted_index.c:1002:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/offset_vector.c:54:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/offset_vector.c:98:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Next [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/offset_vector.c:110:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Next [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/module.c:195:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable redisCtx [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/module.c:346:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable options [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/module.c:681:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable redisCtx [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/module.c:1014:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable redisCtx [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/module.c:1476:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RedisModule_GetThreadSafeContext [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/offset_vector.c:69:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/offset_vector.c:68:42: note: Assuming allocation function fails RediSearch-1.2.2/src/offset_vector.c:68:42: note: Assignment 'it=malloc(sizeof(struct _RSAggregateOffsetIterator))', assigned value is 0 RediSearch-1.2.2/src/offset_vector.c:69:3: note: Null pointer dereference RediSearch-1.2.2/src/offset_vector.c:70:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/offset_vector.c:68:42: note: Assuming allocation function fails RediSearch-1.2.2/src/offset_vector.c:68:42: note: Assignment 'it=malloc(sizeof(struct _RSAggregateOffsetIterator))', assigned value is 0 RediSearch-1.2.2/src/offset_vector.c:70:3: note: Null pointer dereference RediSearch-1.2.2/src/offset_vector.c:71:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/offset_vector.c:68:42: note: Assuming allocation function fails RediSearch-1.2.2/src/offset_vector.c:68:42: note: Assignment 'it=malloc(sizeof(struct _RSAggregateOffsetIterator))', assigned value is 0 RediSearch-1.2.2/src/offset_vector.c:71:3: note: Null pointer dereference RediSearch-1.2.2/src/offset_vector.c:72:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/offset_vector.c:68:42: note: Assuming allocation function fails RediSearch-1.2.2/src/offset_vector.c:68:42: note: Assignment 'it=malloc(sizeof(struct _RSAggregateOffsetIterator))', assigned value is 0 RediSearch-1.2.2/src/offset_vector.c:72:3: note: Null pointer dereference RediSearch-1.2.2/src/offset_vector.c:161:45: style:inconclusive: Function '_aoi_Next' argument 2 names different: declaration 'term' definition 't'. [funcArgNamesDifferent] RediSearch-1.2.2/src/offset_vector.c:63:45: note: Function '_aoi_Next' argument 2 names different: declaration 'term' definition 't'. RediSearch-1.2.2/src/offset_vector.c:161:45: note: Function '_aoi_Next' argument 2 names different: declaration 'term' definition 't'. RediSearch-1.2.2/src/offset_vector.c:49:56: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/offset_vector.c:100:28: style: Parameter 'ctx' can be declared as pointer to const. However it seems that '_empty_Next' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/offset_vector.c:110:15: note: You might need to cast the function pointer here RediSearch-1.2.2/src/offset_vector.c:100:28: note: Parameter 'ctx' can be declared as pointer to const RediSearch-1.2.2/src/offset_vector.c:103:24: style: Parameter 'ctx' can be declared as pointer to const. However it seems that '_empty_Free' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/offset_vector.c:110:61: note: You might need to cast the function pointer here RediSearch-1.2.2/src/offset_vector.c:103:24: note: Parameter 'ctx' can be declared as pointer to const RediSearch-1.2.2/src/offset_vector.c:105:26: style: Parameter 'ctx' can be declared as pointer to const. However it seems that '_empty_Rewind' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/offset_vector.c:110:38: note: You might need to cast the function pointer here RediSearch-1.2.2/src/offset_vector.c:105:26: note: Parameter 'ctx' can be declared as pointer to const RediSearch-1.2.2/src/offset_vector.c:166:13: style: Variable 'offsets' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/indexer.c:546:3: warning: If memory allocation fails, then there is a possible null pointer dereference: indexer [nullPointerOutOfMemory] RediSearch-1.2.2/src/indexer.c:545:36: note: Assuming allocation function fails RediSearch-1.2.2/src/indexer.c:545:36: note: Assignment 'indexer=calloc(1,sizeof(*indexer))', assigned value is 0 RediSearch-1.2.2/src/indexer.c:546:3: note: Null pointer dereference RediSearch-1.2.2/src/indexer.c:546:19: warning: If memory allocation fails, then there is a possible null pointer dereference: indexer [nullPointerOutOfMemory] RediSearch-1.2.2/src/indexer.c:545:36: note: Assuming allocation function fails RediSearch-1.2.2/src/indexer.c:545:36: note: Assignment 'indexer=calloc(1,sizeof(*indexer))', assigned value is 0 RediSearch-1.2.2/src/indexer.c:546:19: note: Null pointer dereference RediSearch-1.2.2/src/indexer.c:557:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: indexer [nullPointerOutOfMemory] RediSearch-1.2.2/src/indexer.c:545:36: note: Assuming allocation function fails RediSearch-1.2.2/src/indexer.c:545:36: note: Assignment 'indexer=calloc(1,sizeof(*indexer))', assigned value is 0 RediSearch-1.2.2/src/indexer.c:557:3: note: Null pointer dereference RediSearch-1.2.2/src/indexer.c:558:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: indexer [nullPointerOutOfMemory] RediSearch-1.2.2/src/indexer.c:545:36: note: Assuming allocation function fails RediSearch-1.2.2/src/indexer.c:545:36: note: Assignment 'indexer=calloc(1,sizeof(*indexer))', assigned value is 0 RediSearch-1.2.2/src/indexer.c:558:3: note: Null pointer dereference RediSearch-1.2.2/src/indexer.c:559:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: indexer [nullPointerOutOfMemory] RediSearch-1.2.2/src/indexer.c:545:36: note: Assuming allocation function fails RediSearch-1.2.2/src/indexer.c:545:36: note: Assignment 'indexer=calloc(1,sizeof(*indexer))', assigned value is 0 RediSearch-1.2.2/src/indexer.c:559:3: note: Null pointer dereference RediSearch-1.2.2/src/indexer.c:560:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: indexer [nullPointerOutOfMemory] RediSearch-1.2.2/src/indexer.c:545:36: note: Assuming allocation function fails RediSearch-1.2.2/src/indexer.c:545:36: note: Assignment 'indexer=calloc(1,sizeof(*indexer))', assigned value is 0 RediSearch-1.2.2/src/indexer.c:560:3: note: Null pointer dereference RediSearch-1.2.2/src/indexer.c:561:38: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: indexer [nullPointerOutOfMemory] RediSearch-1.2.2/src/indexer.c:545:36: note: Assuming allocation function fails RediSearch-1.2.2/src/indexer.c:545:36: note: Assignment 'indexer=calloc(1,sizeof(*indexer))', assigned value is 0 RediSearch-1.2.2/src/indexer.c:561:38: note: Null pointer dereference RediSearch-1.2.2/src/indexer.c:561:77: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: indexer [nullPointerOutOfMemory] RediSearch-1.2.2/src/indexer.c:545:36: note: Assuming allocation function fails RediSearch-1.2.2/src/indexer.c:545:36: note: Assignment 'indexer=calloc(1,sizeof(*indexer))', assigned value is 0 RediSearch-1.2.2/src/indexer.c:561:77: note: Null pointer dereference RediSearch-1.2.2/src/indexer.c:563:53: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: indexer [nullPointerOutOfMemory] RediSearch-1.2.2/src/indexer.c:545:36: note: Assuming allocation function fails RediSearch-1.2.2/src/indexer.c:545:36: note: Assignment 'indexer=calloc(1,sizeof(*indexer))', assigned value is 0 RediSearch-1.2.2/src/indexer.c:563:53: note: Null pointer dereference RediSearch-1.2.2/src/indexer.c:138:40: style: Parameter 'ht' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/indexer.c:419:13: style: Variable 'doc' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/indexer.c:419:17: style: Variable 'doc' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/indexer.c:419:13: style: Variable 'doc' is assigned a value that is never used. [unreadVariable] lexer.rl:210:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARROW [valueFlowBailoutIncompleteVar] lexer.c:163:5: style: Redundant initialization for 'ts'. The initialized value is overwritten before it is read. [redundantInitialization] lexer.rl:242:18: note: ts is initialized lexer.c:163:5: note: ts is overwritten lexer.c:164:5: style: Redundant initialization for 'te'. The initialized value is overwritten before it is read. [redundantInitialization] lexer.rl:243:18: note: te is initialized lexer.c:164:5: note: te is overwritten RediSearch-1.2.2/src/util/strconv.h:21:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/util/strconv.h:35:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query.c:110:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fieldMask [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query.c:122:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable str [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query.c:134:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable str [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query.c:146:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable str [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query.c:155:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tok [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query.c:170:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable children [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query.c:178:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable children [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query.c:206:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nf [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query.c:213:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gf [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query.c:340:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable expanded [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query.c:440:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __INT_MAX__ [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query.c:753:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stopwords [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query.c:805:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query_plan.c:119:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable docId [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query_plan.c:197:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC_RAW [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query_plan.c:253:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stopwords [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query_plan.c:296:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable callback [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/inverted_index.c:242:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/inverted_index.c:254:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/inverted_index.c:32:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assignment 'idx=malloc(sizeof(struct InvertedIndex))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:48:28: note: Calling function 'InvertedIndex_AddBlock', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/inverted_index.c:32:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:33:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assignment 'idx=malloc(sizeof(struct InvertedIndex))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:48:28: note: Calling function 'InvertedIndex_AddBlock', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/inverted_index.c:33:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:33:28: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assignment 'idx=malloc(sizeof(struct InvertedIndex))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:48:28: note: Calling function 'InvertedIndex_AddBlock', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/inverted_index.c:33:28: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:33:41: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assignment 'idx=malloc(sizeof(struct InvertedIndex))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:48:28: note: Calling function 'InvertedIndex_AddBlock', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/inverted_index.c:33:41: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:34:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assignment 'idx=malloc(sizeof(struct InvertedIndex))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:48:28: note: Calling function 'InvertedIndex_AddBlock', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/inverted_index.c:34:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:34:15: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assignment 'idx=malloc(sizeof(struct InvertedIndex))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:48:28: note: Calling function 'InvertedIndex_AddBlock', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/inverted_index.c:34:15: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:35:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assignment 'idx=malloc(sizeof(struct InvertedIndex))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:48:28: note: Calling function 'InvertedIndex_AddBlock', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/inverted_index.c:35:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:36:11: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assignment 'idx=malloc(sizeof(struct InvertedIndex))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:48:28: note: Calling function 'InvertedIndex_AddBlock', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/inverted_index.c:36:11: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:41:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assignment 'idx=malloc(sizeof(struct InvertedIndex))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:41:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:42:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assignment 'idx=malloc(sizeof(struct InvertedIndex))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:42:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:43:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assignment 'idx=malloc(sizeof(struct InvertedIndex))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:43:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:44:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assignment 'idx=malloc(sizeof(struct InvertedIndex))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:44:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:45:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assignment 'idx=malloc(sizeof(struct InvertedIndex))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:45:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:46:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assignment 'idx=malloc(sizeof(struct InvertedIndex))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:46:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:825:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assignment 'ret=malloc(sizeof(struct IndexReader))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:825:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:826:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assignment 'ret=malloc(sizeof(struct IndexReader))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:826:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:828:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assignment 'ret=malloc(sizeof(struct IndexReader))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:828:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:829:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assignment 'ret=malloc(sizeof(struct IndexReader))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:829:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:830:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assignment 'ret=malloc(sizeof(struct IndexReader))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:830:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:831:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assignment 'ret=malloc(sizeof(struct IndexReader))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:831:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:832:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assignment 'ret=malloc(sizeof(struct IndexReader))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:832:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:833:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assignment 'ret=malloc(sizeof(struct IndexReader))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:833:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:833:17: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assignment 'ret=malloc(sizeof(struct IndexReader))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:833:17: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:834:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assignment 'ret=malloc(sizeof(struct IndexReader))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:834:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:834:29: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assignment 'ret=malloc(sizeof(struct IndexReader))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:834:29: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:835:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assignment 'ret=malloc(sizeof(struct IndexReader))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:835:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:836:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assignment 'ret=malloc(sizeof(struct IndexReader))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:836:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:898:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ri [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assignment 'ri=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:898:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:899:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ri [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assignment 'ri=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:899:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:900:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ri [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assignment 'ri=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:900:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:901:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ri [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assignment 'ri=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:901:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:902:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ri [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assignment 'ri=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:902:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:903:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ri [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assignment 'ri=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:903:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:904:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ri [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assignment 'ri=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:904:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:905:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ri [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assignment 'ri=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:905:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:906:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ri [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assignment 'ri=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:906:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:907:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ri [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:897:32: note: Assignment 'ri=malloc(sizeof(struct IndexIterator))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:907:3: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:279:34: style: Redundant initialization for 'header'. The initialized value is overwritten before it is read. [redundantInitialization] RediSearch-1.2.2/src/inverted_index.c:267:25: note: header is initialized RediSearch-1.2.2/src/inverted_index.c:279:34: note: header is overwritten RediSearch-1.2.2/src/inverted_index.c:58:31: style:inconclusive: Function 'InvertedIndex_Free' argument 1 names different: declaration 'idx' definition 'ctx'. [funcArgNamesDifferent] RediSearch-1.2.2/src/inverted_index.h:63:31: note: Function 'InvertedIndex_Free' argument 1 names different: declaration 'idx' definition 'ctx'. RediSearch-1.2.2/src/inverted_index.c:58:31: note: Function 'InvertedIndex_Free' argument 1 names different: declaration 'idx' definition 'ctx'. RediSearch-1.2.2/src/inverted_index.c:930:12: style: Local variable 'readFlags' shadows outer function [shadowFunction] RediSearch-1.2.2/src/inverted_index.c:562:1: note: Shadowed declaration RediSearch-1.2.2/src/inverted_index.c:930:12: note: Shadow variable RediSearch-1.2.2/src/inverted_index.c:458:16: style: Variable 'ir' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/inverted_index.c:737:18: style: Variable 'idx' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/inverted_index.c:816:16: style: Variable 'ir' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/inverted_index.c:840:63: style: Parameter 'docTable' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/inverted_index.c:915:57: style: Parameter 'dt' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/inverted_index.c:1005:17: style: Variable 'blk' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/inverted_index.c:198:11: style: struct member 'NumEncodingInt::deltaEncoding' is never used. [unusedStructMember] RediSearch-1.2.2/src/inverted_index.c:199:11: style: struct member 'NumEncodingInt::zero' is never used. [unusedStructMember] RediSearch-1.2.2/src/inverted_index.c:205:11: style: struct member 'NumEncodingTiny::deltaEncoding' is never used. [unusedStructMember] RediSearch-1.2.2/src/inverted_index.c:206:11: style: struct member 'NumEncodingTiny::zero' is never used. [unusedStructMember] RediSearch-1.2.2/src/inverted_index.c:212:11: style: struct member 'NumEncodingFloat::deltaEncoding' is never used. [unusedStructMember] RediSearch-1.2.2/src/redis_index.c:145:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable spec [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/redis_index.c:173:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable redisCtx [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/redis_index.c:412:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query_plan.c:237:34: warning: If memory allocation fails, then there is a possible null pointer dereference: plan [nullPointerOutOfMemory] RediSearch-1.2.2/src/query_plan.c:250:27: note: Assuming allocation function fails RediSearch-1.2.2/src/query_plan.c:250:27: note: Assignment 'plan=calloc(1,sizeof(*plan))', assigned value is 0 RediSearch-1.2.2/src/query_plan.c:277:43: note: Calling function 'queryPlan_EvalQuery', 1st argument 'plan' value is 0 RediSearch-1.2.2/src/query_plan.c:237:34: note: Null pointer dereference RediSearch-1.2.2/src/query_plan.c:237:47: warning: If memory allocation fails, then there is a possible null pointer dereference: plan [nullPointerOutOfMemory] RediSearch-1.2.2/src/query_plan.c:250:27: note: Assuming allocation function fails RediSearch-1.2.2/src/query_plan.c:250:27: note: Assignment 'plan=calloc(1,sizeof(*plan))', assigned value is 0 RediSearch-1.2.2/src/query_plan.c:277:43: note: Calling function 'queryPlan_EvalQuery', 1st argument 'plan' value is 0 RediSearch-1.2.2/src/query_plan.c:237:47: note: Null pointer dereference RediSearch-1.2.2/src/query_plan.c:238:30: warning: If memory allocation fails, then there is a possible null pointer dereference: plan [nullPointerOutOfMemory] RediSearch-1.2.2/src/query_plan.c:250:27: note: Assuming allocation function fails RediSearch-1.2.2/src/query_plan.c:250:27: note: Assignment 'plan=calloc(1,sizeof(*plan))', assigned value is 0 RediSearch-1.2.2/src/query_plan.c:277:43: note: Calling function 'queryPlan_EvalQuery', 1st argument 'plan' value is 0 RediSearch-1.2.2/src/query_plan.c:238:30: note: Null pointer dereference RediSearch-1.2.2/src/query_plan.c:241:30: warning: If memory allocation fails, then there is a possible null pointer dereference: plan [nullPointerOutOfMemory] RediSearch-1.2.2/src/query_plan.c:250:27: note: Assuming allocation function fails RediSearch-1.2.2/src/query_plan.c:250:27: note: Assignment 'plan=calloc(1,sizeof(*plan))', assigned value is 0 RediSearch-1.2.2/src/query_plan.c:277:43: note: Calling function 'queryPlan_EvalQuery', 1st argument 'plan' value is 0 RediSearch-1.2.2/src/query_plan.c:241:30: note: Null pointer dereference RediSearch-1.2.2/src/query_plan.c:244:3: warning: If memory allocation fails, then there is a possible null pointer dereference: plan [nullPointerOutOfMemory] RediSearch-1.2.2/src/query_plan.c:250:27: note: Assuming allocation function fails RediSearch-1.2.2/src/query_plan.c:250:27: note: Assignment 'plan=calloc(1,sizeof(*plan))', assigned value is 0 RediSearch-1.2.2/src/query_plan.c:277:43: note: Calling function 'queryPlan_EvalQuery', 1st argument 'plan' value is 0 RediSearch-1.2.2/src/query_plan.c:244:3: note: Null pointer dereference RediSearch-1.2.2/src/query_plan.c:245:10: warning: If memory allocation fails, then there is a possible null pointer dereference: plan [nullPointerOutOfMemory] RediSearch-1.2.2/src/query_plan.c:250:27: note: Assuming allocation function fails RediSearch-1.2.2/src/query_plan.c:250:27: note: Assignment 'plan=calloc(1,sizeof(*plan))', assigned value is 0 RediSearch-1.2.2/src/query_plan.c:277:43: note: Calling function 'queryPlan_EvalQuery', 1st argument 'plan' value is 0 RediSearch-1.2.2/src/query_plan.c:245:10: note: Null pointer dereference RediSearch-1.2.2/src/query_plan.c:251:3: warning: If memory allocation fails, then there is a possible null pointer dereference: plan [nullPointerOutOfMemory] RediSearch-1.2.2/src/query_plan.c:250:27: note: Assuming allocation function fails RediSearch-1.2.2/src/query_plan.c:250:27: note: Assignment 'plan=calloc(1,sizeof(*plan))', assigned value is 0 RediSearch-1.2.2/src/query_plan.c:251:3: note: Null pointer dereference RediSearch-1.2.2/src/query_plan.c:252:3: warning: If memory allocation fails, then there is a possible null pointer dereference: plan [nullPointerOutOfMemory] RediSearch-1.2.2/src/query_plan.c:250:27: note: Assuming allocation function fails RediSearch-1.2.2/src/query_plan.c:250:27: note: Assignment 'plan=calloc(1,sizeof(*plan))', assigned value is 0 RediSearch-1.2.2/src/query_plan.c:252:3: note: Null pointer dereference RediSearch-1.2.2/src/query_plan.c:253:3: warning: If memory allocation fails, then there is a possible null pointer dereference: plan [nullPointerOutOfMemory] RediSearch-1.2.2/src/query_plan.c:250:27: note: Assuming allocation function fails RediSearch-1.2.2/src/query_plan.c:250:27: note: Assignment 'plan=calloc(1,sizeof(*plan))', assigned value is 0 RediSearch-1.2.2/src/query_plan.c:253:3: note: Null pointer dereference RediSearch-1.2.2/src/query_plan.c:254:7: warning: If memory allocation fails, then there is a possible null pointer dereference: plan [nullPointerOutOfMemory] RediSearch-1.2.2/src/query_plan.c:250:27: note: Assuming allocation function fails RediSearch-1.2.2/src/query_plan.c:250:27: note: Assignment 'plan=calloc(1,sizeof(*plan))', assigned value is 0 RediSearch-1.2.2/src/query_plan.c:254:7: note: Null pointer dereference RediSearch-1.2.2/src/query_plan.c:257:7: warning: If memory allocation fails, then there is a possible null pointer dereference: plan [nullPointerOutOfMemory] RediSearch-1.2.2/src/query_plan.c:250:27: note: Assuming allocation function fails RediSearch-1.2.2/src/query_plan.c:250:27: note: Assignment 'plan=calloc(1,sizeof(*plan))', assigned value is 0 RediSearch-1.2.2/src/query_plan.c:257:7: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:222:11: style: struct member 'NumEncodingCommon::specific' is never used. [unusedStructMember] RediSearch-1.2.2/src/query_plan.c:261:3: warning: If memory allocation fails, then there is a possible null pointer dereference: plan [nullPointerOutOfMemory] RediSearch-1.2.2/src/query_plan.c:250:27: note: Assuming allocation function fails RediSearch-1.2.2/src/query_plan.c:250:27: note: Assignment 'plan=calloc(1,sizeof(*plan))', assigned value is 0 RediSearch-1.2.2/src/query_plan.c:261:3: note: Null pointer dereference RediSearch-1.2.2/src/query_plan.c:266:15: warning: If memory allocation fails, then there is a possible null pointer dereference: plan [nullPointerOutOfMemory] RediSearch-1.2.2/src/query_plan.c:250:27: note: Assuming allocation function fails RediSearch-1.2.2/src/query_plan.c:250:27: note: Assignment 'plan=calloc(1,sizeof(*plan))', assigned value is 0 RediSearch-1.2.2/src/query_plan.c:266:15: note: Null pointer dereference RediSearch-1.2.2/src/query_plan.c:267:15: warning: If memory allocation fails, then there is a possible null pointer dereference: plan [nullPointerOutOfMemory] RediSearch-1.2.2/src/query_plan.c:250:27: note: Assuming allocation function fails RediSearch-1.2.2/src/query_plan.c:250:27: note: Assignment 'plan=calloc(1,sizeof(*plan))', assigned value is 0 RediSearch-1.2.2/src/query_plan.c:267:15: note: Null pointer dereference RediSearch-1.2.2/src/query_plan.c:270:7: warning: If memory allocation fails, then there is a possible null pointer dereference: plan [nullPointerOutOfMemory] RediSearch-1.2.2/src/query_plan.c:250:27: note: Assuming allocation function fails RediSearch-1.2.2/src/query_plan.c:250:27: note: Assignment 'plan=calloc(1,sizeof(*plan))', assigned value is 0 RediSearch-1.2.2/src/query_plan.c:270:7: note: Null pointer dereference RediSearch-1.2.2/src/inverted_index.c:288:23: style: Variable 'wholeNum' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/inverted_index.c:288:14: style: Variable 'wholeNum' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/inverted_index.c:490:12: style: Unused variable: maskSz [unusedVariable] RediSearch-1.2.2/src/inverted_index.c:506:12: style: Unused variable: maskSz [unusedVariable] RediSearch-1.2.2/src/query.c:365:7: error: Common realloc mistake: 'its' nulled but not freed upon failure [memleakOnRealloc] RediSearch-1.2.2/src/query.c:577:7: error: Common realloc mistake: 'its' nulled but not freed upon failure [memleakOnRealloc] RediSearch-1.2.2/src/query.c:108:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] RediSearch-1.2.2/src/query.c:107:24: note: Assuming allocation function fails RediSearch-1.2.2/src/query.c:107:24: note: Assignment 's=calloc(1,sizeof(struct QueryNode))', assigned value is 0 RediSearch-1.2.2/src/query.c:108:3: note: Null pointer dereference RediSearch-1.2.2/src/query.c:109:3: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] RediSearch-1.2.2/src/query.c:107:24: note: Assuming allocation function fails RediSearch-1.2.2/src/query.c:107:24: note: Assignment 's=calloc(1,sizeof(struct QueryNode))', assigned value is 0 RediSearch-1.2.2/src/query.c:109:3: note: Null pointer dereference RediSearch-1.2.2/src/query.c:421:5: warning: If memory allocation fails, then there is a possible null pointer dereference: iters [nullPointerOutOfMemory] RediSearch-1.2.2/src/query.c:418:33: note: Assuming allocation function fails RediSearch-1.2.2/src/query.c:418:33: note: Assignment 'iters=calloc(node->numChildren,sizeof(struct IndexIterator*))', assigned value is 0 RediSearch-1.2.2/src/query.c:421:5: note: Null pointer dereference RediSearch-1.2.2/src/query.c:767:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/query.c:766:30: note: Assuming allocation function fails RediSearch-1.2.2/src/query.c:766:30: note: Assignment 'ctx=malloc(sizeof(*ctx))', assigned value is 0 RediSearch-1.2.2/src/query.c:767:3: note: Null pointer dereference RediSearch-1.2.2/src/query.c:768:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/query.c:766:30: note: Assuming allocation function fails RediSearch-1.2.2/src/query.c:766:30: note: Assignment 'ctx=malloc(sizeof(*ctx))', assigned value is 0 RediSearch-1.2.2/src/query.c:768:3: note: Null pointer dereference RediSearch-1.2.2/src/query.c:769:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/query.c:766:30: note: Assuming allocation function fails RediSearch-1.2.2/src/query.c:766:30: note: Assignment 'ctx=malloc(sizeof(*ctx))', assigned value is 0 RediSearch-1.2.2/src/query.c:769:3: note: Null pointer dereference RediSearch-1.2.2/src/query.c:770:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/query.c:766:30: note: Assuming allocation function fails RediSearch-1.2.2/src/query.c:766:30: note: Assignment 'ctx=malloc(sizeof(*ctx))', assigned value is 0 RediSearch-1.2.2/src/query.c:770:3: note: Null pointer dereference RediSearch-1.2.2/src/query.c:771:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/query.c:766:30: note: Assuming allocation function fails RediSearch-1.2.2/src/query.c:766:30: note: Assignment 'ctx=malloc(sizeof(*ctx))', assigned value is 0 RediSearch-1.2.2/src/query.c:771:3: note: Null pointer dereference RediSearch-1.2.2/src/query.c:772:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/query.c:766:30: note: Assuming allocation function fails RediSearch-1.2.2/src/query.c:766:30: note: Assignment 'ctx=malloc(sizeof(*ctx))', assigned value is 0 RediSearch-1.2.2/src/query.c:772:3: note: Null pointer dereference RediSearch-1.2.2/src/query.c:773:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/query.c:766:30: note: Assuming allocation function fails RediSearch-1.2.2/src/query.c:766:30: note: Assignment 'ctx=malloc(sizeof(*ctx))', assigned value is 0 RediSearch-1.2.2/src/query.c:773:3: note: Null pointer dereference RediSearch-1.2.2/src/query.c:774:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/query.c:766:30: note: Assuming allocation function fails RediSearch-1.2.2/src/query.c:766:30: note: Assignment 'ctx=malloc(sizeof(*ctx))', assigned value is 0 RediSearch-1.2.2/src/query.c:774:3: note: Null pointer dereference RediSearch-1.2.2/src/rmutil/alloc.c:27:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RedisModule_Alloc [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/query.c:194:35: style:inconclusive: Function 'NewTagNode' argument 1 names different: declaration 'tag' definition 'field'. [funcArgNamesDifferent] RediSearch-1.2.2/src/query.h:79:35: note: Function 'NewTagNode' argument 1 names different: declaration 'tag' definition 'field'. RediSearch-1.2.2/src/query.c:194:35: note: Function 'NewTagNode' argument 1 names different: declaration 'tag' definition 'field'. RediSearch-1.2.2/src/query.c:931:51: style:inconclusive: Function 'QueryNode_Print' argument 2 names different: declaration 'qs' definition 'qn'. [funcArgNamesDifferent] RediSearch-1.2.2/src/query.h:87:51: note: Function 'QueryNode_Print' argument 2 names different: declaration 'qs' definition 'qn'. RediSearch-1.2.2/src/query.c:931:51: note: Function 'QueryNode_Print' argument 2 names different: declaration 'qs' definition 'qn'. RediSearch-1.2.2/src/query.c:984:62: style:inconclusive: Function 'QueryNode_ApplyAttributes' argument 2 names different: declaration 'attr' definition 'attrs'. [funcArgNamesDifferent] RediSearch-1.2.2/src/query_node.h:153:62: note: Function 'QueryNode_ApplyAttributes' argument 2 names different: declaration 'attr' definition 'attrs'. RediSearch-1.2.2/src/query.c:984:62: note: Function 'QueryNode_ApplyAttributes' argument 2 names different: declaration 'attr' definition 'attrs'. RediSearch-1.2.2/src/query.c:321:62: style: Parameter 'opts' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/query.c:450:60: style: Parameter 'q' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/query.c:450:74: style: Parameter 'qn' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/query.c:480:14: style: Variable 'fs' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/query.c:544:90: style: Parameter 'qn' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/query.c:764:50: style: Parameter 'opts' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/query.c:946:61: style: Parameter 'attr' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/module.c:195:20: style: Local variable 'sctx' shadows outer variable [shadowVariable] RediSearch-1.2.2/src/module.c:163:18: note: Shadowed declaration RediSearch-1.2.2/src/module.c:195:20: note: Shadow variable RediSearch-1.2.2/src/module.c:289:63: style: Parameter 'sp' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/module.c:874:14: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/module.c:977:14: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/rmutil/cmdparse.c:73:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable str [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/cmdparse.c:107:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/cmdparse.c:162:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable k [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/cmdparse.c:190:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable val [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/cmdparse.c:469:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/cmdparse.c:482:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/cmdparse.c:866:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable str [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/cmdparse.c:882:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable str [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/cmdparse.c:893:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable str [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/cmdparse.c:900:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable arg [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/cmdparse.c:908:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable arg [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/heap.c:15:31: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/periodic.c:29:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ETIMEDOUT [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/periodic.c:78:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable privdata [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/periodic.c:77:4: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/rmutil/periodic.c:76:28: note: Assuming allocation function fails RediSearch-1.2.2/src/rmutil/periodic.c:76:28: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/rmutil/periodic.c:77:4: note: Null pointer dereference RediSearch-1.2.2/src/rmutil/periodic.c:16:53: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/periodic.c:16:73: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/priority_queue.c:6:5: warning: If memory allocation fails, then there is a possible null pointer dereference: pq [nullPointerOutOfMemory] RediSearch-1.2.2/src/rmutil/priority_queue.c:5:31: note: Assuming allocation function fails RediSearch-1.2.2/src/rmutil/priority_queue.c:5:31: note: Assignment 'pq=malloc(sizeof(struct PriorityQueue))', assigned value is 0 RediSearch-1.2.2/src/rmutil/priority_queue.c:6:5: note: Null pointer dereference RediSearch-1.2.2/src/rmutil/priority_queue.c:7:5: warning: If memory allocation fails, then there is a possible null pointer dereference: pq [nullPointerOutOfMemory] RediSearch-1.2.2/src/rmutil/priority_queue.c:5:31: note: Assuming allocation function fails RediSearch-1.2.2/src/rmutil/priority_queue.c:5:31: note: Assignment 'pq=malloc(sizeof(struct PriorityQueue))', assigned value is 0 RediSearch-1.2.2/src/rmutil/priority_queue.c:7:5: note: Null pointer dereference RediSearch-1.2.2/src/rmutil/cmdparse.c:750:13: style: Condition 'current' is always true [knownConditionTrueFalse] RediSearch-1.2.2/src/rmutil/cmdparse.c:29:7: warning: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'signed long'. [invalidPrintfArgType_sint] RediSearch-1.2.2/src/rmutil/cmdparse.c:67:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/rmutil/cmdparse.c:65:23: note: Assuming allocation function fails RediSearch-1.2.2/src/rmutil/cmdparse.c:65:23: note: Assignment 'ret=malloc(sizeof(struct CmdArg))', assigned value is 0 RediSearch-1.2.2/src/rmutil/cmdparse.c:67:3: note: Null pointer dereference RediSearch-1.2.2/src/rmutil/cmdparse.c:179:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/rmutil/cmdparse.c:178:33: note: Assuming allocation function fails RediSearch-1.2.2/src/rmutil/cmdparse.c:178:33: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/rmutil/cmdparse.c:179:3: note: Null pointer dereference RediSearch-1.2.2/src/rmutil/cmdparse.c:180:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/rmutil/cmdparse.c:178:33: note: Assuming allocation function fails RediSearch-1.2.2/src/rmutil/cmdparse.c:178:33: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/rmutil/cmdparse.c:180:3: note: Null pointer dereference RediSearch-1.2.2/src/rmutil/cmdparse.c:181:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/rmutil/cmdparse.c:178:33: note: Assuming allocation function fails RediSearch-1.2.2/src/rmutil/cmdparse.c:178:33: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/rmutil/cmdparse.c:181:3: note: Null pointer dereference RediSearch-1.2.2/src/rmutil/cmdparse.c:189:4: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/rmutil/cmdparse.c:188:30: note: Assuming allocation function fails RediSearch-1.2.2/src/rmutil/cmdparse.c:188:30: note: Assignment 'ret=malloc(sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/rmutil/cmdparse.c:189:4: note: Null pointer dereference RediSearch-1.2.2/src/rmutil/cmdparse.c:866:5: warning: If memory allocation fails, then there is a possible null pointer dereference: args [nullPointerOutOfMemory] RediSearch-1.2.2/src/rmutil/cmdparse.c:862:27: note: Assuming allocation function fails RediSearch-1.2.2/src/rmutil/cmdparse.c:862:27: note: Assignment 'args=calloc(argc,sizeof(struct CmdString))', assigned value is 0 RediSearch-1.2.2/src/rmutil/cmdparse.c:866:5: note: Null pointer dereference RediSearch-1.2.2/src/rmutil/cmdparse.c:882:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/rmutil/cmdparse.c:879:26: note: Assuming allocation function fails RediSearch-1.2.2/src/rmutil/cmdparse.c:879:26: note: Assignment 'ret=calloc(size,sizeof(struct CmdString))', assigned value is 0 RediSearch-1.2.2/src/rmutil/cmdparse.c:882:5: note: Null pointer dereference RediSearch-1.2.2/src/rmutil/cmdparse.c:893:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/rmutil/cmdparse.c:891:26: note: Assuming allocation function fails RediSearch-1.2.2/src/rmutil/cmdparse.c:891:26: note: Assignment 'ret=calloc(argc,sizeof(struct CmdString))', assigned value is 0 RediSearch-1.2.2/src/rmutil/cmdparse.c:893:5: note: Null pointer dereference RediSearch-1.2.2/src/rmutil/cmdparse.c:889:47: style:inconclusive: Function 'CmdParser_NewArgListC' argument 1 names different: declaration 'args' definition 'argv'. [funcArgNamesDifferent] RediSearch-1.2.2/src/rmutil/cmdparse.h:270:47: note: Function 'CmdParser_NewArgListC' argument 1 names different: declaration 'args' definition 'argv'. RediSearch-1.2.2/src/rmutil/cmdparse.c:889:47: note: Function 'CmdParser_NewArgListC' argument 1 names different: declaration 'args' definition 'argv'. RediSearch-1.2.2/src/rmutil/cmdparse.c:889:60: style:inconclusive: Function 'CmdParser_NewArgListC' argument 2 names different: declaration 'size' definition 'argc'. [funcArgNamesDifferent] RediSearch-1.2.2/src/rmutil/cmdparse.h:270:60: note: Function 'CmdParser_NewArgListC' argument 2 names different: declaration 'size' definition 'argc'. RediSearch-1.2.2/src/rmutil/cmdparse.c:889:60: note: Function 'CmdParser_NewArgListC' argument 2 names different: declaration 'size' definition 'argc'. RediSearch-1.2.2/src/rmutil/cmdparse.c:12:37: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/cmdparse.c:337:65: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/cmdparse.c:422:47: style: Parameter 'n' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/cmdparse.c:492:42: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/cmdparse.c:523:32: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/cmdparse.c:537:29: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/cmdparse.c:565:35: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/cmdparse.c:574:39: style: Parameter 'tup' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/cmdparse.c:594:41: style: Parameter 'vec' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/cmdparse.c:666:77: style: Parameter 'argv' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/cmdparse.c:822:20: style: Variable 'edge' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/rmutil/cmdparse.c:958:29: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/cmdparse.c:461:18: style: struct member 'CmdParserCtx::node' is never used. [unusedStructMember] RediSearch-1.2.2/src/rmutil/cmdparse.c:462:24: style: struct member 'CmdParserCtx::edgeFlags' is never used. [unusedStructMember] RediSearch-1.2.2/src/rmutil/test_heap.c:15:9: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] RediSearch-1.2.2/src/rmutil/test_periodic.c:16:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tv_sec [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/test_periodic.c:27:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/test_priority_queue.c:6:10: style: Variable '__i1' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/rmutil/test_priority_queue.c:7:10: style: Variable '__i2' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:10:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:69:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:125:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:170:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:192:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:219:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:246:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:290:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:319:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:348:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:381:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:400:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:498:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/test_vector.c:12:5: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] RediSearch-1.2.2/src/result_processor.c:17:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable privdata [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/util.c:51:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REDISMODULE_REPLY_ERROR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/util.c:102:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/util.c:129:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/util.c:175:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REDISMODULE_OK [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/util.c:203:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REDISMODULE_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/util.c:222:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/util.c:243:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REDISMODULE_KEYTYPE_EMPTY [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/util.c:287:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REDISMODULE_REPLY_STRING [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:19:3: style: Argument 'root->size==1' to function __STRING is always 0. It does not matter what value 'size' has. [knownArgument] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:19:3: note: Assuming that condition '!(root->size==1)' is not redundant RediSearch-1.2.2/src/rmutil/test_cmdparse.c:19:3: note: Argument 'root->size==1' to function __STRING is always 0. It does not matter what value 'size' has. RediSearch-1.2.2/src/rmutil/test_cmdparse.c:21:3: style: Argument 'root->size==2' to function __STRING is always 0. It does not matter what value 'size' has. [knownArgument] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:21:3: note: Assuming that condition '!(root->size==2)' is not redundant RediSearch-1.2.2/src/rmutil/test_cmdparse.c:21:3: note: Argument 'root->size==2' to function __STRING is always 0. It does not matter what value 'size' has. RediSearch-1.2.2/src/rmutil/test_cmdparse.c:24:3: style: Argument 'root->size==3' to function __STRING is always 0. It does not matter what value 'size' has. [knownArgument] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:24:3: note: Assuming that condition '!(root->size==3)' is not redundant RediSearch-1.2.2/src/rmutil/test_cmdparse.c:24:3: note: Argument 'root->size==3' to function __STRING is always 0. It does not matter what value 'size' has. RediSearch-1.2.2/src/rmutil/test_cmdparse.c:32:3: style: Argument 'sub->size==1' to function __STRING is always 0. It does not matter what value 'size' has. [knownArgument] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:32:3: note: Assuming that condition '!(sub->size==1)' is not redundant RediSearch-1.2.2/src/rmutil/test_cmdparse.c:32:3: note: Argument 'sub->size==1' to function __STRING is always 0. It does not matter what value 'size' has. RediSearch-1.2.2/src/rmutil/test_cmdparse.c:36:3: style: Argument 'root->size==5' to function __STRING is always 0. It does not matter what value 'size' has. [knownArgument] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:36:3: note: Assuming that condition '!(root->size==5)' is not redundant RediSearch-1.2.2/src/rmutil/test_cmdparse.c:36:3: note: Argument 'root->size==5' to function __STRING is always 0. It does not matter what value 'size' has. RediSearch-1.2.2/src/rmutil/test_cmdparse.c:43:3: style: Argument 'root->size==6' to function __STRING is always 0. It does not matter what value 'size' has. [knownArgument] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:43:3: note: Assuming that condition '!(root->size==6)' is not redundant RediSearch-1.2.2/src/rmutil/test_cmdparse.c:43:3: note: Argument 'root->size==6' to function __STRING is always 0. It does not matter what value 'size' has. RediSearch-1.2.2/src/rmutil/test_cmdparse.c:73:3: style: Argument 'cmd->type==CmdArg_Object' to function __STRING is always 0. It does not matter what value 'type' has. [knownArgument] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:73:3: note: Assuming that condition '!(cmd->type==CmdArg_Object)' is not redundant RediSearch-1.2.2/src/rmutil/test_cmdparse.c:73:3: note: Argument 'cmd->type==CmdArg_Object' to function __STRING is always 0. It does not matter what value 'type' has. RediSearch-1.2.2/src/rmutil/test_cmdparse.c:176:3: style: Argument 'bar->type==CmdArg_String' to function __STRING is always 0. It does not matter what value 'type' has. [knownArgument] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:176:3: note: Assuming that condition '!(bar->type==CmdArg_String)' is not redundant RediSearch-1.2.2/src/rmutil/test_cmdparse.c:176:3: note: Argument 'bar->type==CmdArg_String' to function __STRING is always 0. It does not matter what value 'type' has. RediSearch-1.2.2/src/rmutil/test_cmdparse.c:196:3: style: Argument 'bar->type==CmdArg_String' to function __STRING is always 0. It does not matter what value 'type' has. [knownArgument] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:196:3: note: Assuming that condition '!(bar->type==CmdArg_String)' is not redundant RediSearch-1.2.2/src/rmutil/test_cmdparse.c:196:3: note: Argument 'bar->type==CmdArg_String' to function __STRING is always 0. It does not matter what value 'type' has. RediSearch-1.2.2/src/rmutil/test_cmdparse.c:200:3: style: Argument 'baz->type==CmdArg_Integer' to function __STRING is always 0. It does not matter what value 'type' has. [knownArgument] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:200:3: note: Assuming that condition '!(baz->type==CmdArg_Integer)' is not redundant RediSearch-1.2.2/src/rmutil/test_cmdparse.c:200:3: note: Argument 'baz->type==CmdArg_Integer' to function __STRING is always 0. It does not matter what value 'type' has. RediSearch-1.2.2/src/rmutil/test_cmdparse.c:224:3: style: Argument 'bar->b==1' to function __STRING is always 0. It does not matter what value 'b' has. [knownArgument] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:224:3: note: Assuming that condition '!(bar->b==1)' is not redundant RediSearch-1.2.2/src/rmutil/test_cmdparse.c:224:3: note: Argument 'bar->b==1' to function __STRING is always 0. It does not matter what value 'b' has. RediSearch-1.2.2/src/rmutil/test_cmdparse.c:229:3: style: Argument 'baz->b==0' to function __STRING is always 0. It does not matter what value 'b' has. [knownArgument] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:229:3: note: Assuming that condition '!(baz->b==0)' is not redundant RediSearch-1.2.2/src/rmutil/test_cmdparse.c:229:3: note: Argument 'baz->b==0' to function __STRING is always 0. It does not matter what value 'b' has. RediSearch-1.2.2/src/rmutil/test_cmdparse.c:250:3: style: Argument 'barvaz->type==CmdArg_String' to function __STRING is always 0. It does not matter what value 'type' has. [knownArgument] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:250:3: note: Assuming that condition '!(barvaz->type==CmdArg_String)' is not redundant RediSearch-1.2.2/src/rmutil/test_cmdparse.c:250:3: note: Argument 'barvaz->type==CmdArg_String' to function __STRING is always 0. It does not matter what value 'type' has. RediSearch-1.2.2/src/rmutil/test_cmdparse.c:261:3: style: Argument 'barvaz->type==CmdArg_String' to function __STRING is always 0. It does not matter what value 'type' has. [knownArgument] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:261:3: note: Assuming that condition '!(barvaz->type==CmdArg_String)' is not redundant RediSearch-1.2.2/src/rmutil/test_cmdparse.c:261:3: note: Argument 'barvaz->type==CmdArg_String' to function __STRING is always 0. It does not matter what value 'type' has. RediSearch-1.2.2/src/rmutil/test_cmdparse.c:77:11: style: Variable 't' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:133:11: style: Variable 'e' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:195:11: style: Variable 'bar' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:199:11: style: Variable 'baz' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:421:11: style: Variable 'c' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/rmutil/test_cmdparse.c:488:11: style: Variable 'pair' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/rmutil/vector.c:70:3: warning: If memory allocation fails, then there is a possible null pointer dereference: vec [nullPointerOutOfMemory] RediSearch-1.2.2/src/rmutil/vector.c:69:23: note: Assuming allocation function fails RediSearch-1.2.2/src/rmutil/vector.c:69:23: note: Assignment 'vec=malloc(sizeof(struct Vector))', assigned value is 0 RediSearch-1.2.2/src/rmutil/vector.c:70:3: note: Null pointer dereference RediSearch-1.2.2/src/rmutil/vector.c:71:3: warning: If memory allocation fails, then there is a possible null pointer dereference: vec [nullPointerOutOfMemory] RediSearch-1.2.2/src/rmutil/vector.c:69:23: note: Assuming allocation function fails RediSearch-1.2.2/src/rmutil/vector.c:69:23: note: Assignment 'vec=malloc(sizeof(struct Vector))', assigned value is 0 RediSearch-1.2.2/src/rmutil/vector.c:71:3: note: Null pointer dereference RediSearch-1.2.2/src/rmutil/vector.c:72:3: warning: If memory allocation fails, then there is a possible null pointer dereference: vec [nullPointerOutOfMemory] RediSearch-1.2.2/src/rmutil/vector.c:69:23: note: Assuming allocation function fails RediSearch-1.2.2/src/rmutil/vector.c:69:23: note: Assignment 'vec=malloc(sizeof(struct Vector))', assigned value is 0 RediSearch-1.2.2/src/rmutil/vector.c:72:3: note: Null pointer dereference RediSearch-1.2.2/src/rmutil/vector.c:73:3: warning: If memory allocation fails, then there is a possible null pointer dereference: vec [nullPointerOutOfMemory] RediSearch-1.2.2/src/rmutil/vector.c:69:23: note: Assuming allocation function fails RediSearch-1.2.2/src/rmutil/vector.c:69:23: note: Assignment 'vec=malloc(sizeof(struct Vector))', assigned value is 0 RediSearch-1.2.2/src/rmutil/vector.c:73:3: note: Null pointer dereference RediSearch-1.2.2/src/rmutil/vector.c:13:31: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/vector.c:35:57: style: Parameter 'elem' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/vector.c:84:32: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/vector.c:89:31: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/rmutil/util.c:57:3: warning: If memory allocation fails, then there is a possible null pointer dereference: info [nullPointerOutOfMemory] RediSearch-1.2.2/src/rmutil/util.c:56:28: note: Assuming allocation function fails RediSearch-1.2.2/src/rmutil/util.c:56:28: note: Assignment 'info=malloc(sizeof(struct RMUtilInfo))', assigned value is 0 RediSearch-1.2.2/src/rmutil/util.c:57:3: note: Null pointer dereference RediSearch-1.2.2/src/rmutil/util.c:65:11: style: Local variable 'line' shadows outer variable [shadowVariable] RediSearch-1.2.2/src/rmutil/util.c:63:9: note: Shadowed declaration RediSearch-1.2.2/src/rmutil/util.c:65:11: note: Shadow variable RediSearch-1.2.2/src/rmutil/util.c:63:9: style: Variable 'line' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/rmutil/util.c:72:11: style: Variable 'key' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/rmutil/util.c:156:9: style: Variable 'c' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/redis_index.c:118:10: error: Returning pointer to local variable 'buf_s' that will be invalid when returning. [returnDanglingLifetime] RediSearch-1.2.2/src/redis_index.c:108:11: note: Array decayed to pointer here. RediSearch-1.2.2/src/redis_index.c:116:68: note: Passed to initializer list. RediSearch-1.2.2/src/redis_index.c:99:8: note: Variable created here. RediSearch-1.2.2/src/redis_index.c:118:10: note: Returning pointer to local variable 'buf_s' that will be invalid when returning. RediSearch-1.2.2/src/redis_index.c:202:19: error: Returning pointer to local variable 'len' that will be invalid when returning. [returnDanglingLifetime] RediSearch-1.2.2/src/redis_index.c:199:60: note: Address of variable taken here. RediSearch-1.2.2/src/redis_index.c:199:60: note: Passed to initializer list. RediSearch-1.2.2/src/redis_index.c:198:12: note: Variable created here. RediSearch-1.2.2/src/redis_index.c:202:19: note: Returning pointer to local variable 'len' that will be invalid when returning. RediSearch-1.2.2/src/rmutil/sds.c:236:5: error: Memory leak: newsh [memleak] RediSearch-1.2.2/src/rmutil/sds.c:268:5: error: Memory leak: newsh [memleak] RediSearch-1.2.2/src/rmutil/sds.c:1023:13: error: Common realloc mistake: 'vector' nulled but not freed upon failure [memleakOnRealloc] RediSearch-1.2.2/src/rmutil/sds.c:586:7: style: Redundant initialization for 'f'. The initialized value is overwritten before it is read. [redundantInitialization] RediSearch-1.2.2/src/rmutil/sds.c:581:19: note: f is initialized RediSearch-1.2.2/src/rmutil/sds.c:586:7: note: f is overwritten RediSearch-1.2.2/src/rmutil/sds.c:684:19: style: Variable 'end' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/rmutil/sds.c:684:30: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/rmutil/sds.c:1068:42: style: Parameter 'sep' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/redis_index.c:106:12: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] RediSearch-1.2.2/src/redis_index.c:105:26: note: Assuming allocation function fails RediSearch-1.2.2/src/redis_index.c:105:18: note: Assignment 'buf=bufDyn=calloc(1,nameLen+len+10)', assigned value is 0 RediSearch-1.2.2/src/redis_index.c:106:12: note: Null pointer dereference RediSearch-1.2.2/src/redis_index.c:113:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] RediSearch-1.2.2/src/redis_index.c:105:26: note: Assuming allocation function fails RediSearch-1.2.2/src/redis_index.c:105:18: note: Assignment 'buf=bufDyn=calloc(1,nameLen+len+10)', assigned value is 0 RediSearch-1.2.2/src/redis_index.c:113:3: note: Null pointer dereference RediSearch-1.2.2/src/redis_index.c:144:4: warning: If memory allocation fails, then there is a possible null pointer dereference: sctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/redis_index.c:143:35: note: Assuming allocation function fails RediSearch-1.2.2/src/redis_index.c:143:35: note: Assignment 'sctx=malloc(sizeof(*sctx))', assigned value is 0 RediSearch-1.2.2/src/redis_index.c:144:4: note: Null pointer dereference RediSearch-1.2.2/src/redis_index.c:173:4: warning: If memory allocation fails, then there is a possible null pointer dereference: sctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/redis_index.c:172:35: note: Assuming allocation function fails RediSearch-1.2.2/src/redis_index.c:172:35: note: Assignment 'sctx=malloc(sizeof(*sctx))', assigned value is 0 RediSearch-1.2.2/src/redis_index.c:173:4: note: Null pointer dereference RediSearch-1.2.2/src/redis_index.c:111:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/redis_index.c:105:26: note: Assuming allocation function fails RediSearch-1.2.2/src/redis_index.c:105:18: note: Assignment 'buf=bufDyn=calloc(1,nameLen+len+10)', assigned value is 0 RediSearch-1.2.2/src/redis_index.c:111:14: note: Null pointer addition RediSearch-1.2.2/src/redis_index.c:114:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/redis_index.c:105:26: note: Assuming allocation function fails RediSearch-1.2.2/src/redis_index.c:105:18: note: Assignment 'buf=bufDyn=calloc(1,nameLen+len+10)', assigned value is 0 RediSearch-1.2.2/src/redis_index.c:114:14: note: Null pointer addition RediSearch-1.2.2/src/rmutil/sds.c:687:16: style: Variable 'start' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/redis_index.c:314:79: style:inconclusive: Function 'Redis_LoadDocument' argument 3 names different: declaration 'Doc' definition 'doc'. [funcArgNamesDifferent] RediSearch-1.2.2/src/document.h:237:79: note: Function 'Redis_LoadDocument' argument 3 names different: declaration 'Doc' definition 'doc'. RediSearch-1.2.2/src/redis_index.c:314:79: note: Function 'Redis_LoadDocument' argument 3 names different: declaration 'Doc' definition 'doc'. RediSearch-1.2.2/src/redis_index.c:342:74: style:inconclusive: Function 'Redis_LoadDocumentEx' argument 6 names different: declaration 'keyp' definition 'rkeyp'. [funcArgNamesDifferent] RediSearch-1.2.2/src/document.h:255:74: note: Function 'Redis_LoadDocumentEx' argument 6 names different: declaration 'keyp' definition 'rkeyp'. RediSearch-1.2.2/src/redis_index.c:342:74: note: Function 'Redis_LoadDocumentEx' argument 6 names different: declaration 'keyp' definition 'rkeyp'. RediSearch-1.2.2/src/redis_index.c:63:46: style: Parameter 'digest' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/redis_index.c:63:60: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/redis_index.c:230:13: style: Variable 'idx' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/result_processor.c:16:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] RediSearch-1.2.2/src/result_processor.c:15:30: note: Assuming allocation function fails RediSearch-1.2.2/src/result_processor.c:15:30: note: Assignment 'p=calloc(1,sizeof(struct ResultProcessor))', assigned value is 0 RediSearch-1.2.2/src/result_processor.c:16:3: note: Null pointer dereference RediSearch-1.2.2/src/result_processor.c:52:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/result_processor.c:51:29: note: Assuming allocation function fails RediSearch-1.2.2/src/result_processor.c:51:29: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/result_processor.c:52:3: note: Null pointer dereference RediSearch-1.2.2/src/result_processor.c:53:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/result_processor.c:51:29: note: Assuming allocation function fails RediSearch-1.2.2/src/result_processor.c:51:29: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 RediSearch-1.2.2/src/result_processor.c:53:3: note: Null pointer dereference RediSearch-1.2.2/src/result_processor.c:482:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] RediSearch-1.2.2/src/result_processor.c:481:33: note: Assuming allocation function fails RediSearch-1.2.2/src/result_processor.c:481:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 RediSearch-1.2.2/src/result_processor.c:482:3: note: Null pointer dereference RediSearch-1.2.2/src/result_processor.c:483:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] RediSearch-1.2.2/src/result_processor.c:481:33: note: Assuming allocation function fails RediSearch-1.2.2/src/result_processor.c:481:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 RediSearch-1.2.2/src/result_processor.c:483:3: note: Null pointer dereference RediSearch-1.2.2/src/result_processor.c:540:3: warning: If memory allocation fails, then there is a possible null pointer dereference: pc [nullPointerOutOfMemory] RediSearch-1.2.2/src/result_processor.c:539:31: note: Assuming allocation function fails RediSearch-1.2.2/src/result_processor.c:539:31: note: Assignment 'pc=malloc(sizeof(*pc))', assigned value is 0 RediSearch-1.2.2/src/result_processor.c:540:3: note: Null pointer dereference RediSearch-1.2.2/src/result_processor.c:541:3: warning: If memory allocation fails, then there is a possible null pointer dereference: pc [nullPointerOutOfMemory] RediSearch-1.2.2/src/result_processor.c:539:31: note: Assuming allocation function fails RediSearch-1.2.2/src/result_processor.c:539:31: note: Assignment 'pc=malloc(sizeof(*pc))', assigned value is 0 RediSearch-1.2.2/src/result_processor.c:541:3: note: Null pointer dereference RediSearch-1.2.2/src/result_processor.c:542:3: warning: If memory allocation fails, then there is a possible null pointer dereference: pc [nullPointerOutOfMemory] RediSearch-1.2.2/src/result_processor.c:539:31: note: Assuming allocation function fails RediSearch-1.2.2/src/result_processor.c:539:31: note: Assignment 'pc=malloc(sizeof(*pc))', assigned value is 0 RediSearch-1.2.2/src/result_processor.c:542:3: note: Null pointer dereference RediSearch-1.2.2/src/result_processor.c:611:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sc [nullPointerOutOfMemory] RediSearch-1.2.2/src/result_processor.c:609:32: note: Assuming allocation function fails RediSearch-1.2.2/src/result_processor.c:609:32: note: Assignment 'sc=malloc(sizeof(*sc))', assigned value is 0 RediSearch-1.2.2/src/result_processor.c:611:3: note: Null pointer dereference RediSearch-1.2.2/src/result_processor.c:612:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sc [nullPointerOutOfMemory] RediSearch-1.2.2/src/result_processor.c:609:32: note: Assuming allocation function fails RediSearch-1.2.2/src/result_processor.c:609:32: note: Assignment 'sc=malloc(sizeof(*sc))', assigned value is 0 RediSearch-1.2.2/src/result_processor.c:612:3: note: Null pointer dereference RediSearch-1.2.2/src/result_processor.c:613:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sc [nullPointerOutOfMemory] RediSearch-1.2.2/src/result_processor.c:609:32: note: Assuming allocation function fails RediSearch-1.2.2/src/result_processor.c:609:32: note: Assignment 'sc=malloc(sizeof(*sc))', assigned value is 0 RediSearch-1.2.2/src/result_processor.c:613:3: note: Null pointer dereference RediSearch-1.2.2/src/result_processor.c:615:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sc [nullPointerOutOfMemory] RediSearch-1.2.2/src/result_processor.c:609:32: note: Assuming allocation function fails RediSearch-1.2.2/src/result_processor.c:609:32: note: Assignment 'sc=malloc(sizeof(*sc))', assigned value is 0 RediSearch-1.2.2/src/result_processor.c:615:5: note: Null pointer dereference RediSearch-1.2.2/src/result_processor.c:617:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sc [nullPointerOutOfMemory] RediSearch-1.2.2/src/result_processor.c:609:32: note: Assuming allocation function fails RediSearch-1.2.2/src/result_processor.c:609:32: note: Assignment 'sc=malloc(sizeof(*sc))', assigned value is 0 RediSearch-1.2.2/src/result_processor.c:617:3: note: Null pointer dereference RediSearch-1.2.2/src/result_processor.c:439:42: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] RediSearch-1.2.2/src/result_processor.c:208:92: style: Parameter 'req' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/result_processor.c:325:42: style: Parameter 'sctx' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/stemmer.c:101:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/stemmer.c:80:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/stemmer.c:79:36: note: Assuming allocation function fails RediSearch-1.2.2/src/stemmer.c:79:36: note: Assignment 'ctx=malloc(sizeof(*ctx))', assigned value is 0 RediSearch-1.2.2/src/stemmer.c:80:3: note: Null pointer dereference RediSearch-1.2.2/src/stemmer.c:81:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/stemmer.c:79:36: note: Assuming allocation function fails RediSearch-1.2.2/src/stemmer.c:79:36: note: Assignment 'ctx=malloc(sizeof(*ctx))', assigned value is 0 RediSearch-1.2.2/src/stemmer.c:81:3: note: Null pointer dereference RediSearch-1.2.2/src/stemmer.c:82:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/stemmer.c:79:36: note: Assuming allocation function fails RediSearch-1.2.2/src/stemmer.c:79:36: note: Assignment 'ctx=malloc(sizeof(*ctx))', assigned value is 0 RediSearch-1.2.2/src/stemmer.c:82:3: note: Null pointer dereference RediSearch-1.2.2/src/stemmer.c:82:21: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/stemmer.c:79:36: note: Assuming allocation function fails RediSearch-1.2.2/src/stemmer.c:79:36: note: Assignment 'ctx=malloc(sizeof(*ctx))', assigned value is 0 RediSearch-1.2.2/src/stemmer.c:82:21: note: Null pointer dereference RediSearch-1.2.2/src/stemmer.c:83:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/stemmer.c:79:36: note: Assuming allocation function fails RediSearch-1.2.2/src/stemmer.c:79:36: note: Assignment 'ctx=malloc(sizeof(*ctx))', assigned value is 0 RediSearch-1.2.2/src/stemmer.c:83:3: note: Null pointer dereference RediSearch-1.2.2/src/stemmer.c:86:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/stemmer.c:85:24: note: Assuming allocation function fails RediSearch-1.2.2/src/stemmer.c:85:24: note: Assignment 'ret=malloc(sizeof(struct Stemmer))', assigned value is 0 RediSearch-1.2.2/src/stemmer.c:86:3: note: Null pointer dereference RediSearch-1.2.2/src/stemmer.c:87:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/stemmer.c:85:24: note: Assuming allocation function fails RediSearch-1.2.2/src/stemmer.c:85:24: note: Assignment 'ret=malloc(sizeof(struct Stemmer))', assigned value is 0 RediSearch-1.2.2/src/stemmer.c:87:3: note: Null pointer dereference RediSearch-1.2.2/src/stemmer.c:88:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/stemmer.c:85:24: note: Assuming allocation function fails RediSearch-1.2.2/src/stemmer.c:85:24: note: Assignment 'ret=malloc(sizeof(struct Stemmer))', assigned value is 0 RediSearch-1.2.2/src/stemmer.c:88:3: note: Null pointer dereference RediSearch-1.2.2/src/stemmer.c:89:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/stemmer.c:85:24: note: Assuming allocation function fails RediSearch-1.2.2/src/stemmer.c:85:24: note: Assignment 'ret=malloc(sizeof(struct Stemmer))', assigned value is 0 RediSearch-1.2.2/src/stemmer.c:89:3: note: Null pointer dereference RediSearch-1.2.2/src/stemmer.c:65:37: style: Parameter 'stemmer' can be declared as pointer to const. However it seems that 'sbstemmer_Reset' is a callback function, if 'stemmer' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/stemmer.c:89:16: note: You might need to cast the function pointer here RediSearch-1.2.2/src/stemmer.c:65:37: note: Parameter 'stemmer' can be declared as pointer to const RediSearch-1.2.2/src/sortable.c:56:18: style: Condition 'u!=0' is always true [knownConditionTrueFalse] RediSearch-1.2.2/src/sortable.c:54:15: note: Assuming that condition 'u==0' is not redundant RediSearch-1.2.2/src/sortable.c:56:18: note: Condition 'u!=0' is always true RediSearch-1.2.2/src/sortable.c:17:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/sortable.c:16:35: note: Assuming allocation function fails RediSearch-1.2.2/src/sortable.c:16:35: note: Assignment 'ret=calloc(1,sizeof(struct RSSortingVector)+len*(sizeof(struct RSValue)))', assigned value is 0 RediSearch-1.2.2/src/sortable.c:17:3: note: Null pointer dereference RediSearch-1.2.2/src/sortable.c:20:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/sortable.c:16:35: note: Assuming allocation function fails RediSearch-1.2.2/src/sortable.c:16:35: note: Assignment 'ret=calloc(1,sizeof(struct RSSortingVector)+len*(sizeof(struct RSValue)))', assigned value is 0 RediSearch-1.2.2/src/sortable.c:20:5: note: Null pointer dereference RediSearch-1.2.2/src/sortable.c:41:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/sortable.c:39:33: note: Assuming allocation function fails RediSearch-1.2.2/src/sortable.c:39:33: note: Assignment 'lower_buffer=calloc(buflen,1)', assigned value is 0 RediSearch-1.2.2/src/sortable.c:40:15: note: lower is assigned 'lower_buffer' here. RediSearch-1.2.2/src/sortable.c:41:21: note: Null pointer addition RediSearch-1.2.2/src/stopwords.c:60:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sl [nullPointerOutOfMemory] RediSearch-1.2.2/src/stopwords.c:59:31: note: Assuming allocation function fails RediSearch-1.2.2/src/stopwords.c:59:31: note: Assignment 'sl=malloc(sizeof(*sl))', assigned value is 0 RediSearch-1.2.2/src/stopwords.c:60:3: note: Null pointer dereference RediSearch-1.2.2/src/stopwords.c:61:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sl [nullPointerOutOfMemory] RediSearch-1.2.2/src/stopwords.c:59:31: note: Assuming allocation function fails RediSearch-1.2.2/src/stopwords.c:59:31: note: Assignment 'sl=malloc(sizeof(*sl))', assigned value is 0 RediSearch-1.2.2/src/stopwords.c:61:3: note: Null pointer dereference RediSearch-1.2.2/src/stopwords.c:108:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sl [nullPointerOutOfMemory] RediSearch-1.2.2/src/stopwords.c:107:31: note: Assuming allocation function fails RediSearch-1.2.2/src/stopwords.c:107:31: note: Assignment 'sl=malloc(sizeof(*sl))', assigned value is 0 RediSearch-1.2.2/src/stopwords.c:108:3: note: Null pointer dereference RediSearch-1.2.2/src/stopwords.c:109:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sl [nullPointerOutOfMemory] RediSearch-1.2.2/src/stopwords.c:107:31: note: Assuming allocation function fails RediSearch-1.2.2/src/stopwords.c:107:31: note: Assignment 'sl=malloc(sizeof(*sl))', assigned value is 0 RediSearch-1.2.2/src/stopwords.c:109:3: note: Null pointer dereference RediSearch-1.2.2/src/stopwords.c:114:17: warning: If memory allocation fails, then there is a possible null pointer dereference: sl [nullPointerOutOfMemory] RediSearch-1.2.2/src/stopwords.c:107:31: note: Assuming allocation function fails RediSearch-1.2.2/src/stopwords.c:107:31: note: Assignment 'sl=malloc(sizeof(*sl))', assigned value is 0 RediSearch-1.2.2/src/stopwords.c:114:17: note: Null pointer dereference RediSearch-1.2.2/src/sortable.c:201:90: style:inconclusive: Function 'SortingTable_GetFieldType' argument 3 names different: declaration 'delt' definition 'deflt'. [funcArgNamesDifferent] RediSearch-1.2.2/src/sortable.h:69:90: note: Function 'SortingTable_GetFieldType' argument 3 names different: declaration 'delt' definition 'deflt'. RediSearch-1.2.2/src/sortable.c:201:90: note: Function 'SortingTable_GetFieldType' argument 3 names different: declaration 'delt' definition 'deflt'. RediSearch-1.2.2/src/sortable.c:145:16: style: Local variable 'len' shadows outer variable [shadowVariable] RediSearch-1.2.2/src/sortable.c:135:7: note: Shadowed declaration RediSearch-1.2.2/src/sortable.c:145:16: note: Shadow variable RediSearch-1.2.2/src/sortable.c:41:9: style: Variable 'end' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/sortable.c:85:64: style: Parameter 'k' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/sortable.c:213:48: style: Parameter 'tbl' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/stopwords.c:65:22: warning: Uninitialized variable: strs [uninitvar] RediSearch-1.2.2/src/stopwords.c:48:30: note: Assuming condition is false RediSearch-1.2.2/src/stopwords.c:52:30: note: Calling function 'NewStopWordListCStr', 1st argument 'cstrs' value is RediSearch-1.2.2/src/stopwords.c:65:22: note: Uninitialized variable: strs RediSearch-1.2.2/src/sortable.c:44:14: style: Variable 'off' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/sortable.c:44:10: style: Variable 'off' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/search_request.c:23:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opts [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/synonym_map.c:36:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/spec.c:50:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/spec.c:172:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VAL [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/spec.c:414:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/search_request.c:129:12: style: The if condition is the same as the previous if condition [duplicateCondition] RediSearch-1.2.2/src/search_request.c:117:12: note: First condition RediSearch-1.2.2/src/search_request.c:129:12: note: Second condition RediSearch-1.2.2/src/synonym_map.c:166:23: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] RediSearch-1.2.2/src/search_request.c:22:4: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] RediSearch-1.2.2/src/search_request.c:21:32: note: Assuming allocation function fails RediSearch-1.2.2/src/search_request.c:21:32: note: Assignment 'req=calloc(1,sizeof(*req))', assigned value is 0 RediSearch-1.2.2/src/search_request.c:22:4: note: Null pointer dereference RediSearch-1.2.2/src/search_request.c:25:3: warning: If memory allocation fails, then there is a possible null pointer dereference: req [nullPointerOutOfMemory] RediSearch-1.2.2/src/search_request.c:21:32: note: Assuming allocation function fails RediSearch-1.2.2/src/search_request.c:21:32: note: Assignment 'req=calloc(1,sizeof(*req))', assigned value is 0 RediSearch-1.2.2/src/search_request.c:25:3: note: Null pointer dereference RediSearch-1.2.2/src/synonym_map.c:14:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t_data [nullPointerOutOfMemory] RediSearch-1.2.2/src/synonym_map.c:13:31: note: Assuming allocation function fails RediSearch-1.2.2/src/synonym_map.c:13:31: note: Assignment 't_data=malloc(sizeof(struct TermData))', assigned value is 0 RediSearch-1.2.2/src/synonym_map.c:14:3: note: Null pointer dereference RediSearch-1.2.2/src/synonym_map.c:15:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t_data [nullPointerOutOfMemory] RediSearch-1.2.2/src/synonym_map.c:13:31: note: Assuming allocation function fails RediSearch-1.2.2/src/synonym_map.c:13:31: note: Assignment 't_data=malloc(sizeof(struct TermData))', assigned value is 0 RediSearch-1.2.2/src/synonym_map.c:15:3: note: Null pointer dereference RediSearch-1.2.2/src/synonym_map.c:69:3: warning: If memory allocation fails, then there is a possible null pointer dereference: smap [nullPointerOutOfMemory] RediSearch-1.2.2/src/synonym_map.c:68:22: note: Assuming allocation function fails RediSearch-1.2.2/src/synonym_map.c:68:22: note: Assignment 'smap=malloc(sizeof(struct SynonymMap))', assigned value is 0 RediSearch-1.2.2/src/synonym_map.c:69:3: note: Null pointer dereference RediSearch-1.2.2/src/synonym_map.c:70:3: warning: If memory allocation fails, then there is a possible null pointer dereference: smap [nullPointerOutOfMemory] RediSearch-1.2.2/src/synonym_map.c:68:22: note: Assuming allocation function fails RediSearch-1.2.2/src/synonym_map.c:68:22: note: Assignment 'smap=malloc(sizeof(struct SynonymMap))', assigned value is 0 RediSearch-1.2.2/src/synonym_map.c:70:3: note: Null pointer dereference RediSearch-1.2.2/src/synonym_map.c:71:3: warning: If memory allocation fails, then there is a possible null pointer dereference: smap [nullPointerOutOfMemory] RediSearch-1.2.2/src/synonym_map.c:68:22: note: Assuming allocation function fails RediSearch-1.2.2/src/synonym_map.c:68:22: note: Assignment 'smap=malloc(sizeof(struct SynonymMap))', assigned value is 0 RediSearch-1.2.2/src/synonym_map.c:71:3: note: Null pointer dereference RediSearch-1.2.2/src/synonym_map.c:72:3: warning: If memory allocation fails, then there is a possible null pointer dereference: smap [nullPointerOutOfMemory] RediSearch-1.2.2/src/synonym_map.c:68:22: note: Assuming allocation function fails RediSearch-1.2.2/src/synonym_map.c:68:22: note: Assignment 'smap=malloc(sizeof(struct SynonymMap))', assigned value is 0 RediSearch-1.2.2/src/synonym_map.c:72:3: note: Null pointer dereference RediSearch-1.2.2/src/synonym_map.c:73:3: warning: If memory allocation fails, then there is a possible null pointer dereference: smap [nullPointerOutOfMemory] RediSearch-1.2.2/src/synonym_map.c:68:22: note: Assuming allocation function fails RediSearch-1.2.2/src/synonym_map.c:68:22: note: Assignment 'smap=malloc(sizeof(struct SynonymMap))', assigned value is 0 RediSearch-1.2.2/src/synonym_map.c:73:3: note: Null pointer dereference RediSearch-1.2.2/src/synonym_map.c:96:5: warning: If memory allocation fails, then there is a possible null pointer dereference: arr [nullPointerOutOfMemory] RediSearch-1.2.2/src/synonym_map.c:94:31: note: Assuming allocation function fails RediSearch-1.2.2/src/synonym_map.c:94:31: note: Assignment 'arr=malloc(sizeof(char*)*size)', assigned value is 0 RediSearch-1.2.2/src/synonym_map.c:96:5: note: Null pointer dereference RediSearch-1.2.2/src/summarize_spec.c:119:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable contextLen [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/synonym_map.c:101:42: style: Parameter 'smap' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/synonym_map.c:178:7: style: Unused variable: ret [unusedVariable] RediSearch-1.2.2/src/search_request.c:310:19: style: Variable 'ctx' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/bench-decoder.c:15:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RS_FIELDMASK_ALL [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/bench-decoder.c:25:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Index_StoreFreqs [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tag_index.c:78:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tag_index.c:104:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tok [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/search_request.c:229:21: style: Variable 'foundIndex' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/search_request.c:229:10: style: Variable 'foundIndex' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/search_request.c:310:23: style: Variable 'ctx' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/search_request.c:310:19: style: Variable 'ctx' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/tests/ext-example/example.c:19:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RS_SCORE_FILTEROUT [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/ext-example/example.c:38:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REDISEARCH_ERR [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/ext-example/example.c:37:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spd [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/ext-example/example.c:36:32: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/ext-example/example.c:36:32: note: Assignment 'spd=malloc(sizeof(struct privdata))', assigned value is 0 RediSearch-1.2.2/src/tests/ext-example/example.c:37:3: note: Null pointer dereference RediSearch-1.2.2/src/tests/ext-example/example.c:48:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spd [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/ext-example/example.c:47:15: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/ext-example/example.c:47:15: note: Assignment 'spd=malloc(sizeof(struct privdata))', assigned value is 0 RediSearch-1.2.2/src/tests/ext-example/example.c:48:3: note: Null pointer dereference RediSearch-1.2.2/src/tests/ext-example/example.c:12:39: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'myScorer' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/tests/ext-example/example.c:38:54: note: You might need to cast the function pointer here RediSearch-1.2.2/src/tests/ext-example/example.c:12:39: note: Parameter 'ctx' can be declared as pointer to const RediSearch-1.2.2/src/tests/ext-example/example.c:12:59: style: Parameter 'h' can be declared as pointer to const. However it seems that 'myScorer' is a callback function, if 'h' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/tests/ext-example/example.c:38:54: note: You might need to cast the function pointer here RediSearch-1.2.2/src/tests/ext-example/example.c:12:59: note: Parameter 'h' can be declared as pointer to const RediSearch-1.2.2/src/tests/ext-example/example.c:12:82: style: Parameter 'dmd' can be declared as pointer to const. However it seems that 'myScorer' is a callback function, if 'dmd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/tests/ext-example/example.c:38:54: note: You might need to cast the function pointer here RediSearch-1.2.2/src/tests/ext-example/example.c:12:82: note: Parameter 'dmd' can be declared as pointer to const RediSearch-1.2.2/src/tests/ext-example/example.c:17:46: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'filterOutScorer' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/tests/ext-example/example.c:42:56: note: You might need to cast the function pointer here RediSearch-1.2.2/src/tests/ext-example/example.c:17:46: note: Parameter 'ctx' can be declared as pointer to const RediSearch-1.2.2/src/tests/ext-example/example.c:17:66: style: Parameter 'h' can be declared as pointer to const. However it seems that 'filterOutScorer' is a callback function, if 'h' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/tests/ext-example/example.c:42:56: note: You might need to cast the function pointer here RediSearch-1.2.2/src/tests/ext-example/example.c:17:66: note: Parameter 'h' can be declared as pointer to const RediSearch-1.2.2/src/tests/ext-example/example.c:17:89: style: Parameter 'dmd' can be declared as pointer to const. However it seems that 'filterOutScorer' is a callback function, if 'dmd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/tests/ext-example/example.c:42:56: note: You might need to cast the function pointer here RediSearch-1.2.2/src/tests/ext-example/example.c:17:89: note: Parameter 'dmd' can be declared as pointer to const RediSearch-1.2.2/src/tests/test_arr.c:16:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_arr.c:31:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_arr.c:51:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_arr.c:69:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_arr.c:79:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_aggregate.c:22:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RS_RESULT_EOF [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_aggregate.c:56:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RS_RESULT_EOF [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_aggregate.c:75:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RS_RESULT_EOF [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_aggregate.c:88:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RSValue_String [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_aggregate.c:160:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RS_RESULT_EOF [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_aggregate.c:190:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_aggregate.c:294:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_arr.c:46:9: style: Variable 'strs' can be declared as const array [constVariable] RediSearch-1.2.2/src/tests/test_arr.c:64:9: style: Variable 'strs' can be declared as const array [constVariable] RediSearch-1.2.2/src/tests/test_array.c:10:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_array.c:31:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_blkalloc.c:9:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_blkalloc.c:77:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_blkalloc.c:81:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_aggregate.c:104:3: style: The if condition is the same as the previous if condition [duplicateCondition] RediSearch-1.2.2/src/tests/test_aggregate.c:103:7: note: First condition RediSearch-1.2.2/src/tests/test_aggregate.c:104:3: note: Second condition RediSearch-1.2.2/src/tests/test_aggregate.c:19:35: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'mock_Next' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/tests/test_aggregate.c:43:14: note: You might need to cast the function pointer here RediSearch-1.2.2/src/tests/test_aggregate.c:19:35: note: Parameter 'ctx' can be declared as pointer to const RediSearch-1.2.2/src/tests/test_aggregate.c:72:39: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'mock_Next_Arr' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/tests/test_aggregate.c:147:14: note: You might need to cast the function pointer here RediSearch-1.2.2/src/tests/test_aggregate.c:72:39: note: Parameter 'ctx' can be declared as pointer to const RediSearch-1.2.2/src/tests/test_aggregate.c:115:21: style: Variable 'expected' can be declared as const array [constVariable] RediSearch-1.2.2/src/tests/test_aggregate.c:14:17: style: struct member 'mockProcessorCtx::res' is never used. [unusedStructMember] RediSearch-1.2.2/src/tests/test_aggregate.c:159:9: style: Variable 'i' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/tests/test_aggregate.c:159:7: style: Variable 'i' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/tests/test_blkalloc.c:19:9: style: Variable 'buf2' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_blkalloc.c:24:9: style: Variable 'buf3' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_blkalloc.c:29:18: style: Variable 'lastHead' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_blkalloc.c:31:9: style: Variable 'buf4' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_blkalloc.c:42:18: style: Variable 'oldAvail' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_blkalloc.c:59:12: style: Variable 'dummy' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_blkalloc.c:31:14: style: Variable 'buf4' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/tests/test_blkalloc.c:31:9: style: Variable 'buf4' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/tests/test_expr.c:16:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPR_EVAL_OK [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_expr.c:29:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_expr.c:49:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_expr.c:70:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_expr.c:121:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_expr.c:165:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_expr.c:201:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_expr.c:209:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_expr.c:207:3: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] RediSearch-1.2.2/src/tests/test_expr.c:95:10: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/tests/test_expr.c:95:7: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/tests/test_cntokenize.c:38:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_cntokenize.c:63:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_cntokenize.c:76:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/spec.c:602:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:601:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:601:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:602:3: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:603:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:601:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:601:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:603:3: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:604:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:601:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:601:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:604:3: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:605:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:601:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:601:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:605:3: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:606:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:601:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:601:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:606:3: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:607:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:601:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:601:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:607:3: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:608:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:601:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:601:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:608:3: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:735:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:734:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:734:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:735:3: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:736:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:734:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:734:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:736:3: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:737:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:734:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:734:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:737:3: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:738:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:734:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:734:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:738:3: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:739:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:734:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:734:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:739:3: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:740:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:734:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:734:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:740:3: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:742:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:734:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:734:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:742:5: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:745:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:734:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:734:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:745:3: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:746:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:734:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:734:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:746:3: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:746:26: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:734:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:734:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:746:26: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:748:23: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:734:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:734:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:748:23: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:749:21: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:734:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:734:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:749:21: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:750:28: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:734:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:734:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:750:28: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:751:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:734:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:734:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:751:5: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:765:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:734:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:734:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:765:5: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:767:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:734:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:734:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:767:5: note: Null pointer dereference RediSearch-1.2.2/src/tag_index.c:16:3: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/tag_index.c:15:19: note: Assuming allocation function fails RediSearch-1.2.2/src/tag_index.c:15:19: note: Assignment 'idx=malloc(sizeof(struct TagIndex))', assigned value is 0 RediSearch-1.2.2/src/tag_index.c:16:3: note: Null pointer dereference RediSearch-1.2.2/src/tag_index.c:178:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tc [nullPointerOutOfMemory] RediSearch-1.2.2/src/tag_index.c:177:37: note: Assuming allocation function fails RediSearch-1.2.2/src/tag_index.c:177:37: note: Assignment 'tc=malloc(sizeof(*tc))', assigned value is 0 RediSearch-1.2.2/src/tag_index.c:178:5: note: Null pointer dereference RediSearch-1.2.2/src/tag_index.c:179:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tc [nullPointerOutOfMemory] RediSearch-1.2.2/src/tag_index.c:177:37: note: Assuming allocation function fails RediSearch-1.2.2/src/tag_index.c:177:37: note: Assignment 'tc=malloc(sizeof(*tc))', assigned value is 0 RediSearch-1.2.2/src/tag_index.c:179:5: note: Null pointer dereference RediSearch-1.2.2/src/spec.c:460:27: style:inconclusive: Function 'IndexSpec_Free' argument 1 names different: declaration 'spec' definition 'ctx'. [funcArgNamesDifferent] RediSearch-1.2.2/src/spec.h:258:27: note: Function 'IndexSpec_Free' argument 1 names different: declaration 'spec' definition 'ctx'. RediSearch-1.2.2/src/spec.c:460:27: note: Function 'IndexSpec_Free' argument 1 names different: declaration 'spec' definition 'ctx'. RediSearch-1.2.2/src/tag_index.c:131:11: style: Redundant assignment of 'ir->idx' to itself. [selfAssignment] RediSearch-1.2.2/src/spec.c:408:30: style: Parameter 'weights' can be declared as const array [constParameter] RediSearch-1.2.2/src/spec.c:749:16: style: Variable 'fs' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/spec.c:820:42: style: Parameter 'digest' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/spec.c:820:56: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/summarize_spec.c:75:20: style: Variable 'fieldInfo' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tag_index.c:78:13: warning: Unused variable value 'ret' [constStatement] RediSearch-1.2.2/src/tag_index.c:24:9: style: Variable 'end' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tag_index.c:275:41: style: Parameter 'digest' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/tag_index.c:275:55: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/spec.c:747:18: style: Variable 'maxSortIdx' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/spec.c:747:7: style: Variable 'maxSortIdx' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/summarize_spec.c:116:10: style: Variable 'numFields' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/tests/test_khtable.c:48:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_khtable.c:71:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_quantile.c:31:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_khtable.c:36:45: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'freeFn' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/tests/test_khtable.c:67:30: note: You might need to cast the function pointer here RediSearch-1.2.2/src/tests/test_khtable.c:36:45: note: Parameter 'ctx' can be declared as pointer to const RediSearch-1.2.2/src/tests/test_khtable.c:36:56: style: Parameter 'arg' can be declared as pointer to const. However it seems that 'freeFn' is a callback function, if 'arg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/tests/test_khtable.c:67:30: note: You might need to cast the function pointer here RediSearch-1.2.2/src/tests/test_khtable.c:36:56: note: Parameter 'arg' can be declared as pointer to const RediSearch-1.2.2/src/tests/test_khtable.c:59:12: style: Variable 'ent2' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_quantile.c:25:3: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/tests/test_quantile.c:31:1: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/tests/test_quantile.c:31:1: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] RediSearch-1.2.2/src/buffer.h:105:11: style: Local variable 'buf' shadows outer variable [shadowVariable] RediSearch-1.2.2/src/tests/test_quantile.c:10:15: note: Shadowed declaration RediSearch-1.2.2/src/buffer.h:105:11: note: Shadow variable RediSearch-1.2.2/src/tests/test_quantile.c:15:10: style: Variable 'quantiles' can be declared as const array [constVariable] RediSearch-1.2.2/src/tests/test_cntokenize.c:43:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_cntokenize.c:42:21: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_cntokenize.c:42:21: note: Assignment 'buf=malloc(nbuf+1)', assigned value is 0 RediSearch-1.2.2/src/tests/test_cntokenize.c:43:3: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_cntokenize.c:51:14: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_cntokenize.c:42:21: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_cntokenize.c:42:21: note: Assignment 'buf=malloc(nbuf+1)', assigned value is 0 RediSearch-1.2.2/src/tests/test_cntokenize.c:51:14: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_extensions.c:63:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_extensions.c:94:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_extensions.c:112:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_extensions.c:159:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_result_processor.c:14:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RS_RESULT_EOF [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_result_processor.c:26:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RS_RESULT_EOF [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_result_processor.c:51:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_result_processor.c:90:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_result_processor.c:48:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_result_processor.c:47:35: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_result_processor.c:47:35: note: Assignment 'p=malloc(sizeof(*p))', assigned value is 0 RediSearch-1.2.2/src/tests/test_result_processor.c:48:3: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_result_processor.c:11:33: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'p1_Next' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/tests/test_result_processor.c:55:14: note: You might need to cast the function pointer here RediSearch-1.2.2/src/tests/test_result_processor.c:11:33: note: Parameter 'ctx' can be declared as pointer to const RediSearch-1.2.2/src/tests/test_result_processor.c:73:14: style: Variable 'v' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_index.c:31:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:68:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:128:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:267:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:295:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:334:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:373:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:399:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:425:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:449:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:480:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:545:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:585:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:611:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:653:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:747:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:886:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:931:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:999:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:1068:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:1137:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:1156:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_index.c:1190:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_stemmer.c:10:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_stemmer.c:47:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_stemmer.c:79:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_range.c:19:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_range.c:60:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_range.c:163:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_range.c:177:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_query.c:25:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_query.c:62:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_query.c:239:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_query.c:264:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_query.c:297:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_query.c:375:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_query.c:404:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flags [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_query.c:447:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_stemmer.c:47:3: error: Memory leak: txt [memleak] RediSearch-1.2.2/src/tests/test_stemmer.c:64:7: style: Argument 'strlen(tx->expectedStems[tx->num])==t.stemLen' to function __STRING is always 0. It does not matter what value 'tx->num' has. [knownArgument] RediSearch-1.2.2/src/tests/test_stemmer.c:64:7: note: Assuming that condition '!(strlen(tx->expectedStems[tx->num])==t.stemLen)' is not redundant RediSearch-1.2.2/src/tests/test_stemmer.c:64:7: note: Argument 'strlen(tx->expectedStems[tx->num])==t.stemLen' to function __STRING is always 0. It does not matter what value 'tx->num' has. RediSearch-1.2.2/src/tests/test_stemmer.c:65:7: style: Argument 'strncmp(tx->expectedStems[tx->num],t.stem,t.stemLen)==0' to function __STRING is always 0. It does not matter what value 'tx->num' has. [knownArgument] RediSearch-1.2.2/src/tests/test_stemmer.c:65:7: note: Assuming that condition '!(strncmp(tx->expectedStems[tx->num],t.stem,t.stemLen)==0)' is not redundant RediSearch-1.2.2/src/tests/test_stemmer.c:65:7: note: Argument 'strncmp(tx->expectedStems[tx->num],t.stem,t.stemLen)==0' to function __STRING is always 0. It does not matter what value 'tx->num' has. RediSearch-1.2.2/src/tests/test_stemmer.c:67:7: style: Argument 'tx->expectedStems[tx->num]==NULL' to function __STRING is always 0. It does not matter what value 'tx->num' has. [knownArgument] RediSearch-1.2.2/src/tests/test_stemmer.c:67:7: note: Assuming that condition '!(tx->expectedStems[tx->num]==NULL)' is not redundant RediSearch-1.2.2/src/tests/test_stemmer.c:67:7: note: Argument 'tx->expectedStems[tx->num]==NULL' to function __STRING is always 0. It does not matter what value 'tx->num' has. RediSearch-1.2.2/src/tests/test_stopwords.c:13:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_stopwords.c:33:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_STOPWORDS [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_stopwords.c:46:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_summarize.c:29:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_summarize.c:68:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_summarize.c:115:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_extensions.c:46:5: error: Memory leak: spd [memleak] RediSearch-1.2.2/src/tests/test_extensions.c:49:3: error: Memory leak: spd [memleak] RediSearch-1.2.2/src/tests/test_extensions.c:53:5: error: Memory leak: spd [memleak] RediSearch-1.2.2/src/tests/test_extensions.c:56:3: error: Memory leak: spd [memleak] RediSearch-1.2.2/src/tests/test_extensions.c:44:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spd [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_extensions.c:43:32: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_extensions.c:43:32: note: Assignment 'spd=malloc(sizeof(struct privdata))', assigned value is 0 RediSearch-1.2.2/src/tests/test_extensions.c:44:3: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_extensions.c:50:3: warning: If memory allocation fails, then there is a possible null pointer dereference: spd [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_extensions.c:49:15: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_extensions.c:49:15: note: Assignment 'spd=malloc(sizeof(struct privdata))', assigned value is 0 RediSearch-1.2.2/src/tests/test_extensions.c:50:3: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_summarize.c:34:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_summarize.c:33:21: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_summarize.c:33:21: note: Assignment 'buf=malloc(nbuf+1)', assigned value is 0 RediSearch-1.2.2/src/tests/test_summarize.c:34:3: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_summarize.c:42:14: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_summarize.c:33:21: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_summarize.c:33:21: note: Assignment 'buf=malloc(nbuf+1)', assigned value is 0 RediSearch-1.2.2/src/tests/test_summarize.c:42:14: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_extensions.c:136:3: style: Argument 'n->pn.children[0]->type==QN_UNION' to function __STRING is always 0. It does not matter what value 'type' has. [knownArgument] RediSearch-1.2.2/src/tests/test_extensions.c:136:3: note: Assuming that condition '!(n->pn.children[0]->type==QN_UNION)' is not redundant RediSearch-1.2.2/src/tests/test_extensions.c:136:3: note: Argument 'n->pn.children[0]->type==QN_UNION' to function __STRING is always 0. It does not matter what value 'type' has. RediSearch-1.2.2/src/tests/test_extensions.c:144:3: style: Argument 'n->pn.children[1]->type==QN_UNION' to function __STRING is always 0. It does not matter what value 'type' has. [knownArgument] RediSearch-1.2.2/src/tests/test_extensions.c:144:3: note: Assuming that condition '!(n->pn.children[1]->type==QN_UNION)' is not redundant RediSearch-1.2.2/src/tests/test_extensions.c:144:3: note: Argument 'n->pn.children[1]->type==QN_UNION' to function __STRING is always 0. It does not matter what value 'type' has. RediSearch-1.2.2/src/tests/test_extensions.c:23:39: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'myScorer' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/tests/test_extensions.c:82:3: note: You might need to cast the function pointer here RediSearch-1.2.2/src/tests/test_extensions.c:23:39: note: Parameter 'ctx' can be declared as pointer to const RediSearch-1.2.2/src/tests/test_extensions.c:23:59: style: Parameter 'h' can be declared as pointer to const. However it seems that 'myScorer' is a callback function, if 'h' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/tests/test_extensions.c:82:3: note: You might need to cast the function pointer here RediSearch-1.2.2/src/tests/test_extensions.c:23:59: note: Parameter 'h' can be declared as pointer to const RediSearch-1.2.2/src/tests/test_extensions.c:23:82: style: Parameter 'dmd' can be declared as pointer to const. However it seems that 'myScorer' is a callback function, if 'dmd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/src/tests/test_extensions.c:82:3: note: You might need to cast the function pointer here RediSearch-1.2.2/src/tests/test_extensions.c:23:82: note: Parameter 'dmd' can be declared as pointer to const RediSearch-1.2.2/src/tests/test_extensions.c:100:26: style: Variable 'sx' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_extensions.c:104:24: style: Variable 'qx' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_synonym_map.c:13:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_synonym_map.c:41:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_synonym_map.c:74:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_synonym_map.c:93:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_synonym_map.c:108:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_range.c:69:5: warning: If memory allocation fails, then there is a possible null pointer dereference: lookup [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_range.c:63:26: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_range.c:63:26: note: Assignment 'lookup=calloc(N+1,sizeof(double))', assigned value is 0 RediSearch-1.2.2/src/tests/test_range.c:69:5: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_range.c:77:12: warning: If memory allocation fails, then there is a possible null pointer dereference: matched [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_range.c:64:28: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_range.c:64:28: note: Assignment 'matched=calloc(N+1,sizeof(uint8_t))', assigned value is 0 RediSearch-1.2.2/src/tests/test_range.c:77:12: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_range.c:83:36: warning: If memory allocation fails, then there is a possible null pointer dereference: lookup [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_range.c:63:26: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_range.c:63:26: note: Assignment 'lookup=calloc(N+1,sizeof(double))', assigned value is 0 RediSearch-1.2.2/src/tests/test_range.c:83:36: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_range.c:102:7: warning:inconclusive: Possible null pointer dereference: res [nullPointer] RediSearch-1.2.2/src/tests/test_range.c:93:26: note: Assignment 'res=NULL', assigned value is 0 RediSearch-1.2.2/src/tests/test_range.c:98:14: note: Assuming condition is false RediSearch-1.2.2/src/tests/test_range.c:102:7: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_range.c:82:14: style: Local variable 'i' shadows outer variable [shadowVariable] RediSearch-1.2.2/src/tests/test_range.c:74:12: note: Shadowed declaration RediSearch-1.2.2/src/tests/test_range.c:82:14: note: Shadow variable RediSearch-1.2.2/src/tests/test_range.c:124:14: style: Local variable 'i' shadows outer variable [shadowVariable] RediSearch-1.2.2/src/tests/test_range.c:74:12: note: Shadowed declaration RediSearch-1.2.2/src/tests/test_range.c:124:14: note: Shadow variable RediSearch-1.2.2/src/tests/test_range.c:168:18: style: Variable 'res' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_range.c:166:9: style: Variable 'count' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/tests/test_range.c:159:14: style: Unused variable: ts [unusedVariable] RediSearch-1.2.2/src/tests/test_range.c:168:18: style: Variable 'res' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/tests/test_index.c:453:3: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] RediSearch-1.2.2/src/tests/test_index.c:489:5: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/buffer.h:42:10: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_index.c:677:19: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_index.c:677:19: note: Assignment 'y=malloc(strlen(x)+1)', assigned value is 0 RediSearch-1.2.2/src/tests/test_index.c:678:24: note: Calling function 'Buffer_Read', 2nd argument 'y' value is 0 RediSearch-1.2.2/src/buffer.h:42:10: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_index.c:286:3: warning: If memory allocation fails, then there is a possible null pointer dereference: irs [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_index.c:285:31: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_index.c:285:31: note: Assignment 'irs=calloc(2,sizeof(struct IndexIterator*))', assigned value is 0 RediSearch-1.2.2/src/tests/test_index.c:286:3: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_index.c:287:3: warning: If memory allocation fails, then there is a possible null pointer dereference: irs [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_index.c:285:31: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_index.c:285:31: note: Assignment 'irs=calloc(2,sizeof(struct IndexIterator*))', assigned value is 0 RediSearch-1.2.2/src/tests/test_index.c:287:3: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_index.c:325:3: warning: If memory allocation fails, then there is a possible null pointer dereference: irs [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_index.c:324:31: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_index.c:324:31: note: Assignment 'irs=calloc(2,sizeof(struct IndexIterator*))', assigned value is 0 RediSearch-1.2.2/src/tests/test_index.c:325:3: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_index.c:326:3: warning: If memory allocation fails, then there is a possible null pointer dereference: irs [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_index.c:324:31: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_index.c:324:31: note: Assignment 'irs=calloc(2,sizeof(struct IndexIterator*))', assigned value is 0 RediSearch-1.2.2/src/tests/test_index.c:326:3: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_index.c:364:3: warning: If memory allocation fails, then there is a possible null pointer dereference: irs [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_index.c:363:31: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_index.c:363:31: note: Assignment 'irs=calloc(2,sizeof(struct IndexIterator*))', assigned value is 0 RediSearch-1.2.2/src/tests/test_index.c:364:3: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_index.c:365:3: warning: If memory allocation fails, then there is a possible null pointer dereference: irs [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_index.c:363:31: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_index.c:363:31: note: Assignment 'irs=calloc(2,sizeof(struct IndexIterator*))', assigned value is 0 RediSearch-1.2.2/src/tests/test_index.c:365:3: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_index.c:416:3: warning: If memory allocation fails, then there is a possible null pointer dereference: irs [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_index.c:415:31: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_index.c:415:31: note: Assignment 'irs=calloc(2,sizeof(struct IndexIterator*))', assigned value is 0 RediSearch-1.2.2/src/tests/test_index.c:416:3: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_index.c:417:3: warning: If memory allocation fails, then there is a possible null pointer dereference: irs [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_index.c:415:31: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_index.c:415:31: note: Assignment 'irs=calloc(2,sizeof(struct IndexIterator*))', assigned value is 0 RediSearch-1.2.2/src/tests/test_index.c:417:3: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_index.c:599:3: warning: If memory allocation fails, then there is a possible null pointer dereference: irs [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_index.c:598:31: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_index.c:598:31: note: Assignment 'irs=calloc(2,sizeof(struct IndexIterator*))', assigned value is 0 RediSearch-1.2.2/src/tests/test_index.c:599:3: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_index.c:600:3: warning: If memory allocation fails, then there is a possible null pointer dereference: irs [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_index.c:598:31: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_index.c:598:31: note: Assignment 'irs=calloc(2,sizeof(struct IndexIterator*))', assigned value is 0 RediSearch-1.2.2/src/tests/test_index.c:600:3: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_tag_index.c:8:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_tag_index.c:50:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_tokenize.c:19:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_tokenize.c:33:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_synonym_map.c:11:13: style: Variable 'ret_id' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_synonym_map.c:39:13: style: Variable 'ret_id' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_index.c:300:5: style: Argument 'copy->isCopy==1' to function __STRING is always 0. It does not matter what value 'isCopy' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:300:5: note: Assuming that condition '!(copy->isCopy==1)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:300:5: note: Argument 'copy->isCopy==1' to function __STRING is always 0. It does not matter what value 'isCopy' has. RediSearch-1.2.2/src/tests/test_index.c:303:5: style: Argument 'copy->type==h->type' to function __STRING is always 0. It does not matter what value 'type' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:303:5: note: Assuming that condition '!(copy->type==h->type)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:303:5: note: Argument 'copy->type==h->type' to function __STRING is always 0. It does not matter what value 'type' has. RediSearch-1.2.2/src/tests/test_index.c:611:5: style: Argument 'h->type==RSResultType_Intersection' to function __STRING is always 0. It does not matter what value 'type' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:611:5: note: Assuming that condition '!(h->type==RSResultType_Intersection)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:611:5: note: Argument 'h->type==RSResultType_Intersection' to function __STRING is always 0. It does not matter what value 'type' has. RediSearch-1.2.2/src/tests/test_index.c:619:5: style: Argument 'copy->isCopy==1' to function __STRING is always 0. It does not matter what value 'isCopy' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:619:5: note: Assuming that condition '!(copy->isCopy==1)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:619:5: note: Argument 'copy->isCopy==1' to function __STRING is always 0. It does not matter what value 'isCopy' has. RediSearch-1.2.2/src/tests/test_index.c:622:5: style: Argument 'copy->type==RSResultType_Intersection' to function __STRING is always 0. It does not matter what value 'type' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:622:5: note: Assuming that condition '!(copy->type==RSResultType_Intersection)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:622:5: note: Argument 'copy->type==RSResultType_Intersection' to function __STRING is always 0. It does not matter what value 'type' has. RediSearch-1.2.2/src/tests/test_index.c:751:3: style: Argument 's->numFields==5' to function __STRING is always 0. It does not matter what value 'numFields' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:751:3: note: Assuming that condition '!(s->numFields==5)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:751:3: note: Argument 's->numFields==5' to function __STRING is always 0. It does not matter what value 'numFields' has. RediSearch-1.2.2/src/tests/test_index.c:755:3: style: Argument 's->flags&Index_StoreFieldFlags' to function __STRING is always 0. It does not matter what value 's->flags' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:755:3: note: Assuming that condition '!(s->flags&Index_StoreFieldFlags)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:755:3: note: Argument 's->flags&Index_StoreFieldFlags' to function __STRING is always 0. It does not matter what value 's->flags' has. RediSearch-1.2.2/src/tests/test_index.c:756:3: style: Argument 's->flags&Index_StoreTermOffsets' to function __STRING is always 0. It does not matter what value 's->flags' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:756:3: note: Assuming that condition '!(s->flags&Index_StoreTermOffsets)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:756:3: note: Argument 's->flags&Index_StoreTermOffsets' to function __STRING is always 0. It does not matter what value 's->flags' has. RediSearch-1.2.2/src/tests/test_index.c:757:3: style: Argument 's->flags&Index_HasCustomStopwords' to function __STRING is always 0. It does not matter what value 's->flags' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:757:3: note: Assuming that condition '!(s->flags&Index_HasCustomStopwords)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:757:3: note: Argument 's->flags&Index_HasCustomStopwords' to function __STRING is always 0. It does not matter what value 's->flags' has. RediSearch-1.2.2/src/tests/test_index.c:765:3: style: Argument 'f->type==FIELD_FULLTEXT' to function __STRING is always 0. It does not matter what value 'type' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:765:3: note: Assuming that condition '!(f->type==FIELD_FULLTEXT)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:765:3: note: Argument 'f->type==FIELD_FULLTEXT' to function __STRING is always 0. It does not matter what value 'type' has. RediSearch-1.2.2/src/tests/test_index.c:769:3: style: Argument 'f->options==0' to function __STRING is always 0. It does not matter what value 'options' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:769:3: note: Assuming that condition '!(f->options==0)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:769:3: note: Argument 'f->options==0' to function __STRING is always 0. It does not matter what value 'options' has. RediSearch-1.2.2/src/tests/test_index.c:770:3: style: Argument 'f->sortIdx==-1' to function __STRING is always 0. It does not matter what value 'sortIdx' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:770:3: note: Assuming that condition '!(f->sortIdx==-1)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:770:3: note: Argument 'f->sortIdx==-1' to function __STRING is always 0. It does not matter what value 'sortIdx' has. RediSearch-1.2.2/src/tests/test_index.c:774:3: style: Argument 'f->type==FIELD_FULLTEXT' to function __STRING is always 0. It does not matter what value 'type' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:774:3: note: Assuming that condition '!(f->type==FIELD_FULLTEXT)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:774:3: note: Argument 'f->type==FIELD_FULLTEXT' to function __STRING is always 0. It does not matter what value 'type' has. RediSearch-1.2.2/src/tests/test_index.c:778:3: style: Argument 'f->options==0' to function __STRING is always 0. It does not matter what value 'options' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:778:3: note: Assuming that condition '!(f->options==0)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:778:3: note: Argument 'f->options==0' to function __STRING is always 0. It does not matter what value 'options' has. RediSearch-1.2.2/src/tests/test_index.c:779:3: style: Argument 'f->sortIdx==-1' to function __STRING is always 0. It does not matter what value 'sortIdx' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:779:3: note: Assuming that condition '!(f->sortIdx==-1)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:779:3: note: Argument 'f->sortIdx==-1' to function __STRING is always 0. It does not matter what value 'sortIdx' has. RediSearch-1.2.2/src/tests/test_index.c:783:3: style: Argument 'f->type==FIELD_FULLTEXT' to function __STRING is always 0. It does not matter what value 'type' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:783:3: note: Assuming that condition '!(f->type==FIELD_FULLTEXT)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:783:3: note: Argument 'f->type==FIELD_FULLTEXT' to function __STRING is always 0. It does not matter what value 'type' has. RediSearch-1.2.2/src/tests/test_index.c:787:3: style: Argument 'f->options==FieldSpec_Sortable' to function __STRING is always 0. It does not matter what value 'options' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:787:3: note: Assuming that condition '!(f->options==FieldSpec_Sortable)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:787:3: note: Argument 'f->options==FieldSpec_Sortable' to function __STRING is always 0. It does not matter what value 'options' has. RediSearch-1.2.2/src/tests/test_index.c:788:3: style: Argument 'f->sortIdx==0' to function __STRING is always 0. It does not matter what value 'sortIdx' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:788:3: note: Assuming that condition '!(f->sortIdx==0)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:788:3: note: Argument 'f->sortIdx==0' to function __STRING is always 0. It does not matter what value 'sortIdx' has. RediSearch-1.2.2/src/tests/test_index.c:792:3: style: Argument 'f->type==FIELD_NUMERIC' to function __STRING is always 0. It does not matter what value 'type' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:792:3: note: Assuming that condition '!(f->type==FIELD_NUMERIC)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:792:3: note: Argument 'f->type==FIELD_NUMERIC' to function __STRING is always 0. It does not matter what value 'type' has. RediSearch-1.2.2/src/tests/test_index.c:797:3: style: Argument 'f->options==FieldSpec_Sortable' to function __STRING is always 0. It does not matter what value 'options' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:797:3: note: Assuming that condition '!(f->options==FieldSpec_Sortable)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:797:3: note: Argument 'f->options==FieldSpec_Sortable' to function __STRING is always 0. It does not matter what value 'options' has. RediSearch-1.2.2/src/tests/test_index.c:798:3: style: Argument 'f->sortIdx==1' to function __STRING is always 0. It does not matter what value 'sortIdx' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:798:3: note: Assuming that condition '!(f->sortIdx==1)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:798:3: note: Argument 'f->sortIdx==1' to function __STRING is always 0. It does not matter what value 'sortIdx' has. RediSearch-1.2.2/src/tests/test_index.c:803:3: style: Argument 'f->type==FIELD_FULLTEXT' to function __STRING is always 0. It does not matter what value 'type' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:803:3: note: Assuming that condition '!(f->type==FIELD_FULLTEXT)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:803:3: note: Argument 'f->type==FIELD_FULLTEXT' to function __STRING is always 0. It does not matter what value 'type' has. RediSearch-1.2.2/src/tests/test_index.c:807:3: style: Argument 'f->options==FieldSpec_NoStemming' to function __STRING is always 0. It does not matter what value 'options' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:807:3: note: Assuming that condition '!(f->options==FieldSpec_NoStemming)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:807:3: note: Argument 'f->options==FieldSpec_NoStemming' to function __STRING is always 0. It does not matter what value 'options' has. RediSearch-1.2.2/src/tests/test_index.c:808:3: style: Argument 'f->sortIdx==-1' to function __STRING is always 0. It does not matter what value 'sortIdx' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:808:3: note: Assuming that condition '!(f->sortIdx==-1)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:808:3: note: Argument 'f->sortIdx==-1' to function __STRING is always 0. It does not matter what value 'sortIdx' has. RediSearch-1.2.2/src/tests/test_index.c:811:3: style: Argument 's->sortables->len==2' to function __STRING is always 0. It does not matter what value 'len' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:811:3: note: Assuming that condition '!(s->sortables->len==2)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:811:3: note: Argument 's->sortables->len==2' to function __STRING is always 0. It does not matter what value 'len' has. RediSearch-1.2.2/src/tests/test_index.c:830:3: style: Argument 's->numFields==1' to function __STRING is always 0. It does not matter what value 'numFields' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:830:3: note: Assuming that condition '!(s->numFields==1)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:830:3: note: Argument 's->numFields==1' to function __STRING is always 0. It does not matter what value 'numFields' has. RediSearch-1.2.2/src/tests/test_index.c:832:3: style: Argument '!(s->flags&Index_StoreFieldFlags)' to function __STRING is always 0. It does not matter what value 's->flags' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:832:3: note: Assuming that condition '!(!(s->flags&Index_StoreFieldFlags))' is not redundant RediSearch-1.2.2/src/tests/test_index.c:832:3: note: Argument '!(s->flags&Index_StoreFieldFlags)' to function __STRING is always 0. It does not matter what value 's->flags' has. RediSearch-1.2.2/src/tests/test_index.c:833:3: style: Argument '!(s->flags&Index_StoreTermOffsets)' to function __STRING is always 0. It does not matter what value 's->flags' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:833:3: note: Assuming that condition '!(!(s->flags&Index_StoreTermOffsets))' is not redundant RediSearch-1.2.2/src/tests/test_index.c:833:3: note: Argument '!(s->flags&Index_StoreTermOffsets)' to function __STRING is always 0. It does not matter what value 's->flags' has. RediSearch-1.2.2/src/tests/test_index.c:891:3: style: Argument 's->numFields==N' to function __STRING is always 0. It does not matter what value 'numFields' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:891:3: note: Assuming that condition '!(s->numFields==N)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:891:3: note: Argument 's->numFields==N' to function __STRING is always 0. It does not matter what value 'numFields' has. RediSearch-1.2.2/src/tests/test_index.c:931:3: style: Argument 'w->flags==flags' to function __STRING is always 0. It does not matter what value 'flags' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:931:3: note: Assuming that condition '!(w->flags==flags)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:931:3: note: Argument 'w->flags==flags' to function __STRING is always 0. It does not matter what value 'flags' has. RediSearch-1.2.2/src/tests/test_index.c:939:3: style: Argument '!(w->flags&Index_StoreTermOffsets)' to function __STRING is always 0. It does not matter what value 'w->flags' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:939:3: note: Assuming that condition '!(!(w->flags&Index_StoreTermOffsets))' is not redundant RediSearch-1.2.2/src/tests/test_index.c:939:3: note: Argument '!(w->flags&Index_StoreTermOffsets)' to function __STRING is always 0. It does not matter what value 'w->flags' has. RediSearch-1.2.2/src/tests/test_index.c:948:3: style: Argument 'w->flags&Index_WideSchema' to function __STRING is always 0. It does not matter what value 'w->flags' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:948:3: note: Assuming that condition '!(w->flags&Index_WideSchema)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:948:3: note: Argument 'w->flags&Index_WideSchema' to function __STRING is always 0. It does not matter what value 'w->flags' has. RediSearch-1.2.2/src/tests/test_index.c:956:3: style: Argument 'w->flags&Index_WideSchema' to function __STRING is always 0. It does not matter what value 'w->flags' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:956:3: note: Assuming that condition '!(w->flags&Index_WideSchema)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:956:3: note: Argument 'w->flags&Index_WideSchema' to function __STRING is always 0. It does not matter what value 'w->flags' has. RediSearch-1.2.2/src/tests/test_index.c:965:3: style: Argument '!(w->flags&Index_StoreTermOffsets)' to function __STRING is always 0. It does not matter what value 'w->flags' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:965:3: note: Assuming that condition '!(!(w->flags&Index_StoreTermOffsets))' is not redundant RediSearch-1.2.2/src/tests/test_index.c:965:3: note: Argument '!(w->flags&Index_StoreTermOffsets)' to function __STRING is always 0. It does not matter what value 'w->flags' has. RediSearch-1.2.2/src/tests/test_index.c:966:3: style: Argument '!(w->flags&Index_StoreFieldFlags)' to function __STRING is always 0. It does not matter what value 'w->flags' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:966:3: note: Assuming that condition '!(!(w->flags&Index_StoreFieldFlags))' is not redundant RediSearch-1.2.2/src/tests/test_index.c:966:3: note: Argument '!(w->flags&Index_StoreFieldFlags)' to function __STRING is always 0. It does not matter what value 'w->flags' has. RediSearch-1.2.2/src/tests/test_index.c:974:3: style: Argument 'w->flags&Index_WideSchema' to function __STRING is always 0. It does not matter what value 'w->flags' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:974:3: note: Assuming that condition '!(w->flags&Index_WideSchema)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:974:3: note: Argument 'w->flags&Index_WideSchema' to function __STRING is always 0. It does not matter what value 'w->flags' has. RediSearch-1.2.2/src/tests/test_index.c:975:3: style: Argument 'w->flags&Index_StoreFieldFlags' to function __STRING is always 0. It does not matter what value 'w->flags' has. [knownArgument] RediSearch-1.2.2/src/tests/test_index.c:975:3: note: Assuming that condition '!(w->flags&Index_StoreFieldFlags)' is not redundant RediSearch-1.2.2/src/tests/test_index.c:975:3: note: Argument 'w->flags&Index_StoreFieldFlags' to function __STRING is always 0. It does not matter what value 'w->flags' has. RediSearch-1.2.2/src/tests/test_index.c:22:12: style: Variable 'expected' can be declared as const array [constVariable] RediSearch-1.2.2/src/tests/test_index.c:102:12: style: Variable 'expected' can be declared as const array [constVariable] RediSearch-1.2.2/src/tests/test_index.c:247:26: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/tests/test_index.c:247:46: style: Parameter 'hits' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/tests/test_index.c:291:7: style: Variable 'expected' can be declared as const array [constVariable] RediSearch-1.2.2/src/tests/test_index.c:330:7: style: Variable 'expected' can be declared as const array [constVariable] RediSearch-1.2.2/src/tests/test_index.c:369:7: style: Variable 'expected' can be declared as const array [constVariable] RediSearch-1.2.2/src/tests/test_index.c:393:7: style: Variable 'expected' can be declared as const array [constVariable] RediSearch-1.2.2/src/tests/test_index.c:1022:11: style: Variable 'pl' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_index.c:1133:10: style: Variable 'expected' can be declared as const array [constVariable] RediSearch-1.2.2/src/tests/test_query.c:22:24: style: Parameter 'qt' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/tests/test_query.c:180:9: style: Variable 'qt' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_query.c:263:9: style: Variable 'qt' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_query.c:278:14: style: Variable 'gn' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_query.c:296:9: style: Variable 'qt' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_query.c:371:9: style: Variable 'qt' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_query.c:402:9: style: Variable 'qt' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_query.c:65:3: error: Uninitialized variables: ctx.redisCtx, ctx.key, ctx.keyName [uninitvar] RediSearch-1.2.2/src/tests/test_query.c:62:3: note: Assuming condition is false RediSearch-1.2.2/src/tests/test_query.c:65:3: note: Uninitialized variables: ctx.redisCtx, ctx.key, ctx.keyName RediSearch-1.2.2/src/tests/test_tokenize.c:13:29: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: txt [nullPointerOutOfMemory] RediSearch-1.2.2/src/tests/test_tokenize.c:10:21: note: Assuming allocation function fails RediSearch-1.2.2/src/tests/test_tokenize.c:10:21: note: Assignment 'txt=strdup("hello worlds - - -,,, . . . -=- hello\\-world to be \xd7\xa9\xd7\x9c\xd7\x95\xd7\x9d \xd7\xa2\xd7\x95\xd7\x9c\xd7\x9d")', assigned value is 0 RediSearch-1.2.2/src/tests/test_tokenize.c:13:29: note: Null pointer dereference RediSearch-1.2.2/src/tests/test_tokenize.c:19:5: style: Argument 'tok.tokLen==strlen(expected[i])' to function __STRING is always 0. It does not matter what value 'i' has. [knownArgument] RediSearch-1.2.2/src/tests/test_tokenize.c:19:5: note: Assuming that condition '!(tok.tokLen==strlen(expected[i]))' is not redundant RediSearch-1.2.2/src/tests/test_tokenize.c:19:5: note: Argument 'tok.tokLen==strlen(expected[i])' to function __STRING is always 0. It does not matter what value 'i' has. RediSearch-1.2.2/src/tests/test_tokenize.c:20:5: style: Argument '!strncmp(tok.tok,expected[i],tok.tokLen)' to function __STRING is always 0. It does not matter what value 'i' has. [knownArgument] RediSearch-1.2.2/src/tests/test_tokenize.c:20:5: note: Assuming that condition '!(!strncmp(tok.tok,expected[i],tok.tokLen))' is not redundant RediSearch-1.2.2/src/tests/test_tokenize.c:20:5: note: Argument '!strncmp(tok.tok,expected[i],tok.tokLen)' to function __STRING is always 0. It does not matter what value 'i' has. RediSearch-1.2.2/src/tests/test_tokenize.c:24:7: style: Argument '!strncmp(tok.stem,stems[i],tok.stemLen)' to function __STRING is always 0. It does not matter what value 'i' has. [knownArgument] RediSearch-1.2.2/src/tests/test_tokenize.c:24:7: note: Assuming that condition '!(!strncmp(tok.stem,stems[i],tok.stemLen))' is not redundant RediSearch-1.2.2/src/tests/test_tokenize.c:24:7: note: Argument '!strncmp(tok.stem,stems[i],tok.stemLen)' to function __STRING is always 0. It does not matter what value 'i' has. RediSearch-1.2.2/src/tests/test_index.c:912:7: style: union member 'u::i' is never used. [unusedStructMember] RediSearch-1.2.2/src/tests/test_index.c:913:9: style: union member 'u::f' is never used. [unusedStructMember] RediSearch-1.2.2/src/tests/test_index.c:854:11: style: Variable '_' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/tests/test_index.c:854:9: style: Variable '_' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/tests/test_value.c:6:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_value.c:29:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_value.c:38:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_value.c:70:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_value.c:109:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_trie.c:58:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_trie.c:112:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_trie.c:151:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_trie.c:214:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_trie.c:240:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_trie.c:346:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_value.c:79:12: style: Variable 'v' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_value.c:83:12: style: Variable 'v2' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/trie/levenshtein.c:121:3: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] RediSearch-1.2.2/src/tokenize_cn.c:27:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tokenize_cn.c:81:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tok [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tokenize_cn.c:107:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tokenizer [nullPointerOutOfMemory] RediSearch-1.2.2/src/tokenize_cn.c:106:34: note: Assuming allocation function fails RediSearch-1.2.2/src/tokenize_cn.c:106:34: note: Assignment 'tokenizer=calloc(1,sizeof(*tokenizer))', assigned value is 0 RediSearch-1.2.2/src/tokenize_cn.c:107:3: note: Null pointer dereference RediSearch-1.2.2/src/tokenize_cn.c:109:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tokenizer [nullPointerOutOfMemory] RediSearch-1.2.2/src/tokenize_cn.c:106:34: note: Assuming allocation function fails RediSearch-1.2.2/src/tokenize_cn.c:106:34: note: Assignment 'tokenizer=calloc(1,sizeof(*tokenizer))', assigned value is 0 RediSearch-1.2.2/src/tokenize_cn.c:109:3: note: Null pointer dereference RediSearch-1.2.2/src/tokenize_cn.c:110:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tokenizer [nullPointerOutOfMemory] RediSearch-1.2.2/src/tokenize_cn.c:106:34: note: Assuming allocation function fails RediSearch-1.2.2/src/tokenize_cn.c:106:34: note: Assignment 'tokenizer=calloc(1,sizeof(*tokenizer))', assigned value is 0 RediSearch-1.2.2/src/tokenize_cn.c:110:3: note: Null pointer dereference RediSearch-1.2.2/src/tokenize_cn.c:111:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tokenizer [nullPointerOutOfMemory] RediSearch-1.2.2/src/tokenize_cn.c:106:34: note: Assuming allocation function fails RediSearch-1.2.2/src/tokenize_cn.c:106:34: note: Assignment 'tokenizer=calloc(1,sizeof(*tokenizer))', assigned value is 0 RediSearch-1.2.2/src/tokenize_cn.c:111:3: note: Null pointer dereference RediSearch-1.2.2/src/tokenize_cn.c:112:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tokenizer [nullPointerOutOfMemory] RediSearch-1.2.2/src/tokenize_cn.c:106:34: note: Assuming allocation function fails RediSearch-1.2.2/src/tokenize_cn.c:106:34: note: Assignment 'tokenizer=calloc(1,sizeof(*tokenizer))', assigned value is 0 RediSearch-1.2.2/src/tokenize_cn.c:112:3: note: Null pointer dereference RediSearch-1.2.2/src/tokenize_cn.c:113:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tokenizer [nullPointerOutOfMemory] RediSearch-1.2.2/src/tokenize_cn.c:106:34: note: Assuming allocation function fails RediSearch-1.2.2/src/tokenize_cn.c:106:34: note: Assignment 'tokenizer=calloc(1,sizeof(*tokenizer))', assigned value is 0 RediSearch-1.2.2/src/tokenize_cn.c:113:3: note: Null pointer dereference RediSearch-1.2.2/src/tokenize_cn.c:114:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tokenizer [nullPointerOutOfMemory] RediSearch-1.2.2/src/tokenize_cn.c:106:34: note: Assuming allocation function fails RediSearch-1.2.2/src/tokenize_cn.c:106:34: note: Assignment 'tokenizer=calloc(1,sizeof(*tokenizer))', assigned value is 0 RediSearch-1.2.2/src/tokenize_cn.c:114:3: note: Null pointer dereference RediSearch-1.2.2/src/trie/sparse_vector.c:17:5: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/sparse_vector.c:15:29: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/sparse_vector.c:15:29: note: Assignment 'v=malloc(__sv_sizeof(cap))', assigned value is 0 RediSearch-1.2.2/src/trie/sparse_vector.c:17:5: note: Null pointer dereference RediSearch-1.2.2/src/trie/sparse_vector.c:18:5: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/sparse_vector.c:15:29: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/sparse_vector.c:15:29: note: Assignment 'v=malloc(__sv_sizeof(cap))', assigned value is 0 RediSearch-1.2.2/src/trie/sparse_vector.c:18:5: note: Null pointer dereference RediSearch-1.2.2/src/trie/sparse_vector.c:37:41: style:inconclusive: Function 'sparseVector_append' argument 1 names different: declaration 'v' definition 'vp'. [funcArgNamesDifferent] RediSearch-1.2.2/src/trie/sparse_vector.h:25:41: note: Function 'sparseVector_append' argument 1 names different: declaration 'v' definition 'vp'. RediSearch-1.2.2/src/trie/sparse_vector.c:37:41: note: Function 'sparseVector_append' argument 1 names different: declaration 'v' definition 'vp'. RediSearch-1.2.2/src/trie/rune_util.c:59:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/rune_util.c:56:21: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/rune_util.c:56:21: note: Assignment 'ret=calloc(rlen+1,sizeof(rune))', assigned value is 0 RediSearch-1.2.2/src/trie/rune_util.c:59:5: note: Null pointer dereference RediSearch-1.2.2/src/trie/rune_util.c:76:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/rune_util.c:74:21: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/rune_util.c:74:21: note: Assignment 'ret=malloc((rlen+1)*sizeof(rune))', assigned value is 0 RediSearch-1.2.2/src/trie/rune_util.c:76:3: note: Null pointer dereference RediSearch-1.2.2/src/trie/rune_util.c:92:5: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/rune_util.c:74:21: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/rune_util.c:74:21: note: Assignment 'ret=malloc((rlen+1)*sizeof(rune))', assigned value is 0 RediSearch-1.2.2/src/trie/rune_util.c:75:33: note: Calling function 'strToRunesN', 3rd argument 'ret' value is 0 RediSearch-1.2.2/src/trie/rune_util.c:89:12: note: Assuming condition is false RediSearch-1.2.2/src/trie/rune_util.c:92:5: note: Null pointer dereference RediSearch-1.2.2/src/trie/rune_util.c:83:32: style:inconclusive: Function 'strToRunesN' argument 1 names different: declaration 's' definition 'src'. [funcArgNamesDifferent] RediSearch-1.2.2/src/trie/rune_util.h:26:32: note: Function 'strToRunesN' argument 1 names different: declaration 's' definition 'src'. RediSearch-1.2.2/src/trie/rune_util.c:83:32: note: Function 'strToRunesN' argument 1 names different: declaration 's' definition 'src'. RediSearch-1.2.2/src/trie/rune_util.c:83:56: style:inconclusive: Function 'strToRunesN' argument 3 names different: declaration 'outbuf' definition 'out'. [funcArgNamesDifferent] RediSearch-1.2.2/src/trie/rune_util.h:26:54: note: Function 'strToRunesN' argument 3 names different: declaration 'outbuf' definition 'out'. RediSearch-1.2.2/src/trie/rune_util.c:83:56: note: Function 'strToRunesN' argument 3 names different: declaration 'outbuf' definition 'out'. RediSearch-1.2.2/src/trie/rune_util.c:24:24: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/trie/rune_util.c:44:30: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/tokenize.c:105:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tok [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/tests/test_trie.c:240:3: error: Resource leak: fp [resourceLeak] RediSearch-1.2.2/src/tests/test_trie.c:288:11: style: Local variable 'len' shadows outer variable [shadowVariable] RediSearch-1.2.2/src/tests/test_trie.c:235:10: note: Shadowed declaration RediSearch-1.2.2/src/tests/test_trie.c:288:11: note: Shadow variable RediSearch-1.2.2/src/tests/test_trie.c:320:11: style: Local variable 'len' shadows outer variable [shadowVariable] RediSearch-1.2.2/src/tests/test_trie.c:235:10: note: Shadowed declaration RediSearch-1.2.2/src/tests/test_trie.c:320:11: note: Shadow variable RediSearch-1.2.2/src/tests/test_trie.c:16:46: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/tests/test_trie.c:16:56: style: Parameter 'matched' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/tests/test_trie.c:16:71: style: Parameter 'matchCtx' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/tests/test_trie.c:42:36: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/tests/test_trie.c:54:9: style: Variable 'str' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_trie.c:71:9: style: Variable 'expectedUnicodeStr' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_trie.c:115:8: style: Variable 'expectedRunes' can be declared as const array [constVariable] RediSearch-1.2.2/src/tests/test_trie.c:184:13: style: Variable 'rn' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/tests/test_trie.c:190:9: style: Variable 'str' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/util/array.c:44:40: style:inconclusive: Function 'Array_Add' argument 2 names different: declaration 'elemSize' definition 'toAdd'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/array.h:55:40: note: Function 'Array_Add' argument 2 names different: declaration 'elemSize' definition 'toAdd'. RediSearch-1.2.2/src/util/array.c:44:40: note: Function 'Array_Add' argument 2 names different: declaration 'elemSize' definition 'toAdd'. RediSearch-1.2.2/src/util/array.c:57:25: style:inconclusive: Function 'Array_Write' argument 1 names different: declaration 'array' definition 'arr'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/array.h:56:25: note: Function 'Array_Write' argument 1 names different: declaration 'array' definition 'arr'. RediSearch-1.2.2/src/util/array.c:57:25: note: Function 'Array_Write' argument 1 names different: declaration 'array' definition 'arr'. RediSearch-1.2.2/src/tests/test_trie.c:181:10: style: Unused variable: score [unusedVariable] RediSearch-1.2.2/src/trie/trie_type.c:227:5: error: Syntax Error: AST broken, ternary operator lacks ':'. [internalAstError] RediSearch-1.2.2/src/util/block_alloc.c:76:5: warning: If memory allocation fails, then there is a possible null pointer dereference: block [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/block_alloc.c:75:19: note: Assuming allocation function fails RediSearch-1.2.2/src/util/block_alloc.c:75:19: note: Assignment 'block=malloc(sizeof(*alloc->root)+blockSize)', assigned value is 0 RediSearch-1.2.2/src/util/block_alloc.c:76:5: note: Null pointer dereference RediSearch-1.2.2/src/util/block_alloc.c:81:3: warning: If memory allocation fails, then there is a possible null pointer dereference: block [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/block_alloc.c:75:19: note: Assuming allocation function fails RediSearch-1.2.2/src/util/block_alloc.c:75:19: note: Assignment 'block=malloc(sizeof(*alloc->root)+blockSize)', assigned value is 0 RediSearch-1.2.2/src/util/block_alloc.c:81:3: note: Null pointer dereference RediSearch-1.2.2/src/util/block_alloc.c:82:3: warning: If memory allocation fails, then there is a possible null pointer dereference: block [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/block_alloc.c:75:19: note: Assuming allocation function fails RediSearch-1.2.2/src/util/block_alloc.c:75:19: note: Assignment 'block=malloc(sizeof(*alloc->root)+blockSize)', assigned value is 0 RediSearch-1.2.2/src/util/block_alloc.c:82:3: note: Null pointer dereference RediSearch-1.2.2/src/util/block_alloc.c:41:33: style:inconclusive: Function 'BlkAlloc_FreeAll' argument 1 names different: declaration 'alloc' definition 'blocks'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/block_alloc.h:45:33: note: Function 'BlkAlloc_FreeAll' argument 1 names different: declaration 'alloc' definition 'blocks'. RediSearch-1.2.2/src/util/block_alloc.c:41:33: note: Function 'BlkAlloc_FreeAll' argument 1 names different: declaration 'alloc' definition 'blocks'. RediSearch-1.2.2/src/util/block_alloc.c:45:31: style:inconclusive: Function 'BlkAlloc_Clear' argument 1 names different: declaration 'alloc' definition 'blocks'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/block_alloc.h:51:31: note: Function 'BlkAlloc_Clear' argument 1 names different: declaration 'alloc' definition 'blocks'. RediSearch-1.2.2/src/util/block_alloc.c:45:31: note: Function 'BlkAlloc_Clear' argument 1 names different: declaration 'alloc' definition 'blocks'. RediSearch-1.2.2/src/util/block_alloc.c:87:32: style:inconclusive: Function 'BlkAlloc_Alloc' argument 1 names different: declaration 'alloc' definition 'blocks'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/block_alloc.h:36:32: note: Function 'BlkAlloc_Alloc' argument 1 names different: declaration 'alloc' definition 'blocks'. RediSearch-1.2.2/src/util/block_alloc.c:87:32: note: Function 'BlkAlloc_Alloc' argument 1 names different: declaration 'alloc' definition 'blocks'. RediSearch-1.2.2/src/util/fnv.c:22:18: style: Variable 'be' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/util/fnv.c:64:18: style: Variable 'be' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/util/mempool.c:24:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/mempool.c:23:24: note: Assuming allocation function fails RediSearch-1.2.2/src/util/mempool.c:23:24: note: Assignment 'p=malloc(sizeof(struct mempool_t))', assigned value is 0 RediSearch-1.2.2/src/util/mempool.c:24:3: note: Null pointer dereference RediSearch-1.2.2/src/util/mempool.c:25:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/mempool.c:23:24: note: Assuming allocation function fails RediSearch-1.2.2/src/util/mempool.c:23:24: note: Assignment 'p=malloc(sizeof(struct mempool_t))', assigned value is 0 RediSearch-1.2.2/src/util/mempool.c:25:3: note: Null pointer dereference RediSearch-1.2.2/src/util/mempool.c:26:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/mempool.c:23:24: note: Assuming allocation function fails RediSearch-1.2.2/src/util/mempool.c:23:24: note: Assignment 'p=malloc(sizeof(struct mempool_t))', assigned value is 0 RediSearch-1.2.2/src/util/mempool.c:26:3: note: Null pointer dereference RediSearch-1.2.2/src/util/mempool.c:27:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/mempool.c:23:24: note: Assuming allocation function fails RediSearch-1.2.2/src/util/mempool.c:23:24: note: Assignment 'p=malloc(sizeof(struct mempool_t))', assigned value is 0 RediSearch-1.2.2/src/util/mempool.c:27:3: note: Null pointer dereference RediSearch-1.2.2/src/util/mempool.c:28:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/mempool.c:23:24: note: Assuming allocation function fails RediSearch-1.2.2/src/util/mempool.c:23:24: note: Assignment 'p=malloc(sizeof(struct mempool_t))', assigned value is 0 RediSearch-1.2.2/src/util/mempool.c:28:3: note: Null pointer dereference RediSearch-1.2.2/src/util/mempool.c:29:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/mempool.c:23:24: note: Assuming allocation function fails RediSearch-1.2.2/src/util/mempool.c:23:24: note: Assignment 'p=malloc(sizeof(struct mempool_t))', assigned value is 0 RediSearch-1.2.2/src/util/mempool.c:29:3: note: Null pointer dereference RediSearch-1.2.2/src/util/mempool.c:21:51: style:inconclusive: Function 'mempool_new_limited' argument 2 names different: declaration 'max_cap' definition 'max'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/mempool.h:26:58: note: Function 'mempool_new_limited' argument 2 names different: declaration 'max_cap' definition 'max'. RediSearch-1.2.2/src/util/mempool.c:21:51: note: Function 'mempool_new_limited' argument 2 names different: declaration 'max_cap' definition 'max'. RediSearch-1.2.2/src/util/heap.c:73:25: style:inconclusive: Function 'heap_free' argument 1 names different: declaration 'hp' definition 'h'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/heap.h:35:25: note: Function 'heap_free' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/heap.c:73:25: note: Function 'heap_free' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/heap.c:160:26: style:inconclusive: Function 'heap_offerx' argument 1 names different: declaration 'hp' definition 'h'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/heap.h:61:26: note: Function 'heap_offerx' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/heap.c:160:26: note: Function 'heap_offerx' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/heap.c:168:26: style:inconclusive: Function 'heap_offer' argument 1 names different: declaration 'hp_ptr' definition 'h'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/heap.h:49:25: note: Function 'heap_offer' argument 1 names different: declaration 'hp_ptr' definition 'h'. RediSearch-1.2.2/src/util/heap.c:168:26: note: Function 'heap_offer' argument 1 names different: declaration 'hp_ptr' definition 'h'. RediSearch-1.2.2/src/util/heap.c:177:26: style:inconclusive: Function 'heap_poll' argument 1 names different: declaration 'hp' definition 'h'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/heap.h:67:26: note: Function 'heap_poll' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/heap.c:177:26: note: Function 'heap_poll' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/heap.c:193:32: style:inconclusive: Function 'heap_peek' argument 1 names different: declaration 'hp' definition 'h'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/heap.h:71:32: note: Function 'heap_peek' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/heap.c:193:32: note: Function 'heap_peek' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/heap.c:201:26: style:inconclusive: Function 'heap_clear' argument 1 names different: declaration 'hp' definition 'h'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/heap.h:79:26: note: Function 'heap_clear' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/heap.c:201:26: note: Function 'heap_clear' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/heap.c:219:33: style:inconclusive: Function 'heap_remove_item' argument 1 names different: declaration 'hp' definition 'h'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/heap.h:98:33: note: Function 'heap_remove_item' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/heap.c:219:33: note: Function 'heap_remove_item' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/heap.c:239:39: style:inconclusive: Function 'heap_contains_item' argument 1 names different: declaration 'hp' definition 'h'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/heap.h:105:39: note: Function 'heap_contains_item' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/heap.c:239:39: note: Function 'heap_contains_item' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/heap.c:244:31: style:inconclusive: Function 'heap_count' argument 1 names different: declaration 'hp' definition 'h'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/heap.h:83:31: note: Function 'heap_count' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/heap.c:244:31: note: Function 'heap_count' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/heap.c:249:30: style:inconclusive: Function 'heap_size' argument 1 names different: declaration 'hp' definition 'h'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/heap.h:87:30: note: Function 'heap_size' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/heap.c:249:30: note: Function 'heap_size' argument 1 names different: declaration 'hp' definition 'h'. RediSearch-1.2.2/src/util/khtable.c:177:3: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/util/khtable.c:178:3: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/util/khtable.c:184:5: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/util/khtable.c:62:45: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/util/khtable.c:56:37: note: Assuming allocation function fails RediSearch-1.2.2/src/util/khtable.c:56:37: note: Assignment 'newEntries=calloc(newCapacity,sizeof(*table->buckets))', assigned value is 0 RediSearch-1.2.2/src/util/khtable.c:62:45: note: Null pointer addition RediSearch-1.2.2/src/util/quantile.c:49:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/util/quantile.c:72:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/util/quantile.c:72:5: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/util/quantile.c:72:5: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/util/quantile.c:81:5: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/util/quantile.c:81:5: portability: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/util/quantile.c:311:5: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/util/quantile.c:313:3: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/util/quantile.c:314:3: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] RediSearch-1.2.2/src/util/quantile.c:277:8: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/quantile.c:276:28: note: Assuming allocation function fails RediSearch-1.2.2/src/util/quantile.c:276:28: note: Assignment 'ret=calloc(1,sizeof(struct QuantStream))', assigned value is 0 RediSearch-1.2.2/src/util/quantile.c:277:8: note: Null pointer dereference RediSearch-1.2.2/src/util/quantile.c:281:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/quantile.c:276:28: note: Assuming allocation function fails RediSearch-1.2.2/src/util/quantile.c:276:28: note: Assignment 'ret=calloc(1,sizeof(struct QuantStream))', assigned value is 0 RediSearch-1.2.2/src/util/quantile.c:281:3: note: Null pointer dereference RediSearch-1.2.2/src/util/quantile.c:282:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/quantile.c:276:28: note: Assuming allocation function fails RediSearch-1.2.2/src/util/quantile.c:276:28: note: Assignment 'ret=calloc(1,sizeof(struct QuantStream))', assigned value is 0 RediSearch-1.2.2/src/util/quantile.c:282:3: note: Null pointer dereference RediSearch-1.2.2/src/util/quantile.c:242:29: style:inconclusive: Function 'QS_Insert' argument 1 names different: declaration 'qs' definition 'stream'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/quantile.h:10:29: note: Function 'QS_Insert' argument 1 names different: declaration 'qs' definition 'stream'. RediSearch-1.2.2/src/util/quantile.c:242:29: note: Function 'QS_Insert' argument 1 names different: declaration 'qs' definition 'stream'. RediSearch-1.2.2/src/util/quantile.c:251:30: style:inconclusive: Function 'QS_Query' argument 1 names different: declaration 'qs' definition 'stream'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/quantile.h:11:30: note: Function 'QS_Query' argument 1 names different: declaration 'qs' definition 'stream'. RediSearch-1.2.2/src/util/quantile.c:251:30: note: Function 'QS_Query' argument 1 names different: declaration 'qs' definition 'stream'. RediSearch-1.2.2/src/util/quantile.c:251:45: style:inconclusive: Function 'QS_Query' argument 2 names different: declaration 'val' definition 'q'. [funcArgNamesDifferent] RediSearch-1.2.2/src/util/quantile.h:11:41: note: Function 'QS_Query' argument 2 names different: declaration 'val' definition 'q'. RediSearch-1.2.2/src/util/quantile.c:251:45: note: Function 'QS_Query' argument 2 names different: declaration 'val' definition 'q'. RediSearch-1.2.2/src/util/minmax_heap.c:250:3: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/minmax_heap.c:248:21: note: Assuming allocation function fails RediSearch-1.2.2/src/util/minmax_heap.c:248:21: note: Assignment 'h=calloc(1,sizeof(struct heap_t))', assigned value is 0 RediSearch-1.2.2/src/util/minmax_heap.c:250:3: note: Null pointer dereference RediSearch-1.2.2/src/util/minmax_heap.c:251:3: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/minmax_heap.c:248:21: note: Assuming allocation function fails RediSearch-1.2.2/src/util/minmax_heap.c:248:21: note: Assignment 'h=calloc(1,sizeof(struct heap_t))', assigned value is 0 RediSearch-1.2.2/src/util/minmax_heap.c:251:3: note: Null pointer dereference RediSearch-1.2.2/src/util/minmax_heap.c:252:3: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/minmax_heap.c:248:21: note: Assuming allocation function fails RediSearch-1.2.2/src/util/minmax_heap.c:248:21: note: Assignment 'h=calloc(1,sizeof(struct heap_t))', assigned value is 0 RediSearch-1.2.2/src/util/minmax_heap.c:252:3: note: Null pointer dereference RediSearch-1.2.2/src/util/minmax_heap.c:253:3: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/minmax_heap.c:248:21: note: Assuming allocation function fails RediSearch-1.2.2/src/util/minmax_heap.c:248:21: note: Assignment 'h=calloc(1,sizeof(struct heap_t))', assigned value is 0 RediSearch-1.2.2/src/util/minmax_heap.c:253:3: note: Null pointer dereference RediSearch-1.2.2/src/util/minmax_heap.c:254:3: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/minmax_heap.c:248:21: note: Assuming allocation function fails RediSearch-1.2.2/src/util/minmax_heap.c:248:21: note: Assignment 'h=calloc(1,sizeof(struct heap_t))', assigned value is 0 RediSearch-1.2.2/src/util/minmax_heap.c:254:3: note: Null pointer dereference RediSearch-1.2.2/src/util/minmax_heap.c:255:3: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] RediSearch-1.2.2/src/util/minmax_heap.c:248:21: note: Assuming allocation function fails RediSearch-1.2.2/src/util/minmax_heap.c:248:21: note: Assignment 'h=calloc(1,sizeof(struct heap_t))', assigned value is 0 RediSearch-1.2.2/src/util/minmax_heap.c:255:3: note: Null pointer dereference RediSearch-1.2.2/src/varint.c:91:3: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] RediSearch-1.2.2/src/varint.c:85:33: note: Assuming allocation function fails RediSearch-1.2.2/src/varint.c:85:33: note: Assignment 'w=malloc(sizeof(struct VarintVectorWriter))', assigned value is 0 RediSearch-1.2.2/src/varint.c:86:12: note: Calling function 'VVW_Init', 1st argument 'w' value is 0 RediSearch-1.2.2/src/varint.c:91:3: note: Null pointer dereference RediSearch-1.2.2/src/varint.c:92:3: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] RediSearch-1.2.2/src/varint.c:85:33: note: Assuming allocation function fails RediSearch-1.2.2/src/varint.c:85:33: note: Assignment 'w=malloc(sizeof(struct VarintVectorWriter))', assigned value is 0 RediSearch-1.2.2/src/varint.c:86:12: note: Calling function 'VVW_Init', 1st argument 'w' value is 0 RediSearch-1.2.2/src/varint.c:92:3: note: Null pointer dereference RediSearch-1.2.2/src/value.c:111:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable t [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/value.c:223:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/value.c:265:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/value.c:503:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable REDISMODULE_OK [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/value.c:556:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/value.c:568:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/value.c:581:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lempar.c:27:1: error: syntax error [syntaxError] RediSearch-1.2.2/src/value.c:605:13: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] RediSearch-1.2.2/src/value.c:176:3: warning: Return value of function vasprintf() is not used. [ignoredReturnValue] RediSearch-1.2.2/src/value.c:38:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/value.c:37:27: note: Assuming allocation function fails RediSearch-1.2.2/src/value.c:37:27: note: Assignment 'ret=calloc(1,RSFieldMap_SizeOf(8))', assigned value is 0 RediSearch-1.2.2/src/value.c:38:3: note: Null pointer dereference RediSearch-1.2.2/src/value.c:50:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tp [nullPointerOutOfMemory] RediSearch-1.2.2/src/value.c:49:16: note: Assuming allocation function fails RediSearch-1.2.2/src/value.c:49:16: note: Assignment 'tp=calloc(1,sizeof(*tp))', assigned value is 0 RediSearch-1.2.2/src/value.c:50:5: note: Null pointer dereference RediSearch-1.2.2/src/value.c:51:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tp [nullPointerOutOfMemory] RediSearch-1.2.2/src/value.c:49:16: note: Assuming allocation function fails RediSearch-1.2.2/src/value.c:49:16: note: Assignment 'tp=calloc(1,sizeof(*tp))', assigned value is 0 RediSearch-1.2.2/src/value.c:51:5: note: Null pointer dereference RediSearch-1.2.2/src/value.c:366:5: warning: If memory allocation fails, then there is a possible null pointer dereference: arr [nullPointerOutOfMemory] RediSearch-1.2.2/src/value.c:361:25: note: Assuming allocation function fails RediSearch-1.2.2/src/value.c:361:25: note: Assignment 'arr=calloc(sz,sizeof(*arr))', assigned value is 0 RediSearch-1.2.2/src/value.c:366:5: note: Null pointer dereference RediSearch-1.2.2/src/value.c:377:5: warning: If memory allocation fails, then there is a possible null pointer dereference: arr [nullPointerOutOfMemory] RediSearch-1.2.2/src/value.c:374:25: note: Assuming allocation function fails RediSearch-1.2.2/src/value.c:374:25: note: Assignment 'arr=calloc(sz,sizeof(struct RSValue*))', assigned value is 0 RediSearch-1.2.2/src/value.c:377:5: note: Null pointer dereference RediSearch-1.2.2/src/value.c:386:5: warning: If memory allocation fails, then there is a possible null pointer dereference: arr [nullPointerOutOfMemory] RediSearch-1.2.2/src/value.c:383:25: note: Assuming allocation function fails RediSearch-1.2.2/src/value.c:383:25: note: Assignment 'arr=calloc(sz,sizeof(struct RSValue*))', assigned value is 0 RediSearch-1.2.2/src/value.c:386:5: note: Null pointer dereference RediSearch-1.2.2/src/value.c:409:9: warning: If memory allocation fails, then there is a possible null pointer dereference: vals [nullPointerOutOfMemory] RediSearch-1.2.2/src/value.c:407:30: note: Assuming allocation function fails RediSearch-1.2.2/src/value.c:407:30: note: Assignment 'vals=calloc(arg->a.len,sizeof(*vals))', assigned value is 0 RediSearch-1.2.2/src/value.c:409:9: note: Null pointer dereference RediSearch-1.2.2/src/value.c:514:11: warning: Either the condition '!v' is redundant or there is possible null pointer dereference: v. [nullPointerRedundantCheck] RediSearch-1.2.2/src/value.c:511:7: note: Assuming that condition '!v' is not redundant RediSearch-1.2.2/src/value.c:514:11: note: Null pointer dereference RediSearch-1.2.2/src/value.c:543:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/value.c:542:27: note: Assuming allocation function fails RediSearch-1.2.2/src/value.c:542:27: note: Assignment 'ret=calloc(1,sizeof(struct RSMultiKey)+len*sizeof(struct RSKey))', assigned value is 0 RediSearch-1.2.2/src/value.c:543:3: note: Null pointer dereference RediSearch-1.2.2/src/value.c:544:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/value.c:542:27: note: Assuming allocation function fails RediSearch-1.2.2/src/value.c:542:27: note: Assignment 'ret=calloc(1,sizeof(struct RSMultiKey)+len*sizeof(struct RSKey))', assigned value is 0 RediSearch-1.2.2/src/value.c:544:3: note: Null pointer dereference RediSearch-1.2.2/src/value.c:550:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/value.c:549:27: note: Assuming allocation function fails RediSearch-1.2.2/src/value.c:549:27: note: Assignment 'ret=calloc(1,sizeof(struct RSMultiKey)+len*sizeof(struct RSKey))', assigned value is 0 RediSearch-1.2.2/src/value.c:550:3: note: Null pointer dereference RediSearch-1.2.2/src/value.c:551:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/value.c:549:27: note: Assuming allocation function fails RediSearch-1.2.2/src/value.c:549:27: note: Assignment 'ret=calloc(1,sizeof(struct RSMultiKey)+len*sizeof(struct RSKey))', assigned value is 0 RediSearch-1.2.2/src/value.c:551:3: note: Null pointer dereference RediSearch-1.2.2/src/value.c:576:41: style: Parameter 'k' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/value.c:250:9: style: Variable 'l' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/value.c:605:17: style: Variable 'cap' is assigned a value that is never used. [unreadVariable] RediSearch-1.2.2/src/trie/trie.c:27:16: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] RediSearch-1.2.2/src/trie/trie.c:582:7: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] RediSearch-1.2.2/src/trie/trie.c:16:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/trie.c:15:26: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/trie.c:15:26: note: Assignment 'p=malloc(sizeof(struct TriePayload)+sizeof(char)*(plen+1))', assigned value is 0 RediSearch-1.2.2/src/trie/trie.c:16:3: note: Null pointer dereference RediSearch-1.2.2/src/trie/trie.c:17:10: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/trie.c:15:26: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/trie.c:15:26: note: Assignment 'p=malloc(sizeof(struct TriePayload)+sizeof(char)*(plen+1))', assigned value is 0 RediSearch-1.2.2/src/trie/trie.c:17:10: note: Null pointer dereference RediSearch-1.2.2/src/trie/trie.c:24:3: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/trie.c:23:23: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/trie.c:23:23: note: Assignment 'n=calloc(1,__trieNode_Sizeof(numChildren,len-offset))', assigned value is 0 RediSearch-1.2.2/src/trie/trie.c:24:3: note: Null pointer dereference RediSearch-1.2.2/src/trie/trie.c:25:3: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/trie.c:23:23: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/trie.c:23:23: note: Assignment 'n=calloc(1,__trieNode_Sizeof(numChildren,len-offset))', assigned value is 0 RediSearch-1.2.2/src/trie/trie.c:25:3: note: Null pointer dereference RediSearch-1.2.2/src/trie/trie.c:26:3: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/trie.c:23:23: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/trie.c:23:23: note: Assignment 'n=calloc(1,__trieNode_Sizeof(numChildren,len-offset))', assigned value is 0 RediSearch-1.2.2/src/trie/trie.c:26:3: note: Null pointer dereference RediSearch-1.2.2/src/trie/trie.c:27:3: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/trie.c:23:23: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/trie.c:23:23: note: Assignment 'n=calloc(1,__trieNode_Sizeof(numChildren,len-offset))', assigned value is 0 RediSearch-1.2.2/src/trie/trie.c:27:3: note: Null pointer dereference RediSearch-1.2.2/src/trie/trie.c:28:3: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/trie.c:23:23: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/trie.c:23:23: note: Assignment 'n=calloc(1,__trieNode_Sizeof(numChildren,len-offset))', assigned value is 0 RediSearch-1.2.2/src/trie/trie.c:28:3: note: Null pointer dereference RediSearch-1.2.2/src/trie/trie.c:29:10: warning: If memory allocation fails, then there is a possible null pointer dereference: n [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/trie.c:23:23: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/trie.c:23:23: note: Assignment 'n=calloc(1,__trieNode_Sizeof(numChildren,len-offset))', assigned value is 0 RediSearch-1.2.2/src/trie/trie.c:29:10: note: Null pointer dereference RediSearch-1.2.2/src/trie/trie.c:273:14: warning: Either the condition 'nodes[i]' is redundant or there is possible null pointer dereference: nodes[i]. [nullPointerRedundantCheck] RediSearch-1.2.2/src/trie/trie.c:289:16: note: Assuming that condition 'nodes[i]' is not redundant RediSearch-1.2.2/src/trie/trie.c:273:14: note: Null pointer dereference RediSearch-1.2.2/src/trie/trie.c:394:7: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/trie.c:503:28: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/trie.c:503:28: note: Assignment 'it=calloc(1,sizeof(struct TrieIterator))', assigned value is 0 RediSearch-1.2.2/src/trie/trie.c:508:13: note: Calling function '__ti_Push', 1st argument 'it' value is 0 RediSearch-1.2.2/src/trie/trie.c:394:7: note: Null pointer dereference RediSearch-1.2.2/src/trie/trie.c:504:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/trie.c:503:28: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/trie.c:503:28: note: Assignment 'it=calloc(1,sizeof(struct TrieIterator))', assigned value is 0 RediSearch-1.2.2/src/trie/trie.c:504:3: note: Null pointer dereference RediSearch-1.2.2/src/trie/trie.c:505:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/trie.c:503:28: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/trie.c:503:28: note: Assignment 'it=calloc(1,sizeof(struct TrieIterator))', assigned value is 0 RediSearch-1.2.2/src/trie/trie.c:505:3: note: Null pointer dereference RediSearch-1.2.2/src/trie/trie.c:506:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/trie.c:503:28: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/trie.c:503:28: note: Assignment 'it=calloc(1,sizeof(struct TrieIterator))', assigned value is 0 RediSearch-1.2.2/src/trie/trie.c:506:3: note: Null pointer dereference RediSearch-1.2.2/src/trie/trie.c:507:3: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/trie.c:503:28: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/trie.c:503:28: note: Assignment 'it=calloc(1,sizeof(struct TrieIterator))', assigned value is 0 RediSearch-1.2.2/src/trie/trie.c:507:3: note: Null pointer dereference RediSearch-1.2.2/src/trie/trie.c:553:3: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/trie.c:552:28: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/trie.c:552:28: note: Assignment 'stack=calloc(stackCap,sizeof(struct TrieNode*))', assigned value is 0 RediSearch-1.2.2/src/trie/trie.c:553:3: note: Null pointer dereference RediSearch-1.2.2/src/trie/trie.c:559:31: warning: If memory allocation fails, then there is a possible null pointer dereference: stack [nullPointerOutOfMemory] RediSearch-1.2.2/src/trie/trie.c:552:28: note: Assuming allocation function fails RediSearch-1.2.2/src/trie/trie.c:552:28: note: Assignment 'stack=calloc(stackCap,sizeof(struct TrieNode*))', assigned value is 0 RediSearch-1.2.2/src/trie/trie.c:559:31: note: Null pointer dereference RediSearch-1.2.2/src/trie/trie.c:124:29: style:inconclusive: Function 'TrieNode_Add' argument 1 names different: declaration 'n' definition 'np'. [funcArgNamesDifferent] RediSearch-1.2.2/src/trie/trie.h:101:29: note: Function 'TrieNode_Add' argument 1 names different: declaration 'n' definition 'np'. RediSearch-1.2.2/src/trie/trie.c:124:29: note: Function 'TrieNode_Add' argument 1 names different: declaration 'n' definition 'np'. RediSearch-1.2.2/src/trie/trie.c:21:31: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/trie/trie.c:36:87: style: Parameter 'payload' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/trie/trie.c:216:40: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/trie/trie.c:300:40: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/src/trie/trie.c:373:13: style: Variable 'n1' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/trie/trie.c:374:13: style: Variable 'n2' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/src/trie/trie.c:43:3: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:43:3: portability: '(void*)n+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:56:25: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:56:25: portability: '(void*)n+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:57:28: portability: '(void*)newChild' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:57:28: portability: '(void*)newChild+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:73:3: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:73:3: portability: '(void*)n+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:85:19: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:85:19: portability: '(void*)n+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:97:25: portability: '(void*)ch' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:97:25: portability: '(void*)ch+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:98:28: portability: '(void*)merged' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:98:28: portability: '(void*)merged+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:120:20: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:120:20: portability: '(void*)n+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:151:28: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:151:28: portability: '(void*)n+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:161:7: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:161:7: portability: '(void*)n+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:205:23: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:205:23: portability: '(void*)n+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:208:7: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:208:7: portability: '(void*)n+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:238:27: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:238:27: portability: '(void*)n+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:267:22: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:267:22: portability: '(void*)n+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:334:27: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:334:27: portability: '(void*)n+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:360:23: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:360:23: portability: '(void*)n+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:387:11: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:387:11: portability: '(void*)n+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:484:24: portability: '(void*)current->n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:484:24: portability: '(void*)current->n+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:576:23: portability: '(void*)n' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/trie/trie.c:576:23: portability: '(void*)n+sizeof(struct TrieNode)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] RediSearch-1.2.2/src/tokenize.c:143:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] RediSearch-1.2.2/src/tokenize.c:142:30: note: Assuming allocation function fails RediSearch-1.2.2/src/tokenize.c:142:30: note: Assignment 't=calloc(1,sizeof(*t))', assigned value is 0 RediSearch-1.2.2/src/tokenize.c:143:3: note: Null pointer dereference RediSearch-1.2.2/src/tokenize.c:144:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] RediSearch-1.2.2/src/tokenize.c:142:30: note: Assuming allocation function fails RediSearch-1.2.2/src/tokenize.c:142:30: note: Assignment 't=calloc(1,sizeof(*t))', assigned value is 0 RediSearch-1.2.2/src/tokenize.c:144:3: note: Null pointer dereference RediSearch-1.2.2/src/tokenize.c:145:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] RediSearch-1.2.2/src/tokenize.c:142:30: note: Assuming allocation function fails RediSearch-1.2.2/src/tokenize.c:142:30: note: Assignment 't=calloc(1,sizeof(*t))', assigned value is 0 RediSearch-1.2.2/src/tokenize.c:145:3: note: Null pointer dereference RediSearch-1.2.2/src/tokenize.c:146:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] RediSearch-1.2.2/src/tokenize.c:142:30: note: Assuming allocation function fails RediSearch-1.2.2/src/tokenize.c:142:30: note: Assignment 't=calloc(1,sizeof(*t))', assigned value is 0 RediSearch-1.2.2/src/tokenize.c:146:3: note: Null pointer dereference RediSearch-1.2.2/src/tokenize.c:147:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] RediSearch-1.2.2/src/tokenize.c:142:30: note: Assuming allocation function fails RediSearch-1.2.2/src/tokenize.c:142:30: note: Assignment 't=calloc(1,sizeof(*t))', assigned value is 0 RediSearch-1.2.2/src/tokenize.c:147:3: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:136:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:494:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:620:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:640:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:690:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:1303:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:1497:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:1512:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:1527:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:1547:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:1662:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:2818:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:2990:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:3062:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:3091:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:3146:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:3505:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:3965:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:4276:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/srcutil/lemon.c:4695:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] RediSearch-1.2.2/src/dep/miniz/miniz.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] RediSearch-1.2.2/src/dep/miniz/miniz.c:3285:21: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] RediSearch-1.2.2/src/dep/miniz/miniz.c:3317:13: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] RediSearch-1.2.2/src/dep/miniz/miniz.c:3647:21: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] RediSearch-1.2.2/src/dep/miniz/miniz.c:3645:50: note: 'extra_size_remaining' is assigned value 'ext_data_size' here. RediSearch-1.2.2/src/dep/miniz/miniz.c:3641:18: note: outer condition: ext_data_size RediSearch-1.2.2/src/dep/miniz/miniz.c:3647:21: note: identical inner condition: extra_size_remaining RediSearch-1.2.2/src/dep/miniz/miniz.c:215:51: style: Condition 'tdefl_init(pComp,NULL,NULL,comp_flags)!=TDEFL_STATUS_OKAY' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/miniz/miniz.c:215:19: note: Calling function 'tdefl_init' returns 0 RediSearch-1.2.2/src/dep/miniz/miniz.c:215:51: note: Condition 'tdefl_init(pComp,NULL,NULL,comp_flags)!=TDEFL_STATUS_OKAY' is always false RediSearch-1.2.2/src/dep/miniz/miniz.c:1965:73: style: Condition 'tdefl_init(pComp,pPut_buf_func,pPut_buf_user,flags)==TDEFL_STATUS_OKAY' is always true [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/miniz/miniz.c:1965:28: note: Calling function 'tdefl_init' returns 0 RediSearch-1.2.2/src/dep/miniz/miniz.c:1965:73: note: Condition 'tdefl_init(pComp,pPut_buf_func,pPut_buf_user,flags)==TDEFL_STATUS_OKAY' is always true RediSearch-1.2.2/src/dep/miniz/miniz.c:5949:9: style: Condition '!mz_zip_writer_create_central_dir_header(pZip,central_dir_header,filename_size,extra_size+user_extra_data_len,comment_size,uncomp_size,comp_size,uncomp_crc32,method,bit_flags,dos_time,dos_date,local_header_ofs,ext_attributes)' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/miniz/miniz.c:5949:49: note: Calling function 'mz_zip_writer_create_central_dir_header' returns 1 RediSearch-1.2.2/src/dep/miniz/miniz.c:5949:9: note: Condition '!mz_zip_writer_create_central_dir_header(pZip,central_dir_header,filename_size,extra_size+user_extra_data_len,comment_size,uncomp_size,comp_size,uncomp_crc32,method,bit_flags,dos_time,dos_date,local_header_ofs,ext_attributes)' is always false RediSearch-1.2.2/src/dep/miniz/miniz.c:6158:13: style: Condition '!mz_zip_writer_create_local_dir_header(pZip,local_dir_header,(unsigned short)archive_name_size,extra_size+user_extra_data_len,0,0,0,method,bit_flags,dos_time,dos_date)' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/miniz/miniz.c:6158:51: note: Calling function 'mz_zip_writer_create_local_dir_header' returns 1 RediSearch-1.2.2/src/dep/miniz/miniz.c:6158:13: note: Condition '!mz_zip_writer_create_local_dir_header(pZip,local_dir_header,(unsigned short)archive_name_size,extra_size+user_extra_data_len,0,0,0,method,bit_flags,dos_time,dos_date)' is always false RediSearch-1.2.2/src/dep/miniz/miniz.c:6185:13: style: Condition '!mz_zip_writer_create_local_dir_header(pZip,local_dir_header,(unsigned short)archive_name_size,user_extra_data_len,0,0,0,method,bit_flags,dos_time,dos_date)' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/miniz/miniz.c:6185:51: note: Calling function 'mz_zip_writer_create_local_dir_header' returns 1 RediSearch-1.2.2/src/dep/miniz/miniz.c:6185:13: note: Condition '!mz_zip_writer_create_local_dir_header(pZip,local_dir_header,(unsigned short)archive_name_size,user_extra_data_len,0,0,0,method,bit_flags,dos_time,dos_date)' is always false RediSearch-1.2.2/src/dep/miniz/miniz.c:6239:150: style: Condition 'tdefl_init(pComp,mz_zip_writer_add_put_buf_callback,&state,tdefl_create_comp_flags_from_zip_params(level,-15,MZ_DEFAULT_STRATEGY))!=TDEFL_STATUS_OKAY' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/miniz/miniz.c:6239:24: note: Calling function 'tdefl_init' returns 0 RediSearch-1.2.2/src/dep/miniz/miniz.c:6239:150: note: Condition 'tdefl_init(pComp,mz_zip_writer_add_put_buf_callback,&state,tdefl_create_comp_flags_from_zip_params(level,-15,MZ_DEFAULT_STRATEGY))!=TDEFL_STATUS_OKAY' is always false RediSearch-1.2.2/src/dep/miniz/miniz.c:6416:13: style: Condition '!mz_zip_writer_create_local_dir_header(pZip,local_dir_header,(unsigned short)archive_name_size,extra_size+user_extra_data_len,0,0,0,method,gen_flags,dos_time,dos_date)' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/miniz/miniz.c:6416:51: note: Calling function 'mz_zip_writer_create_local_dir_header' returns 1 RediSearch-1.2.2/src/dep/miniz/miniz.c:6416:13: note: Condition '!mz_zip_writer_create_local_dir_header(pZip,local_dir_header,(unsigned short)archive_name_size,extra_size+user_extra_data_len,0,0,0,method,gen_flags,dos_time,dos_date)' is always false RediSearch-1.2.2/src/dep/miniz/miniz.c:6440:13: style: Condition '!mz_zip_writer_create_local_dir_header(pZip,local_dir_header,(unsigned short)archive_name_size,user_extra_data_len,0,0,0,method,gen_flags,dos_time,dos_date)' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/miniz/miniz.c:6440:51: note: Calling function 'mz_zip_writer_create_local_dir_header' returns 1 RediSearch-1.2.2/src/dep/miniz/miniz.c:6440:13: note: Condition '!mz_zip_writer_create_local_dir_header(pZip,local_dir_header,(unsigned short)archive_name_size,user_extra_data_len,0,0,0,method,gen_flags,dos_time,dos_date)' is always false RediSearch-1.2.2/src/dep/miniz/miniz.c:6504:153: style: Condition 'tdefl_init(pComp,mz_zip_writer_add_put_buf_callback,&state,tdefl_create_comp_flags_from_zip_params(level,-15,MZ_DEFAULT_STRATEGY))!=TDEFL_STATUS_OKAY' is always false [knownConditionTrueFalse] RediSearch-1.2.2/src/dep/miniz/miniz.c:6504:27: note: Calling function 'tdefl_init' returns 0 RediSearch-1.2.2/src/dep/miniz/miniz.c:6504:153: note: Condition 'tdefl_init(pComp,mz_zip_writer_add_put_buf_callback,&state,tdefl_create_comp_flags_from_zip_params(level,-15,MZ_DEFAULT_STRATEGY))!=TDEFL_STATUS_OKAY' is always false RediSearch-1.2.2/src/dep/miniz/miniz.c:6021:38: warning: Either the condition '!pZip' is redundant or there is possible null pointer dereference: pZip. [nullPointerRedundantCheck] RediSearch-1.2.2/src/dep/miniz/miniz.c:6043:10: note: Assuming that condition '!pZip' is not redundant RediSearch-1.2.2/src/dep/miniz/miniz.c:6021:38: note: Null pointer dereference RediSearch-1.2.2/src/dep/miniz/miniz.c:6021:83: warning: Either the condition '!pZip' is redundant or there is possible null pointer dereference: pZip. [nullPointerRedundantCheck] RediSearch-1.2.2/src/dep/miniz/miniz.c:6043:10: note: Assuming that condition '!pZip' is not redundant RediSearch-1.2.2/src/dep/miniz/miniz.c:6021:83: note: Null pointer dereference RediSearch-1.2.2/src/dep/miniz/miniz.c:6307:60: warning: Either the condition '!pZip' is redundant or there is possible null pointer dereference: pZip. [nullPointerRedundantCheck] RediSearch-1.2.2/src/dep/miniz/miniz.c:6323:10: note: Assuming that condition '!pZip' is not redundant RediSearch-1.2.2/src/dep/miniz/miniz.c:6307:60: note: Null pointer dereference RediSearch-1.2.2/src/dep/miniz/miniz.c:2352:81: error: Pointer addition with NULL pointer. [nullPointerArithmetic] RediSearch-1.2.2/src/dep/miniz/miniz.c:2817:137: note: Calling function 'tinfl_decompress', 5th argument 'pBuf?(unsigned char*)pBuf+*pOut_len:NULL' value is 0 RediSearch-1.2.2/src/dep/miniz/miniz.c:2352:81: note: Null pointer addition RediSearch-1.2.2/src/dep/miniz/miniz.c:6021:15: style:inconclusive: Same expression used in consecutive assignments of 'local_dir_header_ofs' and 'cur_archive_file_ofs'. [duplicateAssignExpression] RediSearch-1.2.2/src/dep/miniz/miniz.c:6021:60: note: Same expression used in consecutive assignments of 'local_dir_header_ofs' and 'cur_archive_file_ofs'. RediSearch-1.2.2/src/dep/miniz/miniz.c:6021:15: note: Same expression used in consecutive assignments of 'local_dir_header_ofs' and 'cur_archive_file_ofs'. RediSearch-1.2.2/src/dep/miniz/miniz.c:1246:9: style: Unsigned expression '(1U<prec==spy->prec' is always true [knownConditionTrueFalse] RediSearch-1.2.2/srcutil/lemon.c:1240:24: note: Assuming that condition 'spx->prec>spy->prec' is not redundant RediSearch-1.2.2/srcutil/lemon.c:1242:24: note: Assuming that condition 'spx->precprec' is not redundant RediSearch-1.2.2/srcutil/lemon.c:1244:24: note: Condition 'spx->prec==spy->prec' is always true RediSearch-1.2.2/srcutil/lemon.c:1246:24: style: Condition 'spx->prec==spy->prec' is always true [knownConditionTrueFalse] RediSearch-1.2.2/srcutil/lemon.c:1240:24: note: Assuming that condition 'spx->prec>spy->prec' is not redundant RediSearch-1.2.2/srcutil/lemon.c:1242:24: note: Assuming that condition 'spx->precprec' is not redundant RediSearch-1.2.2/srcutil/lemon.c:1246:24: note: Condition 'spx->prec==spy->prec' is always true RediSearch-1.2.2/srcutil/lemon.c:1261:24: style: Condition 'spx->precprec' is always true [knownConditionTrueFalse] RediSearch-1.2.2/srcutil/lemon.c:1256:29: note: Assuming that condition 'spx->prec==spy->prec' is not redundant RediSearch-1.2.2/srcutil/lemon.c:1261:24: note: Condition 'spx->precprec' is always true RediSearch-1.2.2/srcutil/lemon.c:3604:10: style: Condition 'cp==0' is always false [knownConditionTrueFalse] RediSearch-1.2.2/srcutil/lemon.c:3673:5: error: Common realloc mistake: 'z' nulled but not freed upon failure [memleakOnRealloc] RediSearch-1.2.2/srcutil/lemon.c:987:5: warning: Either the condition '(stp)==0' is redundant or there is possible null pointer dereference: stp. [nullPointerRedundantCheck] RediSearch-1.2.2/srcutil/lemon.c:986:5: note: Assuming that condition '(stp)==0' is not redundant RediSearch-1.2.2/srcutil/lemon.c:987:5: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:988:5: warning: Either the condition '(stp)==0' is redundant or there is possible null pointer dereference: stp. [nullPointerRedundantCheck] RediSearch-1.2.2/srcutil/lemon.c:986:5: note: Assuming that condition '(stp)==0' is not redundant RediSearch-1.2.2/srcutil/lemon.c:988:5: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:989:5: warning: Either the condition '(stp)==0' is redundant or there is possible null pointer dereference: stp. [nullPointerRedundantCheck] RediSearch-1.2.2/srcutil/lemon.c:986:5: note: Assuming that condition '(stp)==0' is not redundant RediSearch-1.2.2/srcutil/lemon.c:989:5: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:990:5: warning: Either the condition '(stp)==0' is redundant or there is possible null pointer dereference: stp. [nullPointerRedundantCheck] RediSearch-1.2.2/srcutil/lemon.c:986:5: note: Assuming that condition '(stp)==0' is not redundant RediSearch-1.2.2/srcutil/lemon.c:990:5: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:991:22: warning: Either the condition '(stp)==0' is redundant or there is possible null pointer dereference: stp. [nullPointerRedundantCheck] RediSearch-1.2.2/srcutil/lemon.c:986:5: note: Assuming that condition '(stp)==0' is not redundant RediSearch-1.2.2/srcutil/lemon.c:991:22: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:1027:11: warning: Either the condition '(stp)==0' is redundant or there is possible null pointer dereference: stp. [nullPointerRedundantCheck] RediSearch-1.2.2/srcutil/lemon.c:986:5: note: Assuming that condition '(stp)==0' is not redundant RediSearch-1.2.2/srcutil/lemon.c:992:22: note: Calling function 'buildshifts', 2nd argument 'stp' value is 0 RediSearch-1.2.2/srcutil/lemon.c:1027:11: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:2420:18: warning: If memory allocation fails, then there is a possible null pointer dereference: msp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:2419:41: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:2419:17: note: Assignment 'msp=(struct symbol*)calloc(1,sizeof(*msp))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:2420:18: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:2421:11: warning: If memory allocation fails, then there is a possible null pointer dereference: msp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:2419:41: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:2419:17: note: Assignment 'msp=(struct symbol*)calloc(1,sizeof(*msp))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:2421:11: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:2422:11: warning: If memory allocation fails, then there is a possible null pointer dereference: msp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:2419:41: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:2419:17: note: Assignment 'msp=(struct symbol*)calloc(1,sizeof(*msp))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:2422:11: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:2423:11: warning: If memory allocation fails, then there is a possible null pointer dereference: msp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:2419:41: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:2419:17: note: Assignment 'msp=(struct symbol*)calloc(1,sizeof(*msp))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:2423:11: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:2424:11: warning: If memory allocation fails, then there is a possible null pointer dereference: msp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:2419:41: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:2419:17: note: Assignment 'msp=(struct symbol*)calloc(1,sizeof(*msp))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:2424:11: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:2425:11: warning: If memory allocation fails, then there is a possible null pointer dereference: msp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:2419:41: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:2419:17: note: Assignment 'msp=(struct symbol*)calloc(1,sizeof(*msp))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:2425:11: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:2425:23: warning: If memory allocation fails, then there is a possible null pointer dereference: origsp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:2419:41: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:2419:17: note: Assignment 'msp=(struct symbol*)calloc(1,sizeof(*msp))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:2416:28: note: msp is assigned 'psp->rhs[psp->nrhs-1]' here. RediSearch-1.2.2/srcutil/lemon.c:2418:35: note: Assignment 'origsp=msp', assigned value is symbolic=psp->rhs[psp->nrhs-1] RediSearch-1.2.2/srcutil/lemon.c:2424:26: note: msp->subsym[0] is assigned 'origsp' here. RediSearch-1.2.2/srcutil/lemon.c:2416:28: note: msp is assigned 'psp->rhs[psp->nrhs-1]' here. RediSearch-1.2.2/srcutil/lemon.c:2418:35: note: Assignment 'origsp=msp', assigned value is symbolic=psp->rhs[psp->nrhs-1] RediSearch-1.2.2/srcutil/lemon.c:2425:23: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:2428:9: warning: If memory allocation fails, then there is a possible null pointer dereference: msp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:2419:41: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:2419:17: note: Assignment 'msp=(struct symbol*)calloc(1,sizeof(*msp))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:2428:9: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:2429:9: warning: If memory allocation fails, then there is a possible null pointer dereference: msp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:2419:41: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:2419:17: note: Assignment 'msp=(struct symbol*)calloc(1,sizeof(*msp))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:2429:9: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:2429:50: warning: If memory allocation fails, then there is a possible null pointer dereference: msp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:2419:41: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:2419:17: note: Assignment 'msp=(struct symbol*)calloc(1,sizeof(*msp))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:2429:50: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:2430:34: warning: If memory allocation fails, then there is a possible null pointer dereference: msp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:2419:41: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:2419:17: note: Assignment 'msp=(struct symbol*)calloc(1,sizeof(*msp))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:2430:34: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:2431:9: warning: If memory allocation fails, then there is a possible null pointer dereference: msp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:2419:41: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:2419:17: note: Assignment 'msp=(struct symbol*)calloc(1,sizeof(*msp))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:2431:9: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:2431:21: warning: If memory allocation fails, then there is a possible null pointer dereference: msp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:2419:41: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:2419:17: note: Assignment 'msp=(struct symbol*)calloc(1,sizeof(*msp))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:2431:21: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:5115:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:5113:33: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:5113:10: note: Assignment 'sp=(struct symbol*)calloc(1,sizeof(struct symbol))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:5115:5: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:5116:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:5113:33: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:5113:10: note: Assignment 'sp=(struct symbol*)calloc(1,sizeof(struct symbol))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:5116:5: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:5117:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:5113:33: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:5113:10: note: Assignment 'sp=(struct symbol*)calloc(1,sizeof(struct symbol))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:5117:5: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:5118:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:5113:33: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:5113:10: note: Assignment 'sp=(struct symbol*)calloc(1,sizeof(struct symbol))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:5118:5: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:5119:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:5113:33: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:5113:10: note: Assignment 'sp=(struct symbol*)calloc(1,sizeof(struct symbol))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:5119:5: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:5120:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:5113:33: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:5113:10: note: Assignment 'sp=(struct symbol*)calloc(1,sizeof(struct symbol))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:5120:5: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:5121:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:5113:33: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:5113:10: note: Assignment 'sp=(struct symbol*)calloc(1,sizeof(struct symbol))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:5121:5: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:5122:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:5113:33: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:5113:10: note: Assignment 'sp=(struct symbol*)calloc(1,sizeof(struct symbol))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:5122:5: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:5123:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:5113:33: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:5113:10: note: Assignment 'sp=(struct symbol*)calloc(1,sizeof(struct symbol))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:5123:5: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:5124:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:5113:33: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:5113:10: note: Assignment 'sp=(struct symbol*)calloc(1,sizeof(struct symbol))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:5124:5: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:5125:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:5113:33: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:5113:10: note: Assignment 'sp=(struct symbol*)calloc(1,sizeof(struct symbol))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:5125:5: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:5126:5: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:5113:33: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:5113:10: note: Assignment 'sp=(struct symbol*)calloc(1,sizeof(struct symbol))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:5126:5: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:5127:22: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:5113:33: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:5113:10: note: Assignment 'sp=(struct symbol*)calloc(1,sizeof(struct symbol))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:5127:22: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:5129:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:5113:33: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:5113:10: note: Assignment 'sp=(struct symbol*)calloc(1,sizeof(struct symbol))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:5129:3: note: Null pointer dereference RediSearch-1.2.2/srcutil/lemon.c:2064:10: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] RediSearch-1.2.2/srcutil/lemon.c:2828:26: style:inconclusive: Function 'Parse' argument 1 names different: declaration 'lemp' definition 'gp'. [funcArgNamesDifferent] RediSearch-1.2.2/srcutil/lemon.c:209:26: note: Function 'Parse' argument 1 names different: declaration 'lemp' definition 'gp'. RediSearch-1.2.2/srcutil/lemon.c:2828:26: note: Function 'Parse' argument 1 names different: declaration 'lemp' definition 'gp'. RediSearch-1.2.2/srcutil/lemon.c:486:25: style: Local variable 'freelist' shadows outer variable [shadowVariable] RediSearch-1.2.2/srcutil/lemon.c:1289:23: note: Shadowed declaration RediSearch-1.2.2/srcutil/lemon.c:486:25: note: Shadow variable RediSearch-1.2.2/srcutil/lemon.c:784:32: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/srcutil/lemon.c:853:24: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:1000:32: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/srcutil/lemon.c:1000:50: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/srcutil/lemon.c:1104:35: style: Parameter 'lemp' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/srcutil/lemon.c:1226:18: style: Variable 'spx' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:1226:24: style: Variable 'spy' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:1544:35: style: Parameter 'z' can be declared as pointer to const. However it seems that 'handle_d_option' is a callback function, if 'z' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/srcutil/lemon.c:1638:29: note: You might need to cast the function pointer here RediSearch-1.2.2/srcutil/lemon.c:1544:35: note: Parameter 'z' can be declared as pointer to const RediSearch-1.2.2/srcutil/lemon.c:1554:35: style: Parameter 'z' can be declared as pointer to const. However it seems that 'handle_T_option' is a callback function, if 'z' is declared with const you might also need to cast function pointer(s). [constParameterCallback] RediSearch-1.2.2/srcutil/lemon.c:1653:28: note: You might need to cast the function pointer here RediSearch-1.2.2/srcutil/lemon.c:1554:35: note: Parameter 'z' can be declared as pointer to const RediSearch-1.2.2/srcutil/lemon.c:3049:9: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:3106:20: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:3124:18: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:3157:18: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:3228:21: style: Variable 'stp' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:3331:20: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:3354:20: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:3435:42: style: Parameter 'lemp' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/srcutil/lemon.c:3469:30: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/srcutil/lemon.c:3499:9: style: Variable 'tpltname' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:3500:9: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:3549:56: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/srcutil/lemon.c:3561:62: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/srcutil/lemon.c:3629:35: style: Parameter 'sp' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/srcutil/lemon.c:3629:53: style: Parameter 'lemp' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/srcutil/lemon.c:3899:16: style: Parameter 'rp' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/srcutil/lemon.c:3975:20: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:3994:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:4109:17: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:4110:17: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:4127:20: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:4493:22: style: Variable 'p' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:4532:22: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:4566:20: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:4721:21: style: Variable 'rp2' can be declared as pointer to const [constVariablePointer] RediSearch-1.2.2/srcutil/lemon.c:4937:30: style: Parameter 's2' can be declared as pointer to const [constParameterPointer] RediSearch-1.2.2/srcutil/lemon.c:5063:15: style: Variable 'oldnp' can be declared as pointer to const [constVariablePointer] diff: head RediSearch-1.2.2/src/aggregate/aggregate_request.c:276:19: style: Variable 'ctx' is assigned a value that is never used. [unreadVariable] head RediSearch-1.2.2/src/aggregate/group_by.c:239:24: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/group_by.c:233:22: note: Assignment 'g=malloc(sizeof(*g))', assigned value is 0 RediSearch-1.2.2/src/aggregate/group_by.c:239:24: note: Null pointer dereference head RediSearch-1.2.2/src/aggregate/reducers/count.c:9:13: style: Variable 'ba' is assigned a value that is never used. [unreadVariable] 2.17.0 RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:130:14: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:127:21: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:127:21: note: Assignment 'str=malloc(sizeof(hdr)+ctr->hll.size)', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:130:14: note: Null pointer addition head RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:130:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:127:21: note: Assuming allocation function fails RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:127:21: note: Assignment 'str=malloc(sizeof(hdr)+ctr->hll.size)', assigned value is 0 RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:130:14: note: Null pointer addition head RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:21:13: style: Variable 'ba' is assigned a value that is never used. [unreadVariable] head RediSearch-1.2.2/src/aggregate/reducers/count_distinct.c:82:13: style: Variable 'ba' is assigned a value that is never used. [unreadVariable] head RediSearch-1.2.2/src/aggregate/reducers/first_value.c:21:13: style: Variable 'ba' is assigned a value that is never used. [unreadVariable] head RediSearch-1.2.2/src/concurrent_ctx.c:86:50: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdCtx [nullPointerOutOfMemory] RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assuming allocation function fails RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assignment 'cmdCtx=malloc(sizeof(*cmdCtx))', assigned value is 0 RediSearch-1.2.2/src/concurrent_ctx.c:86:50: note: Null pointer dereference head RediSearch-1.2.2/src/concurrent_ctx.c:93:58: warning: If memory allocation fails, then there is a possible null pointer dereference: cmdCtx [nullPointerOutOfMemory] RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assuming allocation function fails RediSearch-1.2.2/src/concurrent_ctx.c:83:36: note: Assignment 'cmdCtx=malloc(sizeof(*cmdCtx))', assigned value is 0 RediSearch-1.2.2/src/concurrent_ctx.c:93:58: note: Null pointer dereference head RediSearch-1.2.2/src/dep/libnu/extra.c:137:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/extra.c:141:31: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/extra.c:146:34: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/extra.c:151:53: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/extra.c:158:48: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/strcoll.c:272:40: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/strcoll.c:313:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/strcoll.c:320:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/strcoll.c:327:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/strcoll.c:334:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/strcoll.c:341:25: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/strcoll.c:341:43: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/strcoll.c:350:25: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/strcoll.c:350:43: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/strcoll.c:359:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/strcoll.c:359:52: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/strcoll.c:368:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/strcoll.c:368:52: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/strings.c:66:29: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/strings.c:70:30: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/libnu/strings.c:74:33: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] head RediSearch-1.2.2/src/dep/miniz/miniz.c:6021:83: warning: Either the condition '!pZip' is redundant or there is possible null pointer dereference: pZip. [nullPointerRedundantCheck] RediSearch-1.2.2/src/dep/miniz/miniz.c:6043:10: note: Assuming that condition '!pZip' is not redundant RediSearch-1.2.2/src/dep/miniz/miniz.c:6021:83: note: Null pointer dereference head RediSearch-1.2.2/src/dep/triemap/test/minunit.h:54:2: error: #error "Unable to define timers for an unknown OS." [preprocessorErrorDirective] head RediSearch-1.2.2/src/dep/triemap/triemap.c:229:12: style: Variable 'c' is assigned a value that is never used. [unreadVariable] head RediSearch-1.2.2/src/dep/triemap/triemap.c:301:12: style: Variable 'c' is assigned a value that is never used. [unreadVariable] head RediSearch-1.2.2/src/dep/triemap/triemap.c:507:26: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:544:14: note: Calling function '__tmi_Push', 1st argument 'it' value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:507:26: note: Null pointer dereference head RediSearch-1.2.2/src/dep/triemap/triemap.c:516:13: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:544:14: note: Calling function '__tmi_Push', 1st argument 'it' value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:516:13: note: Null pointer dereference head RediSearch-1.2.2/src/dep/triemap/triemap.c:536:23: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:536:23: note: Null pointer dereference head RediSearch-1.2.2/src/dep/triemap/triemap.c:538:22: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:533:31: note: Assignment 'it=calloc(1,sizeof(struct TrieMapIterator))', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:538:22: note: Null pointer dereference 2.17.0 RediSearch-1.2.2/src/dep/triemap/triemap.c:690:16: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:686:21: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:686:21: note: Assignment 'buf=malloc(bufCap+1)', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:690:16: note: Null pointer addition head RediSearch-1.2.2/src/dep/triemap/triemap.c:690:16: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/dep/triemap/triemap.c:686:21: note: Assuming allocation function fails RediSearch-1.2.2/src/dep/triemap/triemap.c:686:21: note: Assignment 'buf=malloc(bufCap+1)', assigned value is 0 RediSearch-1.2.2/src/dep/triemap/triemap.c:690:16: note: Null pointer addition head RediSearch-1.2.2/src/doc_table.c:419:18: warning: If memory allocation fails, then there is a possible null pointer dereference: dmd [nullPointerOutOfMemory] RediSearch-1.2.2/src/doc_table.c:399:40: note: Assuming allocation function fails RediSearch-1.2.2/src/doc_table.c:399:40: note: Assignment 'dmd=calloc(1,sizeof(struct RSDocumentMetadata))', assigned value is 0 RediSearch-1.2.2/src/doc_table.c:419:18: note: Null pointer dereference head RediSearch-1.2.2/src/document.c:337:14: style: Variable 'stemmer' is assigned a value that is never used. [unreadVariable] head RediSearch-1.2.2/src/forward_index.c:127:10: style: Variable 'elemSize' is assigned a value that is never used. [unreadVariable] head RediSearch-1.2.2/src/forward_index.c:72:37: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/forward_index.c:83:32: note: Assuming allocation function fails RediSearch-1.2.2/src/forward_index.c:83:32: note: Assignment 'idx=malloc(sizeof(struct ForwardIndex))', assigned value is 0 RediSearch-1.2.2/src/forward_index.c:102:27: note: Calling function 'ForwardIndex_InitCommon', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/forward_index.c:72:37: note: Null pointer dereference head RediSearch-1.2.2/src/fragmenter.c:35:7: style: Variable 'firstOcurrence' is assigned a value that is never used. [unreadVariable] head RediSearch-1.2.2/src/index.c:819:17: warning: If memory allocation fails, then there is a possible null pointer dereference: nc [nullPointerOutOfMemory] RediSearch-1.2.2/src/index.c:815:36: note: Assuming allocation function fails RediSearch-1.2.2/src/index.c:815:36: note: Assignment 'nc=malloc(sizeof(*nc))', assigned value is 0 RediSearch-1.2.2/src/index.c:819:17: note: Null pointer dereference head RediSearch-1.2.2/src/indexer.c:419:13: style: Variable 'doc' is assigned a value that is never used. [unreadVariable] head RediSearch-1.2.2/src/indexer.c:546:19: warning: If memory allocation fails, then there is a possible null pointer dereference: indexer [nullPointerOutOfMemory] RediSearch-1.2.2/src/indexer.c:545:36: note: Assuming allocation function fails RediSearch-1.2.2/src/indexer.c:545:36: note: Assignment 'indexer=calloc(1,sizeof(*indexer))', assigned value is 0 RediSearch-1.2.2/src/indexer.c:546:19: note: Null pointer dereference 2.17.0 RediSearch-1.2.2/src/indexer.c:550:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mergedHash [valueFlowBailoutIncompleteVar] head RediSearch-1.2.2/src/indexer.c:561:77: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: indexer [nullPointerOutOfMemory] RediSearch-1.2.2/src/indexer.c:545:36: note: Assuming allocation function fails RediSearch-1.2.2/src/indexer.c:545:36: note: Assignment 'indexer=calloc(1,sizeof(*indexer))', assigned value is 0 RediSearch-1.2.2/src/indexer.c:561:77: note: Null pointer dereference head RediSearch-1.2.2/src/inverted_index.c:288:14: style: Variable 'wholeNum' is assigned a value that is never used. [unreadVariable] head RediSearch-1.2.2/src/inverted_index.c:33:28: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assignment 'idx=malloc(sizeof(struct InvertedIndex))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:48:28: note: Calling function 'InvertedIndex_AddBlock', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/inverted_index.c:33:28: note: Null pointer dereference head RediSearch-1.2.2/src/inverted_index.c:33:41: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assignment 'idx=malloc(sizeof(struct InvertedIndex))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:48:28: note: Calling function 'InvertedIndex_AddBlock', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/inverted_index.c:33:41: note: Null pointer dereference head RediSearch-1.2.2/src/inverted_index.c:34:15: warning: If memory allocation fails, then there is a possible null pointer dereference: idx [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:40:33: note: Assignment 'idx=malloc(sizeof(struct InvertedIndex))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:48:28: note: Calling function 'InvertedIndex_AddBlock', 1st argument 'idx' value is 0 RediSearch-1.2.2/src/inverted_index.c:34:15: note: Null pointer dereference head RediSearch-1.2.2/src/inverted_index.c:833:17: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assignment 'ret=malloc(sizeof(struct IndexReader))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:833:17: note: Null pointer dereference head RediSearch-1.2.2/src/inverted_index.c:834:29: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assuming allocation function fails RediSearch-1.2.2/src/inverted_index.c:824:31: note: Assignment 'ret=malloc(sizeof(struct IndexReader))', assigned value is 0 RediSearch-1.2.2/src/inverted_index.c:834:29: note: Null pointer dereference head RediSearch-1.2.2/src/query_plan.c:237:47: warning: If memory allocation fails, then there is a possible null pointer dereference: plan [nullPointerOutOfMemory] RediSearch-1.2.2/src/query_plan.c:250:27: note: Assuming allocation function fails RediSearch-1.2.2/src/query_plan.c:250:27: note: Assignment 'plan=calloc(1,sizeof(*plan))', assigned value is 0 RediSearch-1.2.2/src/query_plan.c:277:43: note: Calling function 'queryPlan_EvalQuery', 1st argument 'plan' value is 0 RediSearch-1.2.2/src/query_plan.c:237:47: note: Null pointer dereference 2.17.0 RediSearch-1.2.2/src/redis_index.c:111:14: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/redis_index.c:105:26: note: Assuming allocation function fails RediSearch-1.2.2/src/redis_index.c:105:18: note: Assignment 'buf=bufDyn=calloc(1,nameLen+len+10)', assigned value is 0 RediSearch-1.2.2/src/redis_index.c:111:14: note: Null pointer addition head RediSearch-1.2.2/src/redis_index.c:111:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/redis_index.c:105:26: note: Assuming allocation function fails RediSearch-1.2.2/src/redis_index.c:105:18: note: Assignment 'buf=bufDyn=calloc(1,nameLen+len+10)', assigned value is 0 RediSearch-1.2.2/src/redis_index.c:111:14: note: Null pointer addition 2.17.0 RediSearch-1.2.2/src/redis_index.c:114:14: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/redis_index.c:105:26: note: Assuming allocation function fails RediSearch-1.2.2/src/redis_index.c:105:18: note: Assignment 'buf=bufDyn=calloc(1,nameLen+len+10)', assigned value is 0 RediSearch-1.2.2/src/redis_index.c:114:14: note: Null pointer addition head RediSearch-1.2.2/src/redis_index.c:114:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/redis_index.c:105:26: note: Assuming allocation function fails RediSearch-1.2.2/src/redis_index.c:105:18: note: Assignment 'buf=bufDyn=calloc(1,nameLen+len+10)', assigned value is 0 RediSearch-1.2.2/src/redis_index.c:114:14: note: Null pointer addition 2.17.0 RediSearch-1.2.2/src/redis_index.c:83:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable InvertedIndex_Free [valueFlowBailoutIncompleteVar] head RediSearch-1.2.2/src/search_request.c:229:10: style: Variable 'foundIndex' is assigned a value that is never used. [unreadVariable] head RediSearch-1.2.2/src/search_request.c:310:19: style: Variable 'ctx' is assigned a value that is never used. [unreadVariable] 2.17.0 RediSearch-1.2.2/src/sortable.c:41:21: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/sortable.c:39:33: note: Assuming allocation function fails RediSearch-1.2.2/src/sortable.c:39:33: note: Assignment 'lower_buffer=calloc(buflen,1)', assigned value is 0 RediSearch-1.2.2/src/sortable.c:40:15: note: lower is assigned 'lower_buffer' here. RediSearch-1.2.2/src/sortable.c:41:21: note: Null pointer addition head RediSearch-1.2.2/src/sortable.c:41:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/sortable.c:39:33: note: Assuming allocation function fails RediSearch-1.2.2/src/sortable.c:39:33: note: Assignment 'lower_buffer=calloc(buflen,1)', assigned value is 0 RediSearch-1.2.2/src/sortable.c:40:15: note: lower is assigned 'lower_buffer' here. RediSearch-1.2.2/src/sortable.c:41:21: note: Null pointer addition head RediSearch-1.2.2/src/sortable.c:44:10: style: Variable 'off' is assigned a value that is never used. [unreadVariable] head RediSearch-1.2.2/src/spec.c:746:26: warning: If memory allocation fails, then there is a possible null pointer dereference: sp [nullPointerOutOfMemory] RediSearch-1.2.2/src/spec.c:734:28: note: Assuming allocation function fails RediSearch-1.2.2/src/spec.c:734:28: note: Assignment 'sp=calloc(1,sizeof(struct IndexSpec))', assigned value is 0 RediSearch-1.2.2/src/spec.c:746:26: note: Null pointer dereference head RediSearch-1.2.2/src/spec.c:747:7: style: Variable 'maxSortIdx' is assigned a value that is never used. [unreadVariable] 2.17.0 RediSearch-1.2.2/src/spec.c:828:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IndexSpec_Free [valueFlowBailoutIncompleteVar] head RediSearch-1.2.2/src/stemmer.c:82:21: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] RediSearch-1.2.2/src/stemmer.c:79:36: note: Assuming allocation function fails RediSearch-1.2.2/src/stemmer.c:79:36: note: Assignment 'ctx=malloc(sizeof(*ctx))', assigned value is 0 RediSearch-1.2.2/src/stemmer.c:82:21: note: Null pointer dereference 2.17.0 RediSearch-1.2.2/src/tag_index.c:306:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TagIndex_MemUsage [valueFlowBailoutIncompleteVar] head RediSearch-1.2.2/src/tests/test_aggregate.c:159:7: style: Variable 'i' is assigned a value that is never used. [unreadVariable] head RediSearch-1.2.2/src/tests/test_blkalloc.c:31:9: style: Variable 'buf4' is assigned a value that is never used. [unreadVariable] head RediSearch-1.2.2/src/tests/test_expr.c:95:7: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] head RediSearch-1.2.2/src/tests/test_index.c:854:9: style: Variable '_' is assigned a value that is never used. [unreadVariable] 2.17.0 RediSearch-1.2.2/src/util/khtable.c:62:45: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/util/khtable.c:56:37: note: Assuming allocation function fails RediSearch-1.2.2/src/util/khtable.c:56:37: note: Assignment 'newEntries=calloc(newCapacity,sizeof(*table->buckets))', assigned value is 0 RediSearch-1.2.2/src/util/khtable.c:62:45: note: Null pointer addition head RediSearch-1.2.2/src/util/khtable.c:62:45: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] RediSearch-1.2.2/src/util/khtable.c:56:37: note: Assuming allocation function fails RediSearch-1.2.2/src/util/khtable.c:56:37: note: Assignment 'newEntries=calloc(newCapacity,sizeof(*table->buckets))', assigned value is 0 RediSearch-1.2.2/src/util/khtable.c:62:45: note: Null pointer addition head RediSearch-1.2.2/src/value.h:253:19: style: Variable 'p' is assigned a value that is never used. [unreadVariable] head RediSearch-1.2.2/srcutil/lemon.c:2429:50: warning: If memory allocation fails, then there is a possible null pointer dereference: msp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:2419:41: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:2419:17: note: Assignment 'msp=(struct symbol*)calloc(1,sizeof(*msp))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:2429:50: note: Null pointer dereference head RediSearch-1.2.2/srcutil/lemon.c:2431:21: warning: If memory allocation fails, then there is a possible null pointer dereference: msp [nullPointerOutOfMemory] RediSearch-1.2.2/srcutil/lemon.c:2419:41: note: Assuming allocation function fails RediSearch-1.2.2/srcutil/lemon.c:2419:17: note: Assignment 'msp=(struct symbol*)calloc(1,sizeof(*msp))', assigned value is 0 RediSearch-1.2.2/srcutil/lemon.c:2431:21: note: Null pointer dereference DONE