2025-11-21 08:34 ftp://ftp.de.debian.org/debian/pool/main/f/foreign/foreign_0.8.90.orig.tar.gz 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 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 5374cd3 (2025-11-20 15:35:39 +0100) count: 218 216 elapsed-time: 0.7 0.7 head-timing-info: old-timing-info: head results: foreign/src/Rdbfwrite.c:36:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRSXP [valueFlowBailoutIncompleteVar] foreign/src/Rdbfwrite.c:63:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] foreign/src/Rdbfwrite.c:75:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NamesSymbol [valueFlowBailoutIncompleteVar] foreign/src/Rdbfread.c:71:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRSXP [valueFlowBailoutIncompleteVar] foreign/src/Rdbfread.c:143:13: style: Variable 'it' can be declared as pointer to const [constVariablePointer] foreign/src/R_systat.c:150:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NamesSymbol [valueFlowBailoutIncompleteVar] foreign/src/SASxport.c:98:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NaReal [valueFlowBailoutIncompleteVar] foreign/src/SASxport.c:318:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRSXP [valueFlowBailoutIncompleteVar] foreign/src/SASxport.c:438:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NamesSymbol [valueFlowBailoutIncompleteVar] foreign/src/SASxport.c:502:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRSXP [valueFlowBailoutIncompleteVar] foreign/src/SASxport.c:602:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VECSXP [valueFlowBailoutIncompleteVar] foreign/src/dbfopen.c:826:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] foreign/src/dbfopen.c:846:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] foreign/src/R_systat.c:658:18: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] foreign/src/R_systat.c:662:8: portability: Casting between unsigned char * and double * which have an incompatible binary data representation. [invalidPointerCast] foreign/src/R_systat.c:675:37: style:inconclusive: Function 'getsvar' argument 2 names different: declaration 's' definition 'svalue'. [funcArgNamesDifferent] foreign/src/R_systat.c:85:35: note: Function 'getsvar' argument 2 names different: declaration 's' definition 'svalue'. foreign/src/R_systat.c:675:37: note: Function 'getsvar' argument 2 names different: declaration 's' definition 'svalue'. foreign/src/R_systat.c:102:25: style: Parameter 'result' can be declared as pointer to const [constParameterPointer] foreign/src/R_systat.c:614:42: style: Parameter 'use' can be declared as pointer to const [constParameterPointer] foreign/src/R_systat.c:34:6: style: struct member 'SysAction::_history' is never used. [unusedStructMember] foreign/src/R_systat.c:35:6: style: struct member 'SysAction::_save' is never used. [unusedStructMember] foreign/src/R_systat.c:36:8: style: struct member 'SysAction::history' is never used. [unusedStructMember] foreign/src/R_systat.c:37:7: style: struct member 'SysAction::fmt' is never used. [unusedStructMember] foreign/src/R_systat.c:38:8: style: struct member 'SysAction::output' is never used. [unusedStructMember] foreign/src/R_systat.c:39:8: style: struct member 'SysAction::submit' is never used. [unusedStructMember] foreign/src/avl.c:100:21: warning: Either the condition 'tree!=NULL' is redundant or there is possible null pointer dereference: tree. [nullPointerRedundantCheck] foreign/src/avl.c:87:14: note: Assuming that condition 'tree!=NULL' is not redundant foreign/src/avl.c:100:21: note: Null pointer dereference foreign/src/avl.c:156:10: warning: Either the condition 'tree!=NULL' is redundant or there is possible null pointer dereference: tree. [nullPointerRedundantCheck] foreign/src/avl.c:155:14: note: Assuming that condition 'tree!=NULL' is not redundant foreign/src/avl.c:156:10: note: Null pointer dereference foreign/src/avl.c:546:12: warning: Either the condition 'tree!=NULL' is redundant or there is possible null pointer dereference: tree. [nullPointerRedundantCheck] foreign/src/avl.c:545:14: note: Assuming that condition 'tree!=NULL' is not redundant foreign/src/avl.c:546:12: note: Null pointer dereference foreign/src/file-handle.c:55:39: style:inconclusive: Function 'init_file_handle' argument 1 names different: declaration 'handle' definition 'h'. [funcArgNamesDifferent] foreign/src/file-handle.c:37:52: note: Function 'init_file_handle' argument 1 names different: declaration 'handle' definition 'h'. foreign/src/file-handle.c:55:39: note: Function 'init_file_handle' argument 1 names different: declaration 'handle' definition 'h'. foreign/src/file-handle.c:126:37: style:inconclusive: Function 'fh_handle_name' argument 1 names different: declaration 'handle' definition 'h'. [funcArgNamesDifferent] foreign/src/file-handle.h:101:49: note: Function 'fh_handle_name' argument 1 names different: declaration 'handle' definition 'h'. foreign/src/file-handle.c:126:37: note: Function 'fh_handle_name' argument 1 names different: declaration 'handle' definition 'h'. foreign/src/file-handle.c:155:38: style:inconclusive: Function 'fh_close_handle' argument 1 names different: declaration 'handle' definition 'h'. [funcArgNamesDifferent] foreign/src/file-handle.h:98:43: note: Function 'fh_close_handle' argument 1 names different: declaration 'handle' definition 'h'. foreign/src/file-handle.c:155:38: note: Function 'fh_close_handle' argument 1 names different: declaration 'handle' definition 'h'. foreign/src/file-handle.c:203:42: style:inconclusive: Function 'fh_handle_filename' argument 1 names different: declaration 'handle' definition 'h'. [funcArgNamesDifferent] foreign/src/file-handle.h:102:47: note: Function 'fh_handle_filename' argument 1 names different: declaration 'handle' definition 'h'. foreign/src/file-handle.c:203:42: note: Function 'fh_handle_filename' argument 1 names different: declaration 'handle' definition 'h'. foreign/src/file-handle.c:210:38: style:inconclusive: Function 'fh_record_width' argument 1 names different: declaration 'handle' definition 'h'. [funcArgNamesDifferent] foreign/src/file-handle.h:103:45: note: Function 'fh_record_width' argument 1 names different: declaration 'handle' definition 'h'. foreign/src/file-handle.c:210:38: note: Function 'fh_record_width' argument 1 names different: declaration 'handle' definition 'h'. foreign/src/file-handle.c:126:37: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] foreign/src/file-handle.c:174:54: style: Parameter 'foo' can be declared as pointer to const. However it seems that 'cmp_file_handle' is a callback function, if 'foo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] foreign/src/file-handle.c:189:25: note: You might need to cast the function pointer here foreign/src/file-handle.c:174:54: note: Parameter 'foo' can be declared as pointer to const foreign/src/file-handle.c:203:42: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] foreign/src/init.c:71:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] foreign/src/minitab.c:64:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VECSXP [valueFlowBailoutIncompleteVar] foreign/src/minitab.c:120:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] foreign/src/minitab.c:121:35: warning: Either the condition '(f=fopen(R_ExpandFileName(CHAR(fname)),"r"))==NULL' is redundant or there is possible null pointer dereference: f. [nullPointerRedundantCheck] foreign/src/minitab.c:117:57: note: Assuming that condition '(f=fopen(R_ExpandFileName(CHAR(fname)),"r"))==NULL' is not redundant foreign/src/minitab.c:121:35: note: Null pointer dereference foreign/src/minitab.c:42:11: style: union member 'Anonymous0::cdat' is never used. [unusedStructMember] foreign/src/format.c:222:17: warning: Either the condition 'input->w<2' is redundant or the array 'map[8]' is accessed at index -1, which is out of bounds. [negativeIndex] foreign/src/format.c:220:36: note: Assuming that condition 'input->w<2' is not redundant foreign/src/format.c:222:17: note: Negative array index foreign/src/format.c:176:48: style:inconclusive: Function 'check_string_specifier' argument 1 names different: declaration 'spec' definition 'f'. [funcArgNamesDifferent] foreign/src/format.h:85:52: note: Function 'check_string_specifier' argument 1 names different: declaration 'spec' definition 'f'. foreign/src/format.c:176:48: note: Function 'check_string_specifier' argument 1 names different: declaration 'spec' definition 'f'. foreign/src/dbfopen.c:472:5: error: Resource leak: psDBF.fp [resourceLeak] foreign/src/dbfopen.c:382:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:381:31: note: Assuming allocation function fails foreign/src/dbfopen.c:381:13: note: Assignment 'psDBF=(struct DBFInfo*)calloc(1,sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:382:5: note: Null pointer dereference foreign/src/dbfopen.c:384:9: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:381:31: note: Assuming allocation function fails foreign/src/dbfopen.c:381:13: note: Assignment 'psDBF=(struct DBFInfo*)calloc(1,sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:384:9: note: Null pointer dereference foreign/src/dbfopen.c:390:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:381:31: note: Assuming allocation function fails foreign/src/dbfopen.c:381:13: note: Assignment 'psDBF=(struct DBFInfo*)calloc(1,sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:384:19: note: Assuming condition is false foreign/src/dbfopen.c:390:5: note: Null pointer dereference foreign/src/dbfopen.c:391:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:381:31: note: Assuming allocation function fails foreign/src/dbfopen.c:381:13: note: Assignment 'psDBF=(struct DBFInfo*)calloc(1,sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:384:19: note: Assuming condition is false foreign/src/dbfopen.c:391:5: note: Null pointer dereference foreign/src/dbfopen.c:392:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:381:31: note: Assuming allocation function fails foreign/src/dbfopen.c:381:13: note: Assignment 'psDBF=(struct DBFInfo*)calloc(1,sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:384:19: note: Assuming condition is false foreign/src/dbfopen.c:392:5: note: Null pointer dereference foreign/src/dbfopen.c:398:16: warning: If memory allocation fails, then there is a possible null pointer dereference: pabyBuf [nullPointerOutOfMemory] foreign/src/dbfopen.c:397:39: note: Assuming allocation function fails foreign/src/dbfopen.c:397:15: note: Assignment 'pabyBuf=(unsigned char*)malloc(500)', assigned value is 0 foreign/src/dbfopen.c:398:16: note: Null pointer dereference foreign/src/dbfopen.c:398:32: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:381:31: note: Assuming allocation function fails foreign/src/dbfopen.c:381:13: note: Assignment 'psDBF=(struct DBFInfo*)calloc(1,sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:384:19: note: Assuming condition is false foreign/src/dbfopen.c:398:32: note: Null pointer dereference foreign/src/dbfopen.c:543:13: warning: If memory allocation fails, then there is a possible null pointer dereference: pszBasename [nullPointerOutOfMemory] foreign/src/dbfopen.c:542:34: note: Assuming allocation function fails foreign/src/dbfopen.c:542:19: note: Assignment 'pszBasename=(char*)malloc(strlen(pszFilename)+5)', assigned value is 0 foreign/src/dbfopen.c:543:13: note: Null pointer dereference foreign/src/dbfopen.c:544:21: warning: If memory allocation fails, then there is a possible null pointer dereference: pszBasename [nullPointerOutOfMemory] foreign/src/dbfopen.c:542:34: note: Assuming allocation function fails foreign/src/dbfopen.c:542:19: note: Assignment 'pszBasename=(char*)malloc(strlen(pszFilename)+5)', assigned value is 0 foreign/src/dbfopen.c:544:21: note: Null pointer dereference foreign/src/dbfopen.c:545:12: warning: If memory allocation fails, then there is a possible null pointer dereference: pszBasename [nullPointerOutOfMemory] foreign/src/dbfopen.c:542:34: note: Assuming allocation function fails foreign/src/dbfopen.c:542:19: note: Assignment 'pszBasename=(char*)malloc(strlen(pszFilename)+5)', assigned value is 0 foreign/src/dbfopen.c:545:12: note: Null pointer dereference foreign/src/dbfopen.c:545:37: warning: If memory allocation fails, then there is a possible null pointer dereference: pszBasename [nullPointerOutOfMemory] foreign/src/dbfopen.c:542:34: note: Assuming allocation function fails foreign/src/dbfopen.c:542:19: note: Assignment 'pszBasename=(char*)malloc(strlen(pszFilename)+5)', assigned value is 0 foreign/src/dbfopen.c:545:37: note: Null pointer dereference foreign/src/dbfopen.c:546:12: warning: If memory allocation fails, then there is a possible null pointer dereference: pszBasename [nullPointerOutOfMemory] foreign/src/dbfopen.c:542:34: note: Assuming allocation function fails foreign/src/dbfopen.c:542:19: note: Assignment 'pszBasename=(char*)malloc(strlen(pszFilename)+5)', assigned value is 0 foreign/src/dbfopen.c:546:12: note: Null pointer dereference foreign/src/dbfopen.c:549:9: warning: If memory allocation fails, then there is a possible null pointer dereference: pszBasename [nullPointerOutOfMemory] foreign/src/dbfopen.c:542:34: note: Assuming allocation function fails foreign/src/dbfopen.c:542:19: note: Assignment 'pszBasename=(char*)malloc(strlen(pszFilename)+5)', assigned value is 0 foreign/src/dbfopen.c:549:9: note: Null pointer dereference foreign/src/dbfopen.c:552:24: warning: If memory allocation fails, then there is a possible null pointer dereference: pszBasename [nullPointerOutOfMemory] foreign/src/dbfopen.c:542:34: note: Assuming allocation function fails foreign/src/dbfopen.c:542:19: note: Assignment 'pszBasename=(char*)malloc(strlen(pszFilename)+5)', assigned value is 0 foreign/src/dbfopen.c:552:24: note: Null pointer dereference foreign/src/dbfopen.c:554:15: warning: If memory allocation fails, then there is a possible null pointer dereference: pszFullname [nullPointerOutOfMemory] foreign/src/dbfopen.c:553:34: note: Assuming allocation function fails foreign/src/dbfopen.c:553:19: note: Assignment 'pszFullname=(char*)malloc(sz)', assigned value is 0 foreign/src/dbfopen.c:554:15: note: Null pointer dereference foreign/src/dbfopen.c:554:42: warning: If memory allocation fails, then there is a possible null pointer dereference: pszBasename [nullPointerOutOfMemory] foreign/src/dbfopen.c:542:34: note: Assuming allocation function fails foreign/src/dbfopen.c:542:19: note: Assignment 'pszBasename=(char*)malloc(strlen(pszFilename)+5)', assigned value is 0 foreign/src/dbfopen.c:554:42: note: Null pointer dereference foreign/src/dbfopen.c:560:17: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: pszFullname [nullPointerOutOfMemory] foreign/src/dbfopen.c:553:34: note: Assuming allocation function fails foreign/src/dbfopen.c:553:19: note: Assignment 'pszFullname=(char*)malloc(sz)', assigned value is 0 foreign/src/dbfopen.c:560:17: note: Null pointer dereference foreign/src/dbfopen.c:567:17: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: pszFullname [nullPointerOutOfMemory] foreign/src/dbfopen.c:553:34: note: Assuming allocation function fails foreign/src/dbfopen.c:553:19: note: Assignment 'pszFullname=(char*)malloc(sz)', assigned value is 0 foreign/src/dbfopen.c:561:12: note: Assuming condition is false foreign/src/dbfopen.c:567:17: note: Null pointer dereference foreign/src/dbfopen.c:578:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:576:31: note: Assuming allocation function fails foreign/src/dbfopen.c:576:13: note: Assignment 'psDBF=(struct DBFInfo*)malloc(sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:578:5: note: Null pointer dereference foreign/src/dbfopen.c:579:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:576:31: note: Assuming allocation function fails foreign/src/dbfopen.c:576:13: note: Assignment 'psDBF=(struct DBFInfo*)malloc(sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:579:5: note: Null pointer dereference foreign/src/dbfopen.c:580:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:576:31: note: Assuming allocation function fails foreign/src/dbfopen.c:576:13: note: Assignment 'psDBF=(struct DBFInfo*)malloc(sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:580:5: note: Null pointer dereference foreign/src/dbfopen.c:581:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:576:31: note: Assuming allocation function fails foreign/src/dbfopen.c:576:13: note: Assignment 'psDBF=(struct DBFInfo*)malloc(sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:581:5: note: Null pointer dereference foreign/src/dbfopen.c:582:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:576:31: note: Assuming allocation function fails foreign/src/dbfopen.c:576:13: note: Assignment 'psDBF=(struct DBFInfo*)malloc(sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:582:5: note: Null pointer dereference foreign/src/dbfopen.c:584:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:576:31: note: Assuming allocation function fails foreign/src/dbfopen.c:576:13: note: Assignment 'psDBF=(struct DBFInfo*)malloc(sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:584:5: note: Null pointer dereference foreign/src/dbfopen.c:585:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:576:31: note: Assuming allocation function fails foreign/src/dbfopen.c:576:13: note: Assignment 'psDBF=(struct DBFInfo*)malloc(sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:585:5: note: Null pointer dereference foreign/src/dbfopen.c:586:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:576:31: note: Assuming allocation function fails foreign/src/dbfopen.c:576:13: note: Assignment 'psDBF=(struct DBFInfo*)malloc(sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:586:5: note: Null pointer dereference foreign/src/dbfopen.c:587:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:576:31: note: Assuming allocation function fails foreign/src/dbfopen.c:576:13: note: Assignment 'psDBF=(struct DBFInfo*)malloc(sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:587:5: note: Null pointer dereference foreign/src/dbfopen.c:588:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:576:31: note: Assuming allocation function fails foreign/src/dbfopen.c:576:13: note: Assignment 'psDBF=(struct DBFInfo*)malloc(sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:588:5: note: Null pointer dereference foreign/src/dbfopen.c:590:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:576:31: note: Assuming allocation function fails foreign/src/dbfopen.c:576:13: note: Assignment 'psDBF=(struct DBFInfo*)malloc(sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:590:5: note: Null pointer dereference foreign/src/dbfopen.c:591:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:576:31: note: Assuming allocation function fails foreign/src/dbfopen.c:576:13: note: Assignment 'psDBF=(struct DBFInfo*)malloc(sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:591:5: note: Null pointer dereference foreign/src/dbfopen.c:592:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:576:31: note: Assuming allocation function fails foreign/src/dbfopen.c:576:13: note: Assignment 'psDBF=(struct DBFInfo*)malloc(sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:592:5: note: Null pointer dereference foreign/src/dbfopen.c:594:5: warning: If memory allocation fails, then there is a possible null pointer dereference: psDBF [nullPointerOutOfMemory] foreign/src/dbfopen.c:576:31: note: Assuming allocation function fails foreign/src/dbfopen.c:576:13: note: Assignment 'psDBF=(struct DBFInfo*)malloc(sizeof(struct DBFInfo))', assigned value is 0 foreign/src/dbfopen.c:594:5: note: Null pointer dereference foreign/src/dbfopen.c:326:28: style:inconclusive: Function 'DBFUpdateHeader' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] foreign/src/shapefil.h:487:34: note: Function 'DBFUpdateHeader' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:326:28: note: Function 'DBFUpdateHeader' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:359:23: style:inconclusive: Function 'DBFOpen' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. [funcArgNamesDifferent] foreign/src/shapefil.h:428:29: note: Function 'DBFOpen' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. foreign/src/dbfopen.c:359:23: note: Function 'DBFOpen' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. foreign/src/dbfopen.c:480:20: style:inconclusive: Function 'DBFClose' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] foreign/src/shapefil.h:485:27: note: Function 'DBFClose' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:480:20: note: Function 'DBFClose' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:530:25: style:inconclusive: Function 'DBFCreate' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. [funcArgNamesDifferent] foreign/src/shapefil.h:430:31: note: Function 'DBFCreate' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. foreign/src/dbfopen.c:530:25: note: Function 'DBFCreate' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. foreign/src/dbfopen.c:607:23: style:inconclusive: Function 'DBFAddField' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] foreign/src/shapefil.h:437:30: note: Function 'DBFAddField' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:607:23: note: Function 'DBFAddField' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:818:36: style:inconclusive: Function 'DBFReadIntegerAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] foreign/src/shapefil.h:448:42: note: Function 'DBFReadIntegerAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:818:36: note: Function 'DBFReadIntegerAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:818:47: style:inconclusive: Function 'DBFReadIntegerAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] foreign/src/shapefil.h:448:52: note: Function 'DBFReadIntegerAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:818:47: note: Function 'DBFReadIntegerAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:838:35: style:inconclusive: Function 'DBFReadDoubleAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] foreign/src/shapefil.h:450:41: note: Function 'DBFReadDoubleAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:838:35: note: Function 'DBFReadDoubleAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:838:46: style:inconclusive: Function 'DBFReadDoubleAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] foreign/src/shapefil.h:450:51: note: Function 'DBFReadDoubleAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:838:46: note: Function 'DBFReadDoubleAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:858:35: style:inconclusive: Function 'DBFReadStringAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] foreign/src/shapefil.h:452:41: note: Function 'DBFReadStringAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:858:35: note: Function 'DBFReadStringAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:858:46: style:inconclusive: Function 'DBFReadStringAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] foreign/src/shapefil.h:452:51: note: Function 'DBFReadStringAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:858:46: note: Function 'DBFReadStringAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:871:36: style:inconclusive: Function 'DBFReadLogicalAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] foreign/src/shapefil.h:454:42: note: Function 'DBFReadLogicalAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:871:36: note: Function 'DBFReadLogicalAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:871:47: style:inconclusive: Function 'DBFReadLogicalAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] foreign/src/shapefil.h:454:52: note: Function 'DBFReadLogicalAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:871:47: note: Function 'DBFReadLogicalAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:886:31: style:inconclusive: Function 'DBFIsAttributeNULL' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] foreign/src/shapefil.h:456:37: note: Function 'DBFIsAttributeNULL' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:886:31: note: Function 'DBFIsAttributeNULL' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:886:42: style:inconclusive: Function 'DBFIsAttributeNULL' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] foreign/src/shapefil.h:456:47: note: Function 'DBFIsAttributeNULL' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:886:42: note: Function 'DBFIsAttributeNULL' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:1250:36: style:inconclusive: Function 'DBFWriteDoubleAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] foreign/src/shapefil.h:462:42: note: Function 'DBFWriteDoubleAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:1250:36: note: Function 'DBFWriteDoubleAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:1250:47: style:inconclusive: Function 'DBFWriteDoubleAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] foreign/src/shapefil.h:462:52: note: Function 'DBFWriteDoubleAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:1250:47: note: Function 'DBFWriteDoubleAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:1251:12: style:inconclusive: Function 'DBFWriteDoubleAttribute' argument 4 names different: declaration 'dFieldValue' definition 'dValue'. [funcArgNamesDifferent] foreign/src/shapefil.h:463:18: note: Function 'DBFWriteDoubleAttribute' argument 4 names different: declaration 'dFieldValue' definition 'dValue'. foreign/src/dbfopen.c:1251:12: note: Function 'DBFWriteDoubleAttribute' argument 4 names different: declaration 'dFieldValue' definition 'dValue'. foreign/src/dbfopen.c:1264:37: style:inconclusive: Function 'DBFWriteIntegerAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] foreign/src/shapefil.h:459:43: note: Function 'DBFWriteIntegerAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:1264:37: note: Function 'DBFWriteIntegerAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:1264:48: style:inconclusive: Function 'DBFWriteIntegerAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] foreign/src/shapefil.h:459:53: note: Function 'DBFWriteIntegerAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:1264:48: note: Function 'DBFWriteIntegerAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:1265:10: style:inconclusive: Function 'DBFWriteIntegerAttribute' argument 4 names different: declaration 'nFieldValue' definition 'nValue'. [funcArgNamesDifferent] foreign/src/shapefil.h:460:9: note: Function 'DBFWriteIntegerAttribute' argument 4 names different: declaration 'nFieldValue' definition 'nValue'. foreign/src/dbfopen.c:1265:10: note: Function 'DBFWriteIntegerAttribute' argument 4 names different: declaration 'nFieldValue' definition 'nValue'. foreign/src/dbfopen.c:1280:36: style:inconclusive: Function 'DBFWriteStringAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] foreign/src/shapefil.h:465:42: note: Function 'DBFWriteStringAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:1280:36: note: Function 'DBFWriteStringAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:1280:47: style:inconclusive: Function 'DBFWriteStringAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] foreign/src/shapefil.h:465:52: note: Function 'DBFWriteStringAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:1280:47: note: Function 'DBFWriteStringAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:1281:18: style:inconclusive: Function 'DBFWriteStringAttribute' argument 4 names different: declaration 'pszFieldValue' definition 'pszValue'. [funcArgNamesDifferent] foreign/src/shapefil.h:466:24: note: Function 'DBFWriteStringAttribute' argument 4 names different: declaration 'pszFieldValue' definition 'pszValue'. foreign/src/dbfopen.c:1281:18: note: Function 'DBFWriteStringAttribute' argument 4 names different: declaration 'pszFieldValue' definition 'pszValue'. foreign/src/dbfopen.c:1294:34: style:inconclusive: Function 'DBFWriteNULLAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] foreign/src/shapefil.h:468:39: note: Function 'DBFWriteNULLAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:1294:34: note: Function 'DBFWriteNULLAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:1294:45: style:inconclusive: Function 'DBFWriteNULLAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] foreign/src/shapefil.h:468:49: note: Function 'DBFWriteNULLAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:1294:45: note: Function 'DBFWriteNULLAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:1307:37: style:inconclusive: Function 'DBFWriteLogicalAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] foreign/src/shapefil.h:471:42: note: Function 'DBFWriteLogicalAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:1307:37: note: Function 'DBFWriteLogicalAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:1307:48: style:inconclusive: Function 'DBFWriteLogicalAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] foreign/src/shapefil.h:471:52: note: Function 'DBFWriteLogicalAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:1307:48: note: Function 'DBFWriteLogicalAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. foreign/src/dbfopen.c:1308:21: style:inconclusive: Function 'DBFWriteLogicalAttribute' argument 4 names different: declaration 'lFieldValue' definition 'lValue'. [funcArgNamesDifferent] foreign/src/shapefil.h:472:22: note: Function 'DBFWriteLogicalAttribute' argument 4 names different: declaration 'lFieldValue' definition 'lValue'. foreign/src/dbfopen.c:1308:21: note: Function 'DBFWriteLogicalAttribute' argument 4 names different: declaration 'lFieldValue' definition 'lValue'. foreign/src/dbfopen.c:1477:34: style:inconclusive: Function 'DBFGetNativeFieldType' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] foreign/src/shapefil.h:489:40: note: Function 'DBFGetNativeFieldType' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:1477:34: note: Function 'DBFGetNativeFieldType' argument 1 names different: declaration 'hDBF' definition 'psDBF'. foreign/src/dbfopen.c:439:18: style: Variable 'pabyFInfo' can be declared as pointer to const [constVariablePointer] foreign/src/dbfopen.c:717:20: style: Variable 'pabyRec' can be declared as pointer to const [constVariablePointer] foreign/src/dbfopen.c:793:8: style: Variable 'pchSrc' can be declared as pointer to const [constVariablePointer] foreign/src/dbfopen.c:821:13: style: Variable 'pdValue' can be declared as pointer to const [constVariablePointer] foreign/src/dbfopen.c:1174:17: style: Parameter 'pValue' can be declared as pointer to const [constParameterPointer] foreign/src/dbfopen.c:1321:52: style: Parameter 'pRawTuple' can be declared as pointer to const [constParameterPointer] foreign/src/dbfopen.c:1388:20: style: Variable 'pabyRec' can be declared as pointer to const [constVariablePointer] foreign/src/SASxport.c:148:9: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] foreign/src/SASxport.c:511:15: note: Assuming allocation function fails foreign/src/SASxport.c:511:15: note: Assignment 'fp=fopen(R_ExpandFileName(CHAR(STRING_ELT(xportFile,0))),"rb")', assigned value is 0 foreign/src/SASxport.c:514:37: note: Calling function 'init_xport_info', 1st argument 'fp' value is 0 foreign/src/SASxport.c:223:24: note: Calling function 'get_lib_header', 1st argument 'fp' value is 0 foreign/src/SASxport.c:148:9: note: Null pointer dereference foreign/src/SASxport.c:154:9: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] foreign/src/SASxport.c:511:15: note: Assuming allocation function fails foreign/src/SASxport.c:511:15: note: Assignment 'fp=fopen(R_ExpandFileName(CHAR(STRING_ELT(xportFile,0))),"rb")', assigned value is 0 foreign/src/SASxport.c:514:37: note: Calling function 'init_xport_info', 1st argument 'fp' value is 0 foreign/src/SASxport.c:223:24: note: Calling function 'get_lib_header', 1st argument 'fp' value is 0 foreign/src/SASxport.c:154:9: note: Null pointer dereference foreign/src/SASxport.c:230:9: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] foreign/src/SASxport.c:511:15: note: Assuming allocation function fails foreign/src/SASxport.c:511:15: note: Assignment 'fp=fopen(R_ExpandFileName(CHAR(STRING_ELT(xportFile,0))),"rb")', assigned value is 0 foreign/src/SASxport.c:514:37: note: Calling function 'init_xport_info', 1st argument 'fp' value is 0 foreign/src/SASxport.c:230:9: note: Null pointer dereference foreign/src/SASxport.c:522:17: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] foreign/src/SASxport.c:511:15: note: Assuming allocation function fails foreign/src/SASxport.c:511:15: note: Assignment 'fp=fopen(R_ExpandFileName(CHAR(STRING_ELT(xportFile,0))),"rb")', assigned value is 0 foreign/src/SASxport.c:522:17: note: Null pointer dereference foreign/src/SASxport.c:611:15: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] foreign/src/SASxport.c:608:15: note: Assuming allocation function fails foreign/src/SASxport.c:608:15: note: Assignment 'fp=fopen(R_ExpandFileName(CHAR(STRING_ELT(xportFile,0))),"rb")', assigned value is 0 foreign/src/SASxport.c:611:15: note: Null pointer dereference foreign/src/SASxport.c:63:36: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] foreign/src/SASxport.c:245:11: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] foreign/src/SASxport.c:432:33: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] foreign/src/pfm-read.c:116:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] foreign/src/pfm-read.c:244:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] foreign/src/pfm-read.c:318:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] foreign/src/pfm-read.c:420:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] foreign/src/pfm-read.c:450:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] foreign/src/pfm-read.c:693:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] foreign/src/pfm-read.c:896:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] foreign/src/pfm-read.c:919:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] foreign/src/pfm-read.c:1038:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_REAL [valueFlowBailoutIncompleteVar] foreign/src/spss.c:230:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] foreign/src/spss.c:271:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] foreign/src/spss.c:360:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VECSXP [valueFlowBailoutIncompleteVar] foreign/src/spss.c:492:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VECSXP [valueFlowBailoutIncompleteVar] foreign/src/spss.c:600:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] foreign/src/spss.c:670:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] foreign/src/stataread.c:207:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable R_NilValue [valueFlowBailoutIncompleteVar] foreign/src/stataread.c:592:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] foreign/src/stataread.c:604:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] foreign/src/stataread.c:617:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NA_INTEGER [valueFlowBailoutIncompleteVar] foreign/src/stataread.c:674:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] foreign/src/stataread.c:789:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INTSXP [valueFlowBailoutIncompleteVar] foreign/src/stataread.c:1051:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] foreign/src/pfm-read.c:289:11: warning: Either the condition 'ext' is redundant or there is possible null pointer dereference: ext. [nullPointerRedundantCheck] foreign/src/pfm-read.c:290:7: note: Assuming that condition 'ext' is not redundant foreign/src/pfm-read.c:289:11: note: Null pointer dereference foreign/src/pfm-read.c:436:32: warning: Either the condition 'h==NULL' is redundant or there is possible null pointer dereference: h. [nullPointerRedundantCheck] foreign/src/pfm-read.c:440:9: note: Assuming that condition 'h==NULL' is not redundant foreign/src/pfm-read.c:436:32: note: Null pointer dereference foreign/src/pfm-read.c:793:7: warning: Either the condition 'v==NULL' is redundant or there is possible null pointer dereference: v. [nullPointerRedundantCheck] foreign/src/pfm-read.c:794:13: note: Assuming that condition 'v==NULL' is not redundant foreign/src/pfm-read.c:793:7: note: Null pointer dereference foreign/src/pfm-read.c:793:19: warning: Either the condition 'v==NULL' is redundant or there is possible null pointer dereference: v. [nullPointerRedundantCheck] foreign/src/pfm-read.c:794:13: note: Assuming that condition 'v==NULL' is not redundant foreign/src/pfm-read.c:793:19: note: Null pointer dereference foreign/src/pfm-read.c:781:12: style: Variable 'name[j]' is assigned an expression that holds the same value. [redundantAssignment] foreign/src/pfm-read.c:770:10: note: c is assigned 'name[j]' here. foreign/src/pfm-read.c:781:12: note: Variable 'name[j]' is assigned an expression that holds the same value. foreign/src/pfm-read.c:1034:11: style: Variable 'tp' is reassigned a value before the old one has been used. [redundantAssignment] foreign/src/pfm-read.c:1033:6: note: tp is assigned foreign/src/pfm-read.c:1034:11: note: tp is overwritten foreign/src/pfm-read.c:189:26: style: Variable 'ext' can be declared as pointer to const [constVariablePointer] foreign/src/pfm-read.c:304:26: style: Variable 'ext' can be declared as pointer to const [constVariablePointer] foreign/src/pfm-read.c:436:26: style: Variable 'ext' can be declared as pointer to const [constVariablePointer] foreign/src/pfm-read.c:518:19: style: Variable 'sig' can be declared as const array [constVariable] foreign/src/pfm-read.c:600:13: style: Variable 'product' can be declared as pointer to const [constVariablePointer] foreign/src/pfm-read.c:616:13: style: Variable 'subproduct' can be declared as pointer to const [constVariablePointer] foreign/src/pfm-read.c:713:13: style: Variable 'name' can be declared as pointer to const [constVariablePointer] foreign/src/pfm-read.c:849:10: style: Variable 'label' can be declared as pointer to const [constVariablePointer] foreign/src/pfm-read.c:873:70: style: Parameter 'vv' can be declared as pointer to const [constParameterPointer] foreign/src/pfm-read.c:877:13: style: Variable 'mv' can be declared as pointer to const [constVariablePointer] foreign/src/pfm-read.c:907:26: style: Variable 'ext' can be declared as pointer to const [constVariablePointer] foreign/src/sfm-read.c:167:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] foreign/src/sfm-read.c:315:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] foreign/src/sfm-read.c:629:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] foreign/src/sfm-read.c:1379:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] foreign/src/sfm-read.c:1519:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] foreign/src/sfm-read.c:1657:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] foreign/src/spss.c:678:2: error: Resource handle 'fp' freed twice. [doubleFree] foreign/src/spss.c:672:2: note: Resource handle 'fp' freed twice. foreign/src/spss.c:678:2: note: Resource handle 'fp' freed twice. foreign/src/spss.c:682:6: error: Resource handle 'fp' freed twice. [doubleFree] foreign/src/spss.c:672:2: note: Resource handle 'fp' freed twice. foreign/src/spss.c:682:6: note: Resource handle 'fp' freed twice. foreign/src/spss.c:686:2: error: Resource handle 'fp' freed twice. [doubleFree] foreign/src/spss.c:672:2: note: Resource handle 'fp' freed twice. foreign/src/spss.c:686:2: note: Resource handle 'fp' freed twice. foreign/src/spss.c:590:16: warning: If resource allocation fails, then there is a possible null pointer dereference: stream [nullPointerOutOfResources] foreign/src/spss.c:665:21: note: Assuming allocation function fails foreign/src/spss.c:665:21: note: Assignment 'fp=fopen(R_ExpandFileName(filename),"rb")', assigned value is 0 foreign/src/spss.c:671:40: note: Calling function 'fread_pfm', 4th argument 'fp' value is 0 foreign/src/spss.c:590:16: note: Null pointer dereference foreign/src/spss.c:226:22: style: Variable 'labelset' can be declared as pointer to const [constVariablePointer] foreign/src/spss.c:386:19: style: Variable 'v' can be declared as pointer to const [constVariablePointer] foreign/src/spss.c:508:19: style: Variable 'v' can be declared as pointer to const [constVariablePointer] foreign/src/spss.c:643:16: style: Variable 'sig' can be declared as const array [constVariable] foreign/src/stataread.c:98:34: style:inconclusive: Boolean expression 'i==2147483647' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] foreign/src/stataread.c:106:36: style:inconclusive: Boolean expression 'i==127' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] foreign/src/stataread.c:114:36: style:inconclusive: Boolean expression 'i==127' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] foreign/src/stataread.c:130:42: style:inconclusive: Boolean expression 'result==32767' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] foreign/src/stataread.c:144:37: style:inconclusive: Boolean expression 'i==pow(2.0,1023)' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] foreign/src/stataread.c:157:36: style:inconclusive: Boolean expression 'i==pow(2.0,127)' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] foreign/src/stataread.c:583:29: style:inconclusive: Boolean expression 'sizeof(double)!=8' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] foreign/src/stataread.c:583:48: style:inconclusive: Boolean expression 'sizeof(float)!=4' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] foreign/src/stataread.c:604:29: style:inconclusive: Boolean expression 'i==NA_INTEGER' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] foreign/src/stataread.c:1039:31: style:inconclusive: Boolean expression 'sizeof(double)!=8' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] foreign/src/stataread.c:1039:52: style:inconclusive: Boolean expression 'sizeof(float)!=4' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] foreign/src/stataread.c:98:34: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] foreign/src/stataread.c:106:36: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] foreign/src/stataread.c:114:36: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] foreign/src/stataread.c:130:42: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] foreign/src/stataread.c:144:37: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] foreign/src/stataread.c:157:36: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] foreign/src/stataread.c:604:29: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] foreign/src/stataread.c:583:29: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] foreign/src/stataread.c:583:48: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] foreign/src/stataread.c:1039:31: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] foreign/src/stataread.c:1039:52: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] foreign/src/stataread.c:583:48: style: Condition '(sizeof(double)!=8)|(sizeof(int)!=4)|(sizeof(float)!=4)' is always false [knownConditionTrueFalse] foreign/src/stataread.c:1039:52: style: Condition '(sizeof(double)!=8)|(sizeof(int)!=4)|(sizeof(float)!=4)' is always false [knownConditionTrueFalse] foreign/src/stataread.c:595:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] foreign/src/stataread.c:590:15: note: Assuming allocation function fails foreign/src/stataread.c:590:15: note: Assignment 'fp=fopen(R_ExpandFileName(CHAR(STRING_ELT(fname,0))),"rb")', assigned value is 0 foreign/src/stataread.c:595:12: note: Null pointer dereference foreign/src/stataread.c:633:39: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] foreign/src/stataread.c:1050:15: note: Assuming allocation function fails foreign/src/stataread.c:1050:15: note: Assignment 'fp=fopen(R_ExpandFileName(CHAR(STRING_ELT(fname,0))),"wb")', assigned value is 0 foreign/src/stataread.c:1059:21: note: Calling function 'R_SaveStataData', 1st argument 'fp' value is 0 foreign/src/stataread.c:764:29: note: Calling function 'OutShortIntBinary', 2nd argument 'fp' value is 0 foreign/src/stataread.c:633:39: note: Null pointer dereference foreign/src/stataread.c:635:40: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] foreign/src/stataread.c:1050:15: note: Assuming allocation function fails foreign/src/stataread.c:1050:15: note: Assignment 'fp=fopen(R_ExpandFileName(CHAR(STRING_ELT(fname,0))),"wb")', assigned value is 0 foreign/src/stataread.c:1059:21: note: Calling function 'R_SaveStataData', 1st argument 'fp' value is 0 foreign/src/stataread.c:764:29: note: Calling function 'OutShortIntBinary', 2nd argument 'fp' value is 0 foreign/src/stataread.c:635:40: note: Null pointer dereference foreign/src/stataread.c:1060:12: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] foreign/src/stataread.c:1050:15: note: Assuming allocation function fails foreign/src/stataread.c:1050:15: note: Assignment 'fp=fopen(R_ExpandFileName(CHAR(STRING_ELT(fname,0))),"wb")', assigned value is 0 foreign/src/stataread.c:1060:12: note: Null pointer dereference foreign/src/stataread.c:143:10: portability: Casting between unsigned char * and double * which have an incompatible binary data representation. [invalidPointerCast] foreign/src/stataread.c:156:10: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] foreign/src/stataread.c:236:10: style: Variable 'version' is reassigned a value before the old one has been used. 'break;' missing? [redundantAssignInSwitch] foreign/src/stataread.c:230:10: note: $symbol is assigned foreign/src/stataread.c:236:10: note: $symbol is overwritten foreign/src/stataread.c:237:16: style: Variable 'varnamelength' is reassigned a value before the old one has been used. 'break;' missing? [redundantAssignInSwitch] foreign/src/stataread.c:231:16: note: $symbol is assigned foreign/src/stataread.c:237:16: note: $symbol is overwritten foreign/src/stataread.c:238:14: style: Variable 'fmtlist_len' is reassigned a value before the old one has been used. 'break;' missing? [redundantAssignInSwitch] foreign/src/stataread.c:232:14: note: $symbol is assigned foreign/src/stataread.c:238:14: note: $symbol is overwritten foreign/src/stataread.c:736:10: style: Variable 'format9g' can be declared as const array [constVariable] foreign/src/sfm-read.c:532:11: warning: Either the condition 'ext' is redundant or there is possible null pointer dereference: ext. [nullPointerRedundantCheck] foreign/src/sfm-read.c:533:7: note: Assuming that condition 'ext' is not redundant foreign/src/sfm-read.c:532:11: note: Null pointer dereference foreign/src/sfm-read.c:1305:34: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] foreign/src/sfm-read.c:1370:31: style:inconclusive: Function 'bufread' argument 1 names different: declaration 'handle' definition 'h'. [funcArgNamesDifferent] foreign/src/sfm-read.c:185:44: note: Function 'bufread' argument 1 names different: declaration 'handle' definition 'h'. foreign/src/sfm-read.c:1370:31: note: Function 'bufread' argument 1 names different: declaration 'handle' definition 'h'. foreign/src/sfm-read.c:769:9: style: Local variable 'i' shadows outer variable [shadowVariable] foreign/src/sfm-read.c:710:7: note: Shadowed declaration foreign/src/sfm-read.c:769:9: note: Shadow variable foreign/src/sfm-read.c:826:9: style: Local variable 'i' shadows outer variable [shadowVariable] foreign/src/sfm-read.c:710:7: note: Shadowed declaration foreign/src/sfm-read.c:826:9: note: Shadow variable foreign/src/sfm-read.c:1233:19: style: Clarify calculation precedence for '%' and '?'. [clarifyCalculation] foreign/src/sfm-read.c:342:24: style: Variable 'wv' can be declared as pointer to const [constVariablePointer] foreign/src/sfm-read.c:546:26: style: Variable 'ext' can be declared as pointer to const [constVariablePointer] foreign/src/sfm-read.c:842:13: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] foreign/src/sfm-read.c:872:51: style: Parameter 'foo' can be declared as pointer to const. However it seems that 'cmp_variable' is a callback function, if 'foo' is declared with const you might also need to cast function pointer(s). [constParameterCallback] foreign/src/sfm-read.c:1128:37: note: You might need to cast the function pointer here foreign/src/sfm-read.c:872:51: note: Parameter 'foo' can be declared as pointer to const foreign/src/sfm-read.c:84:16: style: union member 'Anonymous14::c' is never used. [unusedStructMember] diff: head foreign/src/dbfopen.c:472:5: error: Resource leak: psDBF.fp [resourceLeak] head foreign/src/sfm-read.c:842:13: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] DONE