Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang-8 scan-build report #1261

Open
gdevenyi opened this issue Sep 18, 2019 · 1 comment

Comments

@gdevenyi
Copy link
Contributor

commented Sep 18, 2019

Following some recent cleanup work with ANTs, I ran clang-8's scan-build against ITK master today.

The complete scan-build report can be downloaded from:
https://drive.google.com/open?id=1eZ0iTtLXTyZC6TXoRFXgH8vo1TWaE2vV

Skimming the report, most of the reported issues are in the ThirdParty modules. I have already reported a extensive buglist to the HDF5 folks.

There are a few bugs in Numerics and Core

@gdevenyi gdevenyi added the type:Bug label Sep 18, 2019
@gdevenyi

This comment has been minimized.

Copy link
Contributor Author

commented Sep 18, 2019

Copy and paste from the index.html, for the non-thirdparty lines:

Bug Group Bug Type File ▾ Function/Method Line Path Length  
Logic error Called C++ object pointer is null scratch/ITK-build/KWStyle/Utilities/boost/xpressive/detail/dynamic/sequence.hpp operator+= 77 26 View Report
Logic error Called C++ object pointer is null scratch/ITK-build/KWStyle/Utilities/boost/xpressive/detail/dynamic/sequence.hpp operator+= 77 18 View Report
Logic error Called C++ object pointer is null scratch/ITK-build/KWStyle/Utilities/boost/xpressive/detail/dynamic/sequence.hpp operator+= 77 16 View Report
Dead store Dead assignment scratch/ITK-build/KWStyle/kwsCheckIndent.cxx CheckIndent 224 1 View Report
Dead store Dead assignment scratch/ITK-build/KWStyle/kwsCheckMemberFunctions.cxx FindMemberFunction 308 1 View Report
Dead store Dead assignment scratch/ITK-build/KWStyle/kwsCheckOperator.cxx FindOperator 242 1 View Report
Dead store Dead assignment scratch/ITK-build/Modules/ThirdParty/HDF5/src/itkhdf5/H5Tinit.c itk_H5T__init_native 967 1 View Report
Memory error Use-after-free scratch/ants-build/ITKv5/Modules/Core/Common/include/itkSmartPointer.h Register 212 17 View Report
Memory error Use-after-free scratch/ants-build/ITKv5/Modules/Core/Common/include/itkSmartPointer.h UnRegister 221 18 View Report
Memory error Use-after-free scratch/ants-build/ITKv5/Modules/Core/Common/include/itkVariableLengthVector.hxx operator== 404 19 View Report
Logic error Uninitialized argument value scratch/ants-build/ITKv5/Modules/Core/Common/src/itkPlatformMultiThreader.cxx SingleMethodExecute 211 8 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Core/Common/src/itkPoolMultiThreader.cxx ParallelizeImageRegion 271 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Core/Common/test/itkImageVectorOptimizerParametersHelperTest.cxx itkImageVectorOptimizerParametersHelperTest 146 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Core/Common/test/itkVariableLengthVectorTest.cxx itkVariableLengthVectorTest 185 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Filtering/BiasCorrection/test/itkMRIBiasFieldCorrectionFilterTest.cxx itkMRIBiasFieldCorrectionFilterTest 336 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Filtering/Path/test/itkHilbertPathTest.cxx itkHilbertPathTest 100 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Filtering/Path/test/itkHilbertPathTest.cxx itkHilbertPathTest 111 1 View Report
Dead store Dead initialization scratch/ants-build/ITKv5/Modules/IO/BMP/test/itkBMPImageIOTestPalette.cxx itkBMPImageIOTestPalette 57 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/IO/CSV/src/itkCSVFileReaderBase.cxx GetNextField 272 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/IO/GDCM/src/itkGDCMImageIO.cxx Read 332 1 View Report
Dead store Dead increment scratch/ants-build/ITKv5/Modules/IO/MRC/src/itkMRCHeaderObject.cxx SetHeader 156 1 View Report
Memory error Memory leak scratch/ants-build/ITKv5/Modules/IO/MeshVTK/src/itkVTKPolyDataMeshIO.cxx ReadCellsBufferAsBINARY 993 16 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/IO/Meta/src/itkMetaImageIO.cxx Write 744 1 View Report
Logic error Result of operation is garbage or undefined scratch/ants-build/ITKv5/Modules/IO/Stimulate/src/itkStimulateImageIO.cxx InternalReadImageInformation 432 19 View Report
Logic error Result of operation is garbage or undefined scratch/ants-build/ITKv5/Modules/IO/TIFF/src/itkTIFFImageIO.cxx AllocateTiffPalette 1031 29 View Report
Logic error Division by zero scratch/ants-build/ITKv5/Modules/Numerics/Optimizers/src/itkCumulativeGaussianCostFunction.cxx CalculateFitError 67 6 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Optimizersv4/test/itkRegularStepGradientDescentOptimizerv4Test.cxx itkRegularStepGradientDescentOptimizerv4Test 296 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Optimizersv4/test/itkRegularStepGradientDescentOptimizerv4Test.cxx itkRegularStepGradientDescentOptimizerv4Test 313 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Optimizersv4/test/itkRegularStepGradientDescentOptimizerv4Test.cxx itkRegularStepGradientDescentOptimizerv4Test 331 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Optimizersv4/test/itkRegularStepGradientDescentOptimizerv4Test.cxx itkRegularStepGradientDescentOptimizerv4Test 349 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Optimizersv4/test/itkRegularStepGradientDescentOptimizerv4Test.cxx itkRegularStepGradientDescentOptimizerv4Test 363 1 View Report
Logic error Dereference of null pointer scratch/ants-build/ITKv5/Modules/Numerics/Statistics/src/itkNormalVariateGenerator.cxx FastNorm 252 11 View Report
Logic error Dereference of null pointer scratch/ants-build/ITKv5/Modules/Numerics/Statistics/src/itkNormalVariateGenerator.cxx FastNorm 294 12 View Report
Logic error Dereference of null pointer scratch/ants-build/ITKv5/Modules/Numerics/Statistics/src/itkNormalVariateGenerator.cxx FastNorm 336 12 View Report
Logic error Dereference of null pointer scratch/ants-build/ITKv5/Modules/Numerics/Statistics/src/itkNormalVariateGenerator.cxx FastNorm 378 12 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkChiSquareDistributionTest.cxx itkChiSquareDistributionTest 99 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkChiSquareDistributionTest.cxx itkChiSquareDistributionTest 135 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkChiSquareDistributionTest.cxx itkChiSquareDistributionTest 191 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkChiSquareDistributionTest.cxx itkChiSquareDistributionTest 227 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkChiSquareDistributionTest.cxx itkChiSquareDistributionTest 273 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkChiSquareDistributionTest.cxx itkChiSquareDistributionTest 309 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkChiSquareDistributionTest.cxx itkChiSquareDistributionTest 355 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkChiSquareDistributionTest.cxx itkChiSquareDistributionTest 392 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkChiSquareDistributionTest.cxx itkChiSquareDistributionTest 433 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkChiSquareDistributionTest.cxx itkChiSquareDistributionTest 470 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkGaussianDistributionTest.cxx itkGaussianDistributionTest 89 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkGaussianDistributionTest.cxx itkGaussianDistributionTest 118 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkGaussianDistributionTest.cxx itkGaussianDistributionTest 159 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkGaussianDistributionTest.cxx itkGaussianDistributionTest 203 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkGaussianDistributionTest.cxx itkGaussianDistributionTest 240 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkGaussianDistributionTest.cxx itkGaussianDistributionTest 270 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkHistogramTest.cxx itkHistogramTest 344 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkHistogramTest.cxx itkHistogramTest 352 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkHistogramTest.cxx itkHistogramTest 359 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkHistogramTest.cxx itkHistogramTest 365 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkImageToListSampleFilterTest.cxx itkImageToListSampleFilterTest 143 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkImageToListSampleFilterTest.cxx itkImageToListSampleFilterTest 154 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkImageToListSampleFilterTest.cxx itkImageToListSampleFilterTest 161 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkImageToListSampleFilterTest.cxx itkImageToListSampleFilterTest 204 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkPointSetToListSampleAdaptorTest.cxx itkPointSetToListSampleAdaptorTest 53 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkPointSetToListSampleAdaptorTest.cxx itkPointSetToListSampleAdaptorTest 66 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkPointSetToListSampleAdaptorTest.cxx itkPointSetToListSampleAdaptorTest 80 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkPointSetToListSampleAdaptorTest.cxx itkPointSetToListSampleAdaptorTest 94 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkScalarImageToCooccurrenceMatrixFilterTest.cxx itkScalarImageToCooccurrenceMatrixFilterTest 108 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkScalarImageToRunLengthFeaturesFilterTest.cxx itkScalarImageToRunLengthFeaturesFilterTest 114 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkScalarImageToTextureFeaturesFilterTest.cxx itkScalarImageToTextureFeaturesFilterTest 114 1 View Report
Dead store Dead initialization scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkSubsampleTest.cxx itkSubsampleTest 39 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkTDistributionTest.cxx itkTDistributionTest 94 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkTDistributionTest.cxx itkTDistributionTest 130 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkTDistributionTest.cxx itkTDistributionTest 179 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkTDistributionTest.cxx itkTDistributionTest 215 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkTDistributionTest.cxx itkTDistributionTest 263 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkTDistributionTest.cxx itkTDistributionTest 300 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkTDistributionTest.cxx itkTDistributionTest 344 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Numerics/Statistics/test/itkTDistributionTest.cxx itkTDistributionTest 380 1 View Report
Dead store Dead increment scratch/ants-build/ITKv5/Modules/Registration/Common/test/itkLandmarkBasedTransformInitializerTest.cxx itkLandmarkBasedTransformInitializerTest 217 1 View Report
Dead store Dead initialization scratch/ants-build/ITKv5/Modules/Registration/Metricsv4/test/itkImageToImageMetricv4Test.cxx itkImageToImageMetricv4Test 411 1 View Report
Dead store Dead assignment scratch/ants-build/ITKv5/Modules/Registration/Metricsv4/test/itkImageToImageMetricv4Test.cxx itkImageToImageMetricv4Test 522 1 View Report
Dead store Dead initialization scratch/ants-build/ITKv5/Modules/Segmentation/LevelSetsv4/test/itkLevelSetDenseImageTest.cxx itkLevelSetDenseImageTest 138 1 View Report
Dead store Dead initialization scratch/ants-build/ITKv5/Modules/Segmentation/LevelSetsv4/test/itkLevelSetDenseImageTest.cxx itkLevelSetDenseImageTest 139 1 View Report
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.