2025-09-03 05:17 ftp://ftp.de.debian.org/debian/pool/main/r/r-cran-rpostgresql/r-cran-rpostgresql_0.7-7+dfsg.orig.tar.xz cppcheck-options: --library=posix --library=gnu --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 -j1 platform: Linux-6.8.0-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: e6e045f (2025-09-02 21:05:14 +0200) count: 2 127 elapsed-time: 0.1 0.8 head-timing-info: old-timing-info: head results: RPostgreSQL/src/S4R.h:38:0: error: failed to evaluate #if condition, undefined function-like macro invocation: R_Version( ... ) [preprocessorErrorDirective] RPostgreSQL/src/S4R.h:38:10: error: failed to evaluate #if condition, undefined function-like macro invocation: R_Version( ... ) [preprocessorErrorDirective] diff: 2.18.0 RPostgreSQL/src/RS-DBI.c:1030:36: style:inconclusive: Function 'RS_DBI_connectionInfo' argument 1 names different: declaration 'con_Handle' definition 'conHandle'. [funcArgNamesDifferent] RPostgreSQL/src/RS-DBI.h:178:50: note: Function 'RS_DBI_connectionInfo' argument 1 names different: declaration 'con_Handle' definition 'conHandle'. RPostgreSQL/src/RS-DBI.c:1030:36: note: Function 'RS_DBI_connectionInfo' argument 1 names different: declaration 'con_Handle' definition 'conHandle'. 2.18.0 RPostgreSQL/src/RS-DBI.c:1032:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-DBI.c:1069:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-DBI.c:1102:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-DBI.c:1137:24: style:inconclusive: Function 'RS_DBI_getTypeName' argument 1 names different: declaration 'typeCode' definition 't'. [funcArgNamesDifferent] RPostgreSQL/src/RS-DBI.h:237:40: note: Function 'RS_DBI_getTypeName' argument 1 names different: declaration 'typeCode' definition 't'. RPostgreSQL/src/RS-DBI.c:1137:24: note: Function 'RS_DBI_getTypeName' argument 1 names different: declaration 'typeCode' definition 't'. 2.18.0 RPostgreSQL/src/RS-DBI.c:1172:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-DBI.c:1223:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-DBI.c:1238:10: style: Variable 'i' can be declared as pointer to const [constVariablePointer] 2.18.0 RPostgreSQL/src/RS-DBI.c:1239:11: style: Variable 'c' can be declared as pointer to const [constVariablePointer] 2.18.0 RPostgreSQL/src/RS-DBI.c:1246:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-DBI.c:153:23: error: Uninitialized variable: msg [uninitvar] 2.18.0 RPostgreSQL/src/RS-DBI.c:164:5: warning: If memory allocation fails, then there is a possible null pointer dereference: con [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:158:39: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:158:11: note: Assignment 'con=(struct RS_DBI_connection*)malloc(sizeof(struct RS_DBI_connection))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:164:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:166:5: warning: If memory allocation fails, then there is a possible null pointer dereference: con [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:158:39: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:158:11: note: Assignment 'con=(struct RS_DBI_connection*)malloc(sizeof(struct RS_DBI_connection))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:166:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:167:5: warning: If memory allocation fails, then there is a possible null pointer dereference: con [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:158:39: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:158:11: note: Assignment 'con=(struct RS_DBI_connection*)malloc(sizeof(struct RS_DBI_connection))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:167:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:168:5: warning: If memory allocation fails, then there is a possible null pointer dereference: con [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:158:39: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:158:11: note: Assignment 'con=(struct RS_DBI_connection*)malloc(sizeof(struct RS_DBI_connection))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:168:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:169:5: warning: If memory allocation fails, then there is a possible null pointer dereference: con [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:158:39: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:158:11: note: Assignment 'con=(struct RS_DBI_connection*)malloc(sizeof(struct RS_DBI_connection))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:169:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:170:5: warning: If memory allocation fails, then there is a possible null pointer dereference: con [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:158:39: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:158:11: note: Assignment 'con=(struct RS_DBI_connection*)malloc(sizeof(struct RS_DBI_connection))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:170:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:171:5: warning: If memory allocation fails, then there is a possible null pointer dereference: con [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:158:39: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:158:11: note: Assignment 'con=(struct RS_DBI_connection*)malloc(sizeof(struct RS_DBI_connection))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:171:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:174:5: warning: If memory allocation fails, then there is a possible null pointer dereference: con [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:158:39: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:158:11: note: Assignment 'con=(struct RS_DBI_connection*)malloc(sizeof(struct RS_DBI_connection))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:174:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:176:10: warning: If memory allocation fails, then there is a possible null pointer dereference: con [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:158:39: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:158:11: note: Assignment 'con=(struct RS_DBI_connection*)malloc(sizeof(struct RS_DBI_connection))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:176:10: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:184:10: error: Dereferencing 'con' after it is deallocated / released [deallocuse] 2.18.0 RPostgreSQL/src/RS-DBI.c:187:9: error: Memory pointed to by 'con' is freed twice. [doubleFree] RPostgreSQL/src/RS-DBI.c:179:9: note: Memory pointed to by 'con' is freed twice. RPostgreSQL/src/RS-DBI.c:187:9: note: Memory pointed to by 'con' is freed twice. 2.18.0 RPostgreSQL/src/RS-DBI.c:289:5: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:283:41: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:283:14: note: Assignment 'result=(struct RS_DBI_resultSet*)malloc(sizeof(struct RS_DBI_resultSet))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:289:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:290:5: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:283:41: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:283:14: note: Assignment 'result=(struct RS_DBI_resultSet*)malloc(sizeof(struct RS_DBI_resultSet))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:290:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:291:5: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:283:41: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:283:14: note: Assignment 'result=(struct RS_DBI_resultSet*)malloc(sizeof(struct RS_DBI_resultSet))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:291:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:292:5: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:283:41: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:283:14: note: Assignment 'result=(struct RS_DBI_resultSet*)malloc(sizeof(struct RS_DBI_resultSet))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:292:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:293:5: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:283:41: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:283:14: note: Assignment 'result=(struct RS_DBI_resultSet*)malloc(sizeof(struct RS_DBI_resultSet))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:293:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:294:5: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:283:41: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:283:14: note: Assignment 'result=(struct RS_DBI_resultSet*)malloc(sizeof(struct RS_DBI_resultSet))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:294:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:295:5: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:283:41: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:283:14: note: Assignment 'result=(struct RS_DBI_resultSet*)malloc(sizeof(struct RS_DBI_resultSet))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:295:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:296:5: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:283:41: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:283:14: note: Assignment 'result=(struct RS_DBI_resultSet*)malloc(sizeof(struct RS_DBI_resultSet))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:296:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:297:5: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:283:41: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:283:14: note: Assignment 'result=(struct RS_DBI_resultSet*)malloc(sizeof(struct RS_DBI_resultSet))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:297:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:298:5: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:283:41: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:283:14: note: Assignment 'result=(struct RS_DBI_resultSet*)malloc(sizeof(struct RS_DBI_resultSet))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:298:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:299:5: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:283:41: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:283:14: note: Assignment 'result=(struct RS_DBI_resultSet*)malloc(sizeof(struct RS_DBI_resultSet))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:299:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:360:5: warning: If memory allocation fails, then there is a possible null pointer dereference: flds [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:354:36: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:354:12: note: Assignment 'flds=(struct RS_DBI_fields*)malloc(sizeof(struct RS_DBI_fields))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:360:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:361:5: warning: If memory allocation fails, then there is a possible null pointer dereference: flds [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:354:36: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:354:12: note: Assignment 'flds=(struct RS_DBI_fields*)malloc(sizeof(struct RS_DBI_fields))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:361:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:362:5: warning: If memory allocation fails, then there is a possible null pointer dereference: flds [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:354:36: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:354:12: note: Assignment 'flds=(struct RS_DBI_fields*)malloc(sizeof(struct RS_DBI_fields))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:362:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:363:5: warning: If memory allocation fails, then there is a possible null pointer dereference: flds [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:354:36: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:354:12: note: Assignment 'flds=(struct RS_DBI_fields*)malloc(sizeof(struct RS_DBI_fields))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:363:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:364:5: warning: If memory allocation fails, then there is a possible null pointer dereference: flds [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:354:36: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:354:12: note: Assignment 'flds=(struct RS_DBI_fields*)malloc(sizeof(struct RS_DBI_fields))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:364:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:365:5: warning: If memory allocation fails, then there is a possible null pointer dereference: flds [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:354:36: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:354:12: note: Assignment 'flds=(struct RS_DBI_fields*)malloc(sizeof(struct RS_DBI_fields))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:365:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:366:5: warning: If memory allocation fails, then there is a possible null pointer dereference: flds [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:354:36: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:354:12: note: Assignment 'flds=(struct RS_DBI_fields*)malloc(sizeof(struct RS_DBI_fields))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:366:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:367:5: warning: If memory allocation fails, then there is a possible null pointer dereference: flds [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:354:36: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:354:12: note: Assignment 'flds=(struct RS_DBI_fields*)malloc(sizeof(struct RS_DBI_fields))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:367:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:368:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEXPTYPE [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-DBI.c:368:5: warning: If memory allocation fails, then there is a possible null pointer dereference: flds [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:354:36: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:354:12: note: Assignment 'flds=(struct RS_DBI_fields*)malloc(sizeof(struct RS_DBI_fields))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:368:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:407:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] 2.18.0 RPostgreSQL/src/RS-DBI.c:418:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-DBI.c:473:12: style: Variable 'fld_Sclass' can be declared as pointer to const [constVariablePointer] 2.18.0 RPostgreSQL/src/RS-DBI.c:486:18: warning: Null pointer dereference: flds [ctunullpointer] RPostgreSQL/src/RS-PostgreSQL.c:1240:9: note: Assuming that condition '!flds' is not redundant RPostgreSQL/src/RS-PostgreSQL.c:1249:23: note: Calling function RS_DBI_allocOutput, 2nd argument is null RPostgreSQL/src/RS-DBI.c:486:18: note: Dereferencing argument flds that is null 2.18.0 RPostgreSQL/src/RS-DBI.c:547:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-DBI.c:594:46: style:inconclusive: Function 'RS_DBI_errorMessage' argument 2 names different: declaration 'exceptionType' definition 'exception_type'. [funcArgNamesDifferent] RPostgreSQL/src/RS-DBI.h:221:55: note: Function 'RS_DBI_errorMessage' argument 2 names different: declaration 'exceptionType' definition 'exception_type'. RPostgreSQL/src/RS-DBI.c:594:46: note: Function 'RS_DBI_errorMessage' argument 2 names different: declaration 'exceptionType' definition 'exception_type'. 2.18.0 RPostgreSQL/src/RS-DBI.c:623:18: error: Returning pointer to local variable 'buffer' that will be invalid when returning. [returnDanglingLifetime] RPostgreSQL/src/RS-DBI.c:623:19: note: Passed to 'strcpy'. RPostgreSQL/src/RS-DBI.c:617:11: note: Variable created here. RPostgreSQL/src/RS-DBI.c:623:18: note: Returning pointer to local variable 'buffer' that will be invalid when returning. 2.18.0 RPostgreSQL/src/RS-DBI.c:623:19: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:619:29: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:619:14: note: Assignment 'buffer=(char*)malloc((unsigned long)strlen(str)+1)', assigned value is 0 RPostgreSQL/src/RS-DBI.c:623:19: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:643:20: warning: If memory allocation fails, then there is a possible null pointer dereference: str_buffer [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:632:33: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:632:18: note: Assignment 'str_buffer=(char*)malloc(len+1)', assigned value is 0 RPostgreSQL/src/RS-DBI.c:638:13: note: Assuming condition is false RPostgreSQL/src/RS-DBI.c:643:20: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:665:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-DBI.c:698:46: style: Parameter 'types' can be declared as pointer to const [constParameterPointer] 2.18.0 RPostgreSQL/src/RS-DBI.c:698:59: style: Parameter 'lengths' can be declared as pointer to const [constParameterPointer] 2.18.0 RPostgreSQL/src/RS-DBI.c:700:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-DBI.c:71:5: warning: If memory allocation fails, then there is a possible null pointer dereference: mgr [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:52:40: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:52:15: note: Assignment 'mgr=(struct RS_DBI_manager*)malloc(sizeof(struct RS_DBI_manager))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:71:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:72:5: warning: If memory allocation fails, then there is a possible null pointer dereference: mgr [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:52:40: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:52:15: note: Assignment 'mgr=(struct RS_DBI_manager*)malloc(sizeof(struct RS_DBI_manager))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:72:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:73:5: warning: If memory allocation fails, then there is a possible null pointer dereference: mgr [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:52:40: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:52:15: note: Assignment 'mgr=(struct RS_DBI_manager*)malloc(sizeof(struct RS_DBI_manager))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:73:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:745:31: style:inconclusive: Function 'RS_DBI_SclassNames' argument 1 names different: declaration 'types' definition 'type'. [funcArgNamesDifferent] RPostgreSQL/src/RS-DBI.h:239:45: note: Function 'RS_DBI_SclassNames' argument 1 names different: declaration 'types' definition 'type'. RPostgreSQL/src/RS-DBI.c:745:31: note: Function 'RS_DBI_SclassNames' argument 1 names different: declaration 'types' definition 'type'. 2.18.0 RPostgreSQL/src/RS-DBI.c:748:10: style: Variable 'typeCodes' can be declared as pointer to const [constVariablePointer] 2.18.0 RPostgreSQL/src/RS-DBI.c:74:5: warning: If memory allocation fails, then there is a possible null pointer dereference: mgr [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:52:40: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:52:15: note: Assignment 'mgr=(struct RS_DBI_manager*)malloc(sizeof(struct RS_DBI_manager))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:74:5: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:75:10: warning: If memory allocation fails, then there is a possible null pointer dereference: mgr [nullPointerOutOfMemory] RPostgreSQL/src/RS-DBI.c:52:40: note: Assuming allocation function fails RPostgreSQL/src/RS-DBI.c:52:15: note: Assignment 'mgr=(struct RS_DBI_manager*)malloc(sizeof(struct RS_DBI_manager))', assigned value is 0 RPostgreSQL/src/RS-DBI.c:75:10: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-DBI.c:773:24: style:inconclusive: Function 'RS_DBI_asMgrHandle' argument 1 names different: declaration 'pid' definition 'mgrId'. [funcArgNamesDifferent] RPostgreSQL/src/RS-DBI.h:170:40: note: Function 'RS_DBI_asMgrHandle' argument 1 names different: declaration 'pid' definition 'mgrId'. RPostgreSQL/src/RS-DBI.c:773:24: note: Function 'RS_DBI_asMgrHandle' argument 1 names different: declaration 'pid' definition 'mgrId'. 2.18.0 RPostgreSQL/src/RS-DBI.c:796:24: style:inconclusive: Function 'RS_DBI_asResHandle' argument 1 names different: declaration 'pid' definition 'mgrId'. [funcArgNamesDifferent] RPostgreSQL/src/RS-DBI.h:184:40: note: Function 'RS_DBI_asResHandle' argument 1 names different: declaration 'pid' definition 'mgrId'. RPostgreSQL/src/RS-DBI.c:796:24: note: Function 'RS_DBI_asResHandle' argument 1 names different: declaration 'pid' definition 'mgrId'. 2.18.0 RPostgreSQL/src/RS-DBI.c:81:10: error: Dereferencing 'mgr' after it is deallocated / released [deallocuse] 2.18.0 RPostgreSQL/src/RS-DBI.c:824:35: style:inconclusive: Function 'RS_DBI_getConnection' argument 1 names different: declaration 'handle' definition 'conHandle'. [funcArgNamesDifferent] RPostgreSQL/src/RS-DBI.h:176:57: note: Function 'RS_DBI_getConnection' argument 1 names different: declaration 'handle' definition 'conHandle'. RPostgreSQL/src/RS-DBI.c:824:35: note: Function 'RS_DBI_getConnection' argument 1 names different: declaration 'handle' definition 'conHandle'. 2.18.0 RPostgreSQL/src/RS-DBI.c:82:9: error: Memory pointed to by 'drvName' is freed twice. [doubleFree] RPostgreSQL/src/RS-DBI.c:76:9: note: Memory pointed to by 'drvName' is freed twice. RPostgreSQL/src/RS-DBI.c:82:9: note: Memory pointed to by 'drvName' is freed twice. 2.18.0 RPostgreSQL/src/RS-DBI.c:84:9: error: Memory pointed to by 'mgr' is freed twice. [doubleFree] RPostgreSQL/src/RS-DBI.c:77:9: note: Memory pointed to by 'mgr' is freed twice. RPostgreSQL/src/RS-DBI.c:84:9: note: Memory pointed to by 'mgr' is freed twice. 2.18.0 RPostgreSQL/src/RS-DBI.c:865:23: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] 2.18.0 RPostgreSQL/src/RS-DBI.c:880:21: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] 2.18.0 RPostgreSQL/src/RS-DBI.c:899:26: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] 2.18.0 RPostgreSQL/src/RS-DBI.c:994:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PQescape.c:106:29: warning: Either the condition '!rawbuffer' is redundant or there is possible null pointer dereference: rawbuffer. [nullPointerRedundantCheck] RPostgreSQL/src/RS-PQescape.c:104:12: note: Assuming that condition '!rawbuffer' is not redundant RPostgreSQL/src/RS-PQescape.c:106:29: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-PQescape.c:19:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PQescape.c:50:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PQescape.c:90:9: warning: Either the condition '!strbuffer' is redundant or there is possible null pointer dereference: strbuffer. [nullPointerRedundantCheck] RPostgreSQL/src/RS-PQescape.c:89:8: note: Assuming that condition '!strbuffer' is not redundant RPostgreSQL/src/RS-PQescape.c:90:9: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-PQescape.c:95:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAWSXP [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:1014:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:1046:36: style:inconclusive: Function 'RS_PostgreSQL_typeNames' argument 1 names different: declaration 'typeIds' definition 'type'. [funcArgNamesDifferent] RPostgreSQL/src/RS-PostgreSQL.h:180:50: note: Function 'RS_PostgreSQL_typeNames' argument 1 names different: declaration 'typeIds' definition 'type'. RPostgreSQL/src/RS-PostgreSQL.c:1046:36: note: Function 'RS_PostgreSQL_typeNames' argument 1 names different: declaration 'typeIds' definition 'type'. 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:1049:13: style: Variable 'typeCodes' can be declared as pointer to const [constVariablePointer] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:1126:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:1145:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:1162:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:1189:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:1243:18: warning: Either the condition '!flds' is redundant or there is possible null pointer dereference: flds. [nullPointerRedundantCheck] RPostgreSQL/src/RS-PostgreSQL.c:1240:9: note: Assuming that condition '!flds' is not redundant RPostgreSQL/src/RS-PostgreSQL.c:1243:18: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:1244:18: warning: Either the condition '!flds' is redundant or there is possible null pointer dereference: flds. [nullPointerRedundantCheck] RPostgreSQL/src/RS-PostgreSQL.c:1240:9: note: Assuming that condition '!flds' is not redundant RPostgreSQL/src/RS-PostgreSQL.c:1244:18: note: Null pointer dereference 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:1253:13: style: Redundant initialization for 'max_rec'. The initialized value is overwritten before it is read. [redundantInitialization] RPostgreSQL/src/RS-PostgreSQL.c:1205:17: note: max_rec is initialized RPostgreSQL/src/RS-PostgreSQL.c:1253:13: note: max_rec is overwritten 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:1446:73: style: Argument 'i-i' to function add_group is always 0. It does not matter what value 'i' has. [knownArgument] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:1446:73: style: Same expression on both sides of '-'. [duplicateExpression] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:1483:60: style:inconclusive: Function 'check_groupEvents' argument 3 names different: declaration 'row' definition 'irow'. [funcArgNamesDifferent] RPostgreSQL/src/RS-PostgreSQL.c:1101:73: note: Function 'check_groupEvents' argument 3 names different: declaration 'row' definition 'irow'. RPostgreSQL/src/RS-PostgreSQL.c:1483:60: note: Function 'check_groupEvents' argument 3 names different: declaration 'row' definition 'irow'. 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:1483:70: style:inconclusive: Function 'check_groupEvents' argument 4 names different: declaration 'col' definition 'jcol'. [funcArgNamesDifferent] RPostgreSQL/src/RS-PostgreSQL.c:1101:82: note: Function 'check_groupEvents' argument 4 names different: declaration 'col' definition 'jcol'. RPostgreSQL/src/RS-PostgreSQL.c:1483:70: note: Function 'check_groupEvents' argument 4 names different: declaration 'col' definition 'jcol'. 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:151:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:1524:60: style: Parameter 'fld_Sclass' can be declared as pointer to const [constParameterPointer] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:1524:76: style:inconclusive: Function 'add_group' argument 4 names different: declaration 'group' definition 'group_field'. [funcArgNamesDifferent] RPostgreSQL/src/RS-PostgreSQL.c:1100:81: note: Function 'add_group' argument 4 names different: declaration 'group' definition 'group_field'. RPostgreSQL/src/RS-PostgreSQL.c:1524:76: note: Function 'add_group' argument 4 names different: declaration 'group' definition 'group_field'. 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:160:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:183:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:205:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:286:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:360:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:397:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:437:9: error: Memory pointed to by 'dyn_statement' is freed twice. [doubleFree] RPostgreSQL/src/RS-PostgreSQL.c:418:13: note: Memory pointed to by 'dyn_statement' is freed twice. RPostgreSQL/src/RS-PostgreSQL.c:437:9: note: Memory pointed to by 'dyn_statement' is freed twice. 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:466:9: error: Memory pointed to by 'dyn_statement' is freed twice. [doubleFree] RPostgreSQL/src/RS-PostgreSQL.c:418:13: note: Memory pointed to by 'dyn_statement' is freed twice. RPostgreSQL/src/RS-PostgreSQL.c:466:9: note: Memory pointed to by 'dyn_statement' is freed twice. 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:494:5: error: Memory pointed to by 'dyn_statement' is freed twice. [doubleFree] RPostgreSQL/src/RS-PostgreSQL.c:418:13: note: Memory pointed to by 'dyn_statement' is freed twice. RPostgreSQL/src/RS-PostgreSQL.c:494:5: note: Memory pointed to by 'dyn_statement' is freed twice. 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:501:47: style:inconclusive: Function 'RS_PostgreSQL_createDataMappings' argument 1 names different: declaration 'resHandle' definition 'rsHandle'. [funcArgNamesDifferent] RPostgreSQL/src/RS-PostgreSQL.h:94:66: note: Function 'RS_PostgreSQL_createDataMappings' argument 1 names different: declaration 'resHandle' definition 'rsHandle'. RPostgreSQL/src/RS-PostgreSQL.c:501:47: note: Function 'RS_PostgreSQL_createDataMappings' argument 1 names different: declaration 'resHandle' definition 'rsHandle'. 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:578:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LGLSXP [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:625:24: style: Variable 'typename' can be declared as pointer to const [constVariablePointer] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:626:24: style: Variable 'typecat' can be declared as pointer to const [constVariablePointer] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:656:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:663:12: style: Variable 'fld_Sclass' can be declared as pointer to const [constVariablePointer] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:843:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:877:41: style:inconclusive: Function 'RS_PostgreSQL_closeResultSet' argument 1 names different: declaration 'rsHandle' definition 'resHandle'. [funcArgNamesDifferent] RPostgreSQL/src/RS-PostgreSQL.h:72:57: note: Function 'RS_PostgreSQL_closeResultSet' argument 1 names different: declaration 'rsHandle' definition 'resHandle'. RPostgreSQL/src/RS-PostgreSQL.c:877:41: note: Function 'RS_PostgreSQL_closeResultSet' argument 1 names different: declaration 'rsHandle' definition 'resHandle'. 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:879:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:903:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-PostgreSQL.c:954:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-pgsql-copy.c:113:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_LOGICAL [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-pgsql-copy.c:159:16: style: Variable 'cbuf' can be declared as pointer to const [constVariablePointer] 2.18.0 RPostgreSQL/src/RS-pgsql-copy.c:207:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-pgsql-copy.c:239:16: style: Variable 'pqerrmsg' can be declared as pointer to const [constVariablePointer] 2.18.0 RPostgreSQL/src/RS-pgsql-copy.c:241:16: style: Variable 'format' can be declared as pointer to const [constVariablePointer] 2.18.0 RPostgreSQL/src/RS-pgsql-copy.c:252:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-pgsql-copy.c:38:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-pgsql-getResult.c:36:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-pgsql-pqexec.c:43:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] 2.18.0 RPostgreSQL/src/RS-pgsql-pqexec.c:81:9: error: Memory pointed to by 'dyn_statement' is freed twice. [doubleFree] RPostgreSQL/src/RS-pgsql-pqexec.c:66:9: note: Memory pointed to by 'dyn_statement' is freed twice. RPostgreSQL/src/RS-pgsql-pqexec.c:81:9: note: Memory pointed to by 'dyn_statement' is freed twice. 2.18.0 RPostgreSQL/src/RS-pgsql-pqexec.c:95:5: error: Memory pointed to by 'dyn_statement' is freed twice. [doubleFree] RPostgreSQL/src/RS-pgsql-pqexec.c:66:9: note: Memory pointed to by 'dyn_statement' is freed twice. RPostgreSQL/src/RS-pgsql-pqexec.c:95:5: note: Memory pointed to by 'dyn_statement' is freed twice. 2.18.0 RPostgreSQL/src/RS-pgsql-pqexecparams.c:22:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_EVALUATOR [valueFlowBailoutIncompleteVar] head RPostgreSQL/src/S4R.h:38:0: error: failed to evaluate #if condition, undefined function-like macro invocation: R_Version( ... ) [preprocessorErrorDirective] head RPostgreSQL/src/S4R.h:38:10: error: failed to evaluate #if condition, undefined function-like macro invocation: R_Version( ... ) [preprocessorErrorDirective] DONE