I confirm that your patch fixes it too.
Fix for segfault on macOS Ventura
Build patches used in homebrew
Patch for compilation under OS X
COMP: Use pygccxml's public API for apply defin...
ENH: pygccxml v1.8.0 (reduced)
ENH: Update UpdatepygccxmlFromUpstream.sh for v...
Merge branch 'pygccxml-upstream' into pygccxml-...
ENH: Update igenerator.py for pygccxml v1.8.0
ENH: Use https URL for OS X castxml binary (for...
ENH: Use argparse instead of optparse in igener...
COMP: Fix RayCastInterpolateImageFunction wrapp...
ENH: pygccxml v1.7.3 (reduced)
ENH: Update UpdatepygccxmlFromUpstream.sh script
COMP: Set CastXML path and name for pygccxml 1.7.3
ENH: Update pygccxml to v1.7.3
ENH: Consolidate .idx file generation with swig...
COMP: Remove debug output after vcl_complex rem...
ENH: Wrap RayCastInterpolateImageFunction
ENH: Update PCRE to version 8.38
ENH: Update to Swig 3.0.8
ENH: Use importlib for python 3.4 instead of imp
COMP: Re-enable review module for python 3 and ...
ENH: Allow Python 3 wrapping for Glue and Revie...
ENH: Allow operations on Indexes and Offsets in...
COMP: Move MovingHistogramImageFilterBase wrapp...
COMP: Disable incompatible modules when using P...
COMP: Use ITK's pygccxml by correctly setting u...
COMP: Add missing wrapping for TransformBase
COMP: Fix wrapping warnings when building with ...
ENH: Do not link against specific Python librar...
ENH: Update to swig 3.0.7
ENH: Enable wrapping of 4 dimensional vectors
ENH: Remove inline namespace fix for Wrapping
ENH: Update to PCRE 8.37
ENH: Wrap CustomColormapFunction
ENH: Wrap MersenneTwisterRandomVariateGenerator
BUG: Wrap FixedArray sizes also for vector comp...
STYLE: Replace GCCXML by CASTXML
STYLE: Rename ITK_WRAP_DIMS to ITK_WRAP_IMAGE_DIMS
ENH: Add ITK_WRAP_VECTOR_COMPONENTS option
COMP: Fix DiffeomorphicDemonsRegistration Wrapping
ENH: Add checks for base types when wrapping mo...
ENH: Cleanup itkComposeImageFilter wrapping
ENH: Setup correct wrapping of GradientRecursiv...
ENH: Improve wrapping for Vector image types
ENH: Add Get/SetSigmaArray to GradientRecursive...
COMP: Fix PythonReadDicomTagTest on OS X
ENH: Update to SWIG 3.0.5
ENH: Update to swig 3.0.3
STYLE: Cleanup up cmake files (if, endif, forea...
COMP: Use c++ style comments in pyBase.i
DOC: Improvements for Book1, Chap4
ENH: Add CVD and CVF types to VectorIndexSelect...
COMP: Bump SCIFIO to fix test build warnings
COMP: Fix wrapping of itkImageFunctionBase
COMP: Add a check for Blocks in GPU module
COMP: Fix warning for InterpolateImageFunction ...
ENH: Add Vector and RGB wrapping to linear inte...
STYLE: Remove SORT macro in wrappings
ENH: Add option to disable sorting by size in i...
ENH: Deprecate VectorResampleImageFilter
DOC: Fix typo in RelabelComponentImageFilter
STYLE: Some minor code cleanup in the wrapping ...
ENH: Add wrapping configuration to ITKConfig.cmake
COMP: Refactor Wrapping setup and fix legacy wa...
ENH: Update to PCRE 8.36
STYLE: Remove old cmake < 2.8.5 specific code
STYLE: Remove old cmake < 2.8.4 specific code
COMP: Fix CMP0054 warnings in wrappings
ENH: Add new GetTypes() and GetTypesAsList() me...
ENH: Do not setup the python tests if not asked
DOC: Remove broken link from LabelObject class ...
STYLE: LabelObject style
COMP: Fix for conversion to non-pointer like ty...
ENH: Remove Sun OS compatibility for the wrappings
ENH: pygccxml v1.6.2 (reduced)
ENH: Add script to update pygccxml from upstream
ENH: Update pygccxml to v1.6.2
STYLE: Set ITK_USE_SYTEM_ZLIB and ITK_USE_SYTEM...
BUG: Update VTK minimum version (for release)
BUG: Fix memory leak in MetaImageIO after excep...
STYLE: Remove trailing whitespaces
COMP: Fix SSE2 build errors with WrapITK on GCC...
COMP: Add wrapping for ThreadPool and ThreadJob
COMP: Remove unimplemented DestroyPool method
COMP: Do not hide pygccxml warnings
ENH: Update links in readme file
COMP: Fix itkVnlComplexToComplexFFTImageFilter ...
BUG: Improve SWIG version check
ENH: Fixes for python 3 support
BUG: Add VTK_VERSION for older VTK versions
ENH: Remove GeodesicActiveContourImageFilter.py...
STYLE: Threshold Segmentation LevelSet Image Fi...
BUG: Fix GeodesicActiveContourImageFilterOutput...
ENH: Use open() instead of file() for python 3 ...
STYLE: Pep8 cleanup for generators
ENH: Allow to use methods which pass std::strin...
COMP: Fix default wrapping with all modules
COMP: Move itkMatrixCoefficients wrapping to Fi...