2024-04-22 02:36 ftp://ftp.de.debian.org/debian/pool/main/s/shapelib/shapelib_1.6.0.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 -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.56 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.14.0 head-info: ea2e716 (2024-04-21 15:59:20 +0200) count: 141 141 elapsed-time: 39.8 40.3 head-timing-info: old-timing-info: head results: shapelib-1.6.0/contrib/Shape_PointInPoly.cpp:209:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHPT_POLYGON [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/Shape_PointInPoly.cpp:75:29: style: The scope of the variable 'pointpos' can be reduced. [variableScope] shapelib-1.6.0/contrib/Shape_PointInPoly.cpp:76:46: style: The scope of the variable 'y' can be reduced. [variableScope] shapelib-1.6.0/contrib/Shape_PointInPoly.cpp:199:16: style: The scope of the variable 'psShape' can be reduced. [variableScope] shapelib-1.6.0/contrib/csv2shp.c:110:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/csv2shp.c:194:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FTInteger [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/csv2shp.c:211:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/csv2shp.c:219:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FTInteger [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/csv2shp.c:260:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/csv2shp.c:122:25: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] shapelib-1.6.0/contrib/csv2shp.c:125:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] shapelib-1.6.0/contrib/csv2shp.c:306:9: error: Resource leak: csv_f [resourceLeak] shapelib-1.6.0/contrib/csv2shp.c:316:9: error: Resource leak: csv_f [resourceLeak] shapelib-1.6.0/contrib/csv2shp.c:106:30: style: Parameter 's' can be declared as pointer to const [constParameterPointer] shapelib-1.6.0/contrib/csv2shp.c:232:23: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] shapelib-1.6.0/contrib/dbfcat.c:99:47: error: Uninitialized variable: nTitle [uninitvar] shapelib-1.6.0/contrib/dbfcat.c:100:28: error: Uninitialized variable: cTitle [uninitvar] shapelib-1.6.0/contrib/dbfinfo.c:50:10: style: Variable 'panWidth' can be declared as pointer to const [constVariablePointer] shapelib-1.6.0/contrib/dbfinfo.c:50:35: style: Variable 'panWidth' is allocated memory that is never used. [unusedAllocatedMemory] shapelib-1.6.0/contrib/shpcat.c:61:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpcentrd.c:79:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHPT_POINT [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpcentrd.c:96:20: style: The comparison 'byRing == 1' is always true. [knownConditionTrueFalse] shapelib-1.6.0/contrib/shpcentrd.c:91:18: note: 'byRing' is assigned value '1' here. shapelib-1.6.0/contrib/shpcentrd.c:96:20: note: The comparison 'byRing == 1' is always true. shapelib-1.6.0/contrib/shpdata.c:68:20: style: The comparison 'byRing == 1' is always true. [knownConditionTrueFalse] shapelib-1.6.0/contrib/shpdata.c:61:18: note: 'byRing' is assigned value '1' here. shapelib-1.6.0/contrib/shpdata.c:68:20: note: The comparison 'byRing == 1' is always true. shapelib-1.6.0/contrib/shpdata.c:60:11: style: Variable 'DBFRow' can be declared as pointer to const [constVariablePointer] shapelib-1.6.0/contrib/shpdata.c:60:11: style: Variable 'DBFRow' is assigned a value that is never used. [unreadVariable] shapelib-1.6.0/contrib/shpdxf.c:148:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHPT_ARC [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpdxf.c:168:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHPT_ARC [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpdxf.c:246:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FTInvalid [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpdxf.c:109:50: style: Parameter 'id' can be declared as pointer to const [constParameterPointer] shapelib-1.6.0/contrib/shpdxf.c:145:27: style: Parameter 'id' can be declared as pointer to const [constParameterPointer] shapelib-1.6.0/contrib/shpdxf.c:317:14: style: Variable 'panParts' can be declared as pointer to const [constVariablePointer] shapelib-1.6.0/contrib/shpdxf.c:316:26: style: Variable 'nParts' is assigned a value that is never used. [unreadVariable] shapelib-1.6.0/contrib/shpgeo.c:116:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHPT_POINT [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpgeo.c:506:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHPT_POLYGON [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpgeo.c:579:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHPT_ARC [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpgeo.c:647:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHPT_MULTIPOINT [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpgeo.c:738:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpgeo.c:802:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHPP_RING [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpgeo.c:865:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpgeo.c:1320:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHPObject [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpgeo.c:833:9: error: Common realloc mistake: 'PIP' nulled but not freed upon failure [memleakOnRealloc] shapelib-1.6.0/contrib/shpgeo.c:75:41: style: Parameter 'ext' can be declared as pointer to const [constParameterPointer] shapelib-1.6.0/contrib/shpgeo.c:187:67: style: Parameter 'psCShape' can be declared as pointer to const [constParameterPointer] shapelib-1.6.0/contrib/shpgeo.c:923:44: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] shapelib-1.6.0/contrib/shpgeo.c:923:55: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] shapelib-1.6.0/contrib/shpgeo.c:994:13: style: Variable 'a' can be declared as pointer to const [constVariablePointer] shapelib-1.6.0/contrib/shpgeo.c:995:13: style: Variable 'b' can be declared as pointer to const [constVariablePointer] shapelib-1.6.0/contrib/shpgeo.c:1149:45: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] shapelib-1.6.0/contrib/shpgeo.c:1149:56: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] shapelib-1.6.0/contrib/shpgeo.c:1170:43: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] shapelib-1.6.0/contrib/shpgeo.c:1170:54: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] shapelib-1.6.0/contrib/shpgeo.c:1264:53: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] shapelib-1.6.0/contrib/shpgeo.c:1293:25: style: Parameter 'psCShape' can be declared as pointer to const [constParameterPointer] shapelib-1.6.0/contrib/shpgeo.c:1426:37: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] shapelib-1.6.0/contrib/shpgeo.c:1442:37: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] shapelib-1.6.0/contrib/shpgeo.c:1033:9: warning: Uninitialized variable: ti [uninitvar] shapelib-1.6.0/contrib/shpgeo.c:1013:50: note: Assuming condition is false shapelib-1.6.0/contrib/shpgeo.c:1033:9: note: Uninitialized variable: ti shapelib-1.6.0/contrib/shpsort.c:88:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpsort.c:164:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpsort.c:355:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpsort.c:370:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpsort.c:488:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] shapelib-1.6.0/contrib/shpsort.c:103:23: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] shapelib-1.6.0/contrib/shpsort.c:510:9: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] shapelib-1.6.0/contrib/shpwkb.c:76:20: style: Condition 'byRing==1' is always false [knownConditionTrueFalse] shapelib-1.6.0/contrib/shpwkb.c:70:18: note: Assignment 'byRing=0', assigned value is 0 shapelib-1.6.0/contrib/shpwkb.c:76:20: note: Condition 'byRing==1' is always false shapelib-1.6.0/dbfdump.c:217:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] shapelib-1.6.0/dbfdump.c:29:11: style: Variable 'pszFilename' can be declared as pointer to const [constVariablePointer] shapelib-1.6.0/dbfopen.c:475:5: error: Common realloc mistake: 'pabyBuf' nulled but not freed upon failure [memleakOnRealloc] shapelib-1.6.0/dbfopen.c:264:44: style:inconclusive: Function 'DBFUpdateHeader' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:551:48: note: Function 'DBFUpdateHeader' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:264:44: note: Function 'DBFUpdateHeader' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:312:43: style:inconclusive: Function 'DBFOpen' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:479:47: note: Function 'DBFOpen' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. shapelib-1.6.0/dbfopen.c:312:43: note: Function 'DBFOpen' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. shapelib-1.6.0/dbfopen.c:346:45: style:inconclusive: Function 'DBFOpenLL' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:481:49: note: Function 'DBFOpenLL' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. shapelib-1.6.0/dbfopen.c:346:45: note: Function 'DBFOpenLL' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. shapelib-1.6.0/dbfopen.c:555:37: style:inconclusive: Function 'DBFClose' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:550:41: note: Function 'DBFClose' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:555:37: note: Function 'DBFClose' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:604:45: style:inconclusive: Function 'DBFCreate' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:484:49: note: Function 'DBFCreate' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. shapelib-1.6.0/dbfopen.c:604:45: note: Function 'DBFCreate' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. shapelib-1.6.0/dbfopen.c:615:47: style:inconclusive: Function 'DBFCreateEx' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:485:51: note: Function 'DBFCreateEx' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. shapelib-1.6.0/dbfopen.c:615:47: note: Function 'DBFCreateEx' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. shapelib-1.6.0/dbfopen.c:631:47: style:inconclusive: Function 'DBFCreateLL' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:487:51: note: Function 'DBFCreateLL' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. shapelib-1.6.0/dbfopen.c:631:47: note: Function 'DBFCreateLL' argument 1 names different: declaration 'pszDBFFile' definition 'pszFilename'. shapelib-1.6.0/dbfopen.c:730:39: style:inconclusive: Function 'DBFAddField' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:493:43: note: Function 'DBFAddField' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:730:39: note: Function 'DBFAddField' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:775:49: style:inconclusive: Function 'DBFAddNativeFieldType' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:496:53: note: Function 'DBFAddNativeFieldType' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:775:49: note: Function 'DBFAddNativeFieldType' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1042:51: style:inconclusive: Function 'DBFReadIntegerAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:514:55: note: Function 'DBFReadIntegerAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1042:51: note: Function 'DBFReadIntegerAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1042:62: style:inconclusive: Function 'DBFReadIntegerAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:514:65: note: Function 'DBFReadIntegerAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1042:62: note: Function 'DBFReadIntegerAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1060:53: style:inconclusive: Function 'DBFReadDoubleAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:516:57: note: Function 'DBFReadDoubleAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1060:53: note: Function 'DBFReadDoubleAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1060:64: style:inconclusive: Function 'DBFReadDoubleAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:516:67: note: Function 'DBFReadDoubleAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1060:64: note: Function 'DBFReadDoubleAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1079:38: style:inconclusive: Function 'DBFReadStringAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:519:42: note: Function 'DBFReadStringAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1079:38: note: Function 'DBFReadStringAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1079:49: style:inconclusive: Function 'DBFReadStringAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:519:52: note: Function 'DBFReadStringAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1079:49: note: Function 'DBFReadStringAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1093:39: style:inconclusive: Function 'DBFReadLogicalAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:521:43: note: Function 'DBFReadLogicalAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1093:39: note: Function 'DBFReadLogicalAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1093:50: style:inconclusive: Function 'DBFReadLogicalAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:521:53: note: Function 'DBFReadLogicalAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1093:50: note: Function 'DBFReadLogicalAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1157:46: style:inconclusive: Function 'DBFIsAttributeNULL' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:522:50: note: Function 'DBFIsAttributeNULL' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1157:46: note: Function 'DBFIsAttributeNULL' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1157:57: style:inconclusive: Function 'DBFIsAttributeNULL' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:522:60: note: Function 'DBFIsAttributeNULL' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1157:57: note: Function 'DBFIsAttributeNULL' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1452:51: style:inconclusive: Function 'DBFWriteDoubleAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:526:55: note: Function 'DBFWriteDoubleAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1452:51: note: Function 'DBFWriteDoubleAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1452:62: style:inconclusive: Function 'DBFWriteDoubleAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:526:65: note: Function 'DBFWriteDoubleAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1452:62: note: Function 'DBFWriteDoubleAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1453:60: style:inconclusive: Function 'DBFWriteDoubleAttribute' argument 4 names different: declaration 'dFieldValue' definition 'dValue'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:527:64: note: Function 'DBFWriteDoubleAttribute' argument 4 names different: declaration 'dFieldValue' definition 'dValue'. shapelib-1.6.0/dbfopen.c:1453:60: note: Function 'DBFWriteDoubleAttribute' argument 4 names different: declaration 'dFieldValue' definition 'dValue'. shapelib-1.6.0/dbfopen.c:1465:52: style:inconclusive: Function 'DBFWriteIntegerAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:524:56: note: Function 'DBFWriteIntegerAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1465:52: note: Function 'DBFWriteIntegerAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1465:63: style:inconclusive: Function 'DBFWriteIntegerAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:524:66: note: Function 'DBFWriteIntegerAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1465:63: note: Function 'DBFWriteIntegerAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1466:58: style:inconclusive: Function 'DBFWriteIntegerAttribute' argument 4 names different: declaration 'nFieldValue' definition 'nValue'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:525:62: note: Function 'DBFWriteIntegerAttribute' argument 4 names different: declaration 'nFieldValue' definition 'nValue'. shapelib-1.6.0/dbfopen.c:1466:58: note: Function 'DBFWriteIntegerAttribute' argument 4 names different: declaration 'nFieldValue' definition 'nValue'. shapelib-1.6.0/dbfopen.c:1480:51: style:inconclusive: Function 'DBFWriteStringAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:528:55: note: Function 'DBFWriteStringAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1480:51: note: Function 'DBFWriteStringAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1480:62: style:inconclusive: Function 'DBFWriteStringAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:528:65: note: Function 'DBFWriteStringAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1480:62: note: Function 'DBFWriteStringAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1481:65: style:inconclusive: Function 'DBFWriteStringAttribute' argument 4 names different: declaration 'pszFieldValue' definition 'pszValue'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:530:57: note: Function 'DBFWriteStringAttribute' argument 4 names different: declaration 'pszFieldValue' definition 'pszValue'. shapelib-1.6.0/dbfopen.c:1481:65: note: Function 'DBFWriteStringAttribute' argument 4 names different: declaration 'pszFieldValue' definition 'pszValue'. shapelib-1.6.0/dbfopen.c:1495:49: style:inconclusive: Function 'DBFWriteNULLAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:531:53: note: Function 'DBFWriteNULLAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1495:49: note: Function 'DBFWriteNULLAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1495:60: style:inconclusive: Function 'DBFWriteNULLAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:531:63: note: Function 'DBFWriteNULLAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1495:60: note: Function 'DBFWriteNULLAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1507:52: style:inconclusive: Function 'DBFWriteLogicalAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:534:56: note: Function 'DBFWriteLogicalAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1507:52: note: Function 'DBFWriteLogicalAttribute' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1507:63: style:inconclusive: Function 'DBFWriteLogicalAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:534:66: note: Function 'DBFWriteLogicalAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1507:63: note: Function 'DBFWriteLogicalAttribute' argument 2 names different: declaration 'iShape' definition 'iRecord'. shapelib-1.6.0/dbfopen.c:1508:65: style:inconclusive: Function 'DBFWriteLogicalAttribute' argument 4 names different: declaration 'lFieldValue' definition 'lValue'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:536:57: note: Function 'DBFWriteLogicalAttribute' argument 4 names different: declaration 'lFieldValue' definition 'lValue'. shapelib-1.6.0/dbfopen.c:1508:65: note: Function 'DBFWriteLogicalAttribute' argument 4 names different: declaration 'lFieldValue' definition 'lValue'. shapelib-1.6.0/dbfopen.c:1651:50: style:inconclusive: Function 'DBFGetNativeFieldType' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:552:54: note: Function 'DBFGetNativeFieldType' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1651:50: note: Function 'DBFGetNativeFieldType' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1764:42: style:inconclusive: Function 'DBFDeleteField' argument 1 names different: declaration 'hDBF' definition 'psDBF'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:500:46: note: Function 'DBFDeleteField' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:1764:42: note: Function 'DBFDeleteField' argument 1 names different: declaration 'hDBF' definition 'psDBF'. shapelib-1.6.0/dbfopen.c:497:24: style: Variable 'pabyFInfo' can be declared as pointer to const [constVariablePointer] shapelib-1.6.0/safileio.c:87:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] shapelib-1.6.0/shpadd.c:109:17: error: Common realloc mistake: 'padfX' nulled but not freed upon failure [memleakOnRealloc] shapelib-1.6.0/shpadd.c:110:17: error: Common realloc mistake: 'padfY' nulled but not freed upon failure [memleakOnRealloc] shapelib-1.6.0/shpadd.c:112:21: error: Common realloc mistake: 'padfZ' nulled but not freed upon failure [memleakOnRealloc] shapelib-1.6.0/shpadd.c:114:21: error: Common realloc mistake: 'padfM' nulled but not freed upon failure [memleakOnRealloc] shapelib-1.6.0/shpdump.c:97:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] shapelib-1.6.0/shpopen.c:185:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] shapelib-1.6.0/shpopen.c:581:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] shapelib-1.6.0/shpopen.c:1050:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] shapelib-1.6.0/shpopen.c:1785:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] shapelib-1.6.0/shpopen.c:1307:39: style: The statement 'if (psObject->panPartStart[0]!=0) psObject->panPartStart[0]=0' is logically equivalent to 'psObject->panPartStart[0]=0'. [duplicateConditionalAssign] shapelib-1.6.0/shpopen.c:1308:39: note: Assignment 'psObject->panPartStart[0]=0' shapelib-1.6.0/shpopen.c:1307:39: note: Condition 'psObject->panPartStart[0]!=0' is redundant shapelib-1.6.0/shpopen.c:318:36: style: Condition '*((unsigned char*)&i)==1' is always true [knownConditionTrueFalse] shapelib-1.6.0/shpopen.c:317:17: note: Assignment 'i=1', assigned value is 1 shapelib-1.6.0/shpopen.c:318:36: note: Condition '*((unsigned char*)&i)==1' is always true shapelib-1.6.0/shpopen.c:700:36: style: Condition '*((unsigned char*)&i)==1' is always true [knownConditionTrueFalse] shapelib-1.6.0/shpopen.c:699:17: note: Assignment 'i=1', assigned value is 1 shapelib-1.6.0/shpopen.c:700:36: note: Condition '*((unsigned char*)&i)==1' is always true shapelib-1.6.0/shpopen.c:1031:36: style: Condition '*((unsigned char*)&i)==1' is always true [knownConditionTrueFalse] shapelib-1.6.0/shpopen.c:1030:17: note: Assignment 'i=1', assigned value is 1 shapelib-1.6.0/shpopen.c:1031:36: note: Condition '*((unsigned char*)&i)==1' is always true shapelib-1.6.0/shpopen.c:827:17: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] shapelib-1.6.0/shpopen.c:105:43: style:inconclusive: Function 'SHPWriteHeader' argument 1 names different: declaration 'hSHP' definition 'psSHP'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:307:47: note: Function 'SHPWriteHeader' argument 1 names different: declaration 'hSHP' definition 'psSHP'. shapelib-1.6.0/shpopen.c:105:43: note: Function 'SHPWriteHeader' argument 1 names different: declaration 'hSHP' definition 'psSHP'. shapelib-1.6.0/shpopen.c:258:43: style:inconclusive: Function 'SHPOpen' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:263:47: note: Function 'SHPOpen' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. shapelib-1.6.0/shpopen.c:258:43: note: Function 'SHPOpen' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. shapelib-1.6.0/shpopen.c:292:45: style:inconclusive: Function 'SHPOpenLL' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:265:49: note: Function 'SHPOpenLL' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. shapelib-1.6.0/shpopen.c:292:45: note: Function 'SHPOpenLL' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. shapelib-1.6.0/shpopen.c:653:47: style:inconclusive: Function 'SHPOpenLLEx' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:268:51: note: Function 'SHPOpenLLEx' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. shapelib-1.6.0/shpopen.c:653:47: note: Function 'SHPOpenLLEx' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. shapelib-1.6.0/shpopen.c:676:43: style:inconclusive: Function 'SHPRestoreSHX' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:272:47: note: Function 'SHPRestoreSHX' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. shapelib-1.6.0/shpopen.c:676:43: note: Function 'SHPRestoreSHX' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. shapelib-1.6.0/shpopen.c:911:37: style:inconclusive: Function 'SHPClose' argument 1 names different: declaration 'hSHP' definition 'psSHP'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:306:41: note: Function 'SHPClose' argument 1 names different: declaration 'hSHP' definition 'psSHP'. shapelib-1.6.0/shpopen.c:911:37: note: Function 'SHPClose' argument 1 names different: declaration 'hSHP' definition 'psSHP'. shapelib-1.6.0/shpopen.c:978:39: style:inconclusive: Function 'SHPGetInfo' argument 1 names different: declaration 'hSHP' definition 'psSHP'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:285:43: note: Function 'SHPGetInfo' argument 1 names different: declaration 'hSHP' definition 'psSHP'. shapelib-1.6.0/shpopen.c:978:39: note: Function 'SHPGetInfo' argument 1 names different: declaration 'hSHP' definition 'psSHP'. shapelib-1.6.0/shpopen.c:1006:45: style:inconclusive: Function 'SHPCreate' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:282:49: note: Function 'SHPCreate' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. shapelib-1.6.0/shpopen.c:1006:45: note: Function 'SHPCreate' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. shapelib-1.6.0/shpopen.c:1022:47: style:inconclusive: Function 'SHPCreateLL' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:283:51: note: Function 'SHPCreateLL' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. shapelib-1.6.0/shpopen.c:1022:47: note: Function 'SHPCreateLL' argument 1 names different: declaration 'pszShapeFile' definition 'pszLayer'. shapelib-1.6.0/shpopen.c:1373:42: style:inconclusive: Function 'SHPWriteObject' argument 1 names different: declaration 'hSHP' definition 'psSHP'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:290:46: note: Function 'SHPWriteObject' argument 1 names different: declaration 'hSHP' definition 'psSHP'. shapelib-1.6.0/shpopen.c:1373:42: note: Function 'SHPWriteObject' argument 1 names different: declaration 'hSHP' definition 'psSHP'. shapelib-1.6.0/shpopen.c:1373:53: style:inconclusive: Function 'SHPWriteObject' argument 2 names different: declaration 'iShape' definition 'nShapeId'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:290:56: note: Function 'SHPWriteObject' argument 2 names different: declaration 'iShape' definition 'nShapeId'. shapelib-1.6.0/shpopen.c:1373:53: note: Function 'SHPWriteObject' argument 2 names different: declaration 'iShape' definition 'nShapeId'. shapelib-1.6.0/shpopen.c:1927:51: style:inconclusive: Function 'SHPReadObject' argument 1 names different: declaration 'hSHP' definition 'psSHP'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:289:55: note: Function 'SHPReadObject' argument 1 names different: declaration 'hSHP' definition 'psSHP'. shapelib-1.6.0/shpopen.c:1927:51: note: Function 'SHPReadObject' argument 1 names different: declaration 'hSHP' definition 'psSHP'. shapelib-1.6.0/shpopen.c:1927:62: style:inconclusive: Function 'SHPReadObject' argument 2 names different: declaration 'iShape' definition 'hEntity'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:289:65: note: Function 'SHPReadObject' argument 2 names different: declaration 'iShape' definition 'hEntity'. shapelib-1.6.0/shpopen.c:1927:62: note: Function 'SHPReadObject' argument 2 names different: declaration 'iShape' definition 'hEntity'. shapelib-1.6.0/shpopen.c:2799:46: style:inconclusive: Function 'SHPDestroyObject' argument 1 names different: declaration 'psObject' definition 'psShape'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:293:50: note: Function 'SHPDestroyObject' argument 1 names different: declaration 'psObject' definition 'psShape'. shapelib-1.6.0/shpopen.c:2799:46: note: Function 'SHPDestroyObject' argument 1 names different: declaration 'psObject' definition 'psShape'. shapelib-1.6.0/shptree.c:252:42: style:inconclusive: Function 'SHPDestroyTree' argument 1 names different: declaration 'hTree' definition 'psTree'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:353:46: note: Function 'SHPDestroyTree' argument 1 names different: declaration 'hTree' definition 'psTree'. shapelib-1.6.0/shptree.c:252:42: note: Function 'SHPDestroyTree' argument 1 names different: declaration 'hTree' definition 'psTree'. shapelib-1.6.0/shptree.c:513:44: style:inconclusive: Function 'SHPTreeAddShapeId' argument 1 names different: declaration 'hTree' definition 'psTree'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:357:48: note: Function 'SHPTreeAddShapeId' argument 1 names different: declaration 'hTree' definition 'psTree'. shapelib-1.6.0/shptree.c:513:44: note: Function 'SHPTreeAddShapeId' argument 1 names different: declaration 'hTree' definition 'psTree'. shapelib-1.6.0/shptree.c:1100:39: style:inconclusive: Function 'SHPWriteTree' argument 1 names different: declaration 'hTree' definition 'tree'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:355:43: note: Function 'SHPWriteTree' argument 1 names different: declaration 'hTree' definition 'tree'. shapelib-1.6.0/shptree.c:1100:39: note: Function 'SHPWriteTree' argument 1 names different: declaration 'hTree' definition 'tree'. shapelib-1.6.0/shptree.c:1100:57: style:inconclusive: Function 'SHPWriteTree' argument 2 names different: declaration 'pszFilename' definition 'filename'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:355:62: note: Function 'SHPWriteTree' argument 2 names different: declaration 'pszFilename' definition 'filename'. shapelib-1.6.0/shptree.c:1100:57: note: Function 'SHPWriteTree' argument 2 names different: declaration 'pszFilename' definition 'filename'. shapelib-1.6.0/shptree.c:1113:29: style:inconclusive: Function 'SHPWriteTreeLL' argument 1 names different: declaration 'hTree' definition 'tree'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:383:45: note: Function 'SHPWriteTreeLL' argument 1 names different: declaration 'hTree' definition 'tree'. shapelib-1.6.0/shptree.c:1113:29: note: Function 'SHPWriteTreeLL' argument 1 names different: declaration 'hTree' definition 'tree'. shapelib-1.6.0/shptree.c:1113:47: style:inconclusive: Function 'SHPWriteTreeLL' argument 2 names different: declaration 'pszFilename' definition 'filename'. [funcArgNamesDifferent] shapelib-1.6.0/shapefil.h:383:64: note: Function 'SHPWriteTreeLL' argument 2 names different: declaration 'pszFilename' definition 'filename'. shapelib-1.6.0/shptree.c:1113:47: note: Function 'SHPWriteTreeLL' argument 2 names different: declaration 'pszFilename' definition 'filename'. shapelib-1.6.0/shptreedump.c:215:36: style: Parameter 'padfCoord' can be declared as pointer to const [constParameterPointer] shapelib-1.6.0/shptreedump.c:365:10: style: Variable 'panHits' can be declared as pointer to const [constVariablePointer] shapelib-1.6.0/shputils.c:353:23: style: Local variable 'pt' shadows outer variable [shadowVariable] shapelib-1.6.0/shputils.c:60:6: note: Shadowed declaration shapelib-1.6.0/shputils.c:353:23: note: Shadow variable diff: DONE