'paraview-5.11.0.p001-FindCGNS.patch',
'paraview-5.11.0.p003-ParaViewClient.patch',
'paraview-5.11.0.p006-GIL.patch',
- 'paraview-5.11.0.p009-openturns-1.21.patch'
+ 'paraview-5.11.0.p009-openturns-1.21.patch',
+ 'paraview-5.11.0.p013-bos-43522-EnSightGoldBinaryReader-fix-int-overflow-when-openin.patch'
]
depend : [
'Python',
patches : [
'paraview-5.11.0.p001-FindCGNS.patch',
'paraview-5.11.0.p006-GIL.patch',
- 'paraview-5.11.0.p009-openturns-1.21.patch'
+ 'paraview-5.11.0.p009-openturns-1.21.patch',
+ 'paraview-5.11.0.p013-bos-43522-EnSightGoldBinaryReader-fix-int-overflow-when-openin.patch'
]
depend : [
'Python',
'paraview-5.11.0.p004-vtkUniformHyperTreeGrid.patch',
'paraview-5.11.0.p006-GIL.patch',
'paraview-5.11.0.p009-openturns-1.21.patch',
- 'paraview-5.11.0.p0011-add_dll_directory.patch'
+ 'paraview-5.11.0.p0011-add_dll_directory.patch',
+ 'paraview-5.11.0.p013-bos-43522-EnSightGoldBinaryReader-fix-int-overflow-when-openin.patch'
]
}
'paraview-5.11.0.p004-vtkUniformHyperTreeGrid.patch',
'paraview-5.11.0.p005-vtkPython-debug.patch',
'paraview-5.11.0.p006-GIL.patch',
- 'paraview-5.11.0.p009-openturns-1.21.patch'
+ 'paraview-5.11.0.p009-openturns-1.21.patch',
+ 'paraview-5.11.0.p013-bos-43522-EnSightGoldBinaryReader-fix-int-overflow-when-openin.patch'
]
}
patches : ['paraview-5.11.0.p001-FindCGNS.patch',
'paraview-5.11.0.p002-FindMPI.patch',
'paraview-5.11.0.p006-GIL.patch',
- 'paraview-5.11.0.p009-openturns-1.21.patch'
- ]
+ 'paraview-5.11.0.p009-openturns-1.21.patch',
+ 'paraview-5.11.0.p013-bos-43522-EnSightGoldBinaryReader-fix-int-overflow-when-openin.patch'
+ ]
depend : [
'Python',
'hdf5',
'paraview-5.11.0.p002-FindMPI.patch',
'paraview-0012-LATA_64BITS_IDS.patch',
'paraview-5.11.0.p006-GIL.patch',
- 'paraview-5.11.0.p009-openturns-1.21.patch'
+ 'paraview-5.11.0.p009-openturns-1.21.patch',
+ 'paraview-5.11.0.p013-bos-43522-EnSightGoldBinaryReader-fix-int-overflow-when-openin.patch'
]
depend : [
'Python',
'paraview-5.11.0.p008-cstdint-FD38.patch',
'paraview-5.11.0.p009-openturns-1.21.patch',
'paraview-5.11.0.p010-python-3.11.patch',
- 'paraview-5.11.0.p012-skip-FindTBB.patch'
+ 'paraview-5.11.0.p012-skip-FindTBB.patch',
+ 'paraview-5.11.0.p013-bos-43522-EnSightGoldBinaryReader-fix-int-overflow-when-openin.patch'
]
depend : [
'Python',
'paraview-5.11.0.p006-GIL.patch',
'paraview-5.11.0.p007-mpi4py-FD37.patch',
'paraview-5.11.0.p009-openturns-1.21.patch',
- 'paraview-5.11.0.p010-python-3.11.patch'
+ 'paraview-5.11.0.p010-python-3.11.patch',
+ 'paraview-5.11.0.p013-bos-43522-EnSightGoldBinaryReader-fix-int-overflow-when-openin.patch'
]
depend : [
'Python',
'paraview-5.11.0.p002-FindMPI.patch',
'paraview-5.11.0.p003-ParaViewClient.patch',
'paraview-5.11.0.p006-GIL.patch',
- 'paraview-5.11.0.p009-openturns-1.21.patch'
+ 'paraview-5.11.0.p009-openturns-1.21.patch',
+ 'paraview-5.11.0.p013-bos-43522-EnSightGoldBinaryReader-fix-int-overflow-when-openin.patch'
]
depend : [
'Python',
'paraview-5.11.0.p002-FindMPI.patch',
'paraview-5.11.0.p003-ParaViewClient.patch',
'paraview-5.11.0.p006-GIL.patch',
- 'paraview-5.11.0.p009-openturns-1.21.patch'
+ 'paraview-5.11.0.p009-openturns-1.21.patch',
+ 'paraview-5.11.0.p013-bos-43522-EnSightGoldBinaryReader-fix-int-overflow-when-openin.patch'
]
depend : [
'Python',
'paraview-5.11.0.p002-FindMPI.patch',
'paraview-5.11.0.p003-ParaViewClient.patch',
'paraview-5.11.0.p006-GIL.patch',
- 'paraview-5.11.0.p009-openturns-1.21.patch'
+ 'paraview-5.11.0.p009-openturns-1.21.patch',
+ 'paraview-5.11.0.p013-bos-43522-EnSightGoldBinaryReader-fix-int-overflow-when-openin.patch'
]
depend : [
'Python',
'paraview-5.11.0.p007-mpi4py-FD37.patch',
'paraview-5.11.0.p008-cstdint-FD38.patch',
'paraview-5.11.0.p009-openturns-1.21.patch',
- 'paraview-5.11.0.p010-python-3.11.patch'
+ 'paraview-5.11.0.p010-python-3.11.patch',
+ 'paraview-5.11.0.p013-bos-43522-EnSightGoldBinaryReader-fix-int-overflow-when-openin.patch'
]
depend : [
'Python',
'paraview-5.11.0.p006-GIL.patch',
'paraview-5.11.0.p007-mpi4py-FD37.patch',
'paraview-5.11.0.p009-openturns-1.21.patch',
- 'paraview-5.11.0.p010-python-3.11.patch'
+ 'paraview-5.11.0.p010-python-3.11.patch',
+ 'paraview-5.11.0.p013-bos-43522-EnSightGoldBinaryReader-fix-int-overflow-when-openin.patch'
]
depend : [
'Python',
--- /dev/null
+From 7135f862820948c522eaabcc6b9ff5c91fb0ae46 Mon Sep 17 00:00:00 2001
+From: Louis Gombert <louis.gombert@kitware.com>
+Date: Wed, 25 Sep 2024 16:38:20 +0200
+Subject: [PATCH] EnSightGoldBinaryReader: fix int overflow when opening large
+ datasets
+
+Convert int to vtkIdType when necessary
+
+(cherry picked from commit 3d830296ece3038d3ab03d195db3200604c4c27c)
+---
+ IO/EnSight/vtkEnSightGoldBinaryReader.cxx | 29 +++++++++++------------
+ IO/EnSight/vtkEnSightGoldBinaryReader.h | 2 +-
+ 2 files changed, 15 insertions(+), 16 deletions(-)
+
+diff --git a/VTK/IO/EnSight/vtkEnSightGoldBinaryReader.cxx b/VTK/IO/EnSight/vtkEnSightGoldBinaryReader.cxx
+index 9ec5d94457..ede20bbf3f 100644
+--- a/VTK/IO/EnSight/vtkEnSightGoldBinaryReader.cxx
++++ b/VTK/IO/EnSight/vtkEnSightGoldBinaryReader.cxx
+@@ -825,7 +825,7 @@ int vtkEnSightGoldBinaryReader::SkipUnstructuredGrid(char line[256])
+ {
+ vtkDebugMacro("nsided");
+ int* numNodesPerElement;
+- int numNodes = 0;
++ vtkIdType numNodes = 0;
+
+ // cellType = vtkEnSightReader::NSIDED;
+ this->ReadInt(&numElements);
+@@ -2112,8 +2112,8 @@ int vtkEnSightGoldBinaryReader::CreateUnstructuredGridOutput(
+ {
+ vtkDebugMacro("nsided");
+ int* numNodesPerElement;
+- int numNodes = 0;
+- int nodeCount = 0;
++ vtkIdType numNodes = 0;
++ vtkIdType nodeCount = 0;
+
+ cellType = vtkEnSightReader::NSIDED;
+ this->ReadInt(&numElements);
+@@ -2160,7 +2160,7 @@ int vtkEnSightGoldBinaryReader::CreateUnstructuredGridOutput(
+ // skipping ghost cells
+ vtkDebugMacro("g_nsided");
+ int* numNodesPerElement;
+- int numNodes = 0;
++ vtkIdType numNodes = 0;
+
+ // cellType = vtkEnSightReader::NSIDED;
+ this->ReadInt(&numElements);
+@@ -2390,12 +2390,12 @@ int vtkEnSightGoldBinaryReader::CreateUnstructuredGridOutput(
+ int* numNodesPerFace;
+ int* numNodesPerElement;
+ int* nodeMarker;
+- int numPts = 0;
+- int numFaces = 0;
+- int numNodes = 0;
+- int faceCount = 0;
+- int nodeCount = 0;
+- int elementNodeCount = 0;
++ vtkIdType numPts = 0;
++ vtkIdType numFaces = 0;
++ vtkIdType numNodes = 0;
++ vtkIdType faceCount = 0;
++ vtkIdType nodeCount = 0;
++ vtkIdType elementNodeCount = 0;
+
+ cellType = vtkEnSightReader::NFACED;
+ this->ReadInt(&numElements);
+@@ -2463,10 +2463,9 @@ int vtkEnSightGoldBinaryReader::CreateUnstructuredGridOutput(
+ this->ReadIntArray(nodeIdList, numNodes);
+
+ // yyy begin
+- int k; // indexing each node Id of a face
+- int faceIdx = 0; // indexing faces throughout all polyhedra
+- int nodeIdx = 0; // indexing nodes throughout all polyhedra
+- int arayIdx = 0; // indexing the array of Ids (info of faces)
++ int k; // indexing each node Id of a face
++ vtkIdType faceIdx = 0; // indexing faces throughout all polyhedra
++ vtkIdType nodeIdx = 0; // indexing nodes throughout all polyhedra
+ vtkIdType* faceAry = nullptr; // array of Ids describing a vtkPolyhedron
+ // yyy end
+
+@@ -3402,7 +3401,7 @@ int vtkEnSightGoldBinaryReader::ReadFloat(float* result)
+
+ // Internal function to read an integer array.
+ // Returns zero if there was an error.
+-int vtkEnSightGoldBinaryReader::ReadIntArray(int* result, int numInts)
++int vtkEnSightGoldBinaryReader::ReadIntArray(int* result, vtkIdType numInts)
+ {
+ if (numInts <= 0)
+ {
+diff --git a/VTK/IO/EnSight/vtkEnSightGoldBinaryReader.h b/VTK/IO/EnSight/vtkEnSightGoldBinaryReader.h
+index dd88876ad9..31bd8faebd 100644
+--- a/VTK/IO/EnSight/vtkEnSightGoldBinaryReader.h
++++ b/VTK/IO/EnSight/vtkEnSightGoldBinaryReader.h
+@@ -188,7 +188,7 @@ protected:
+ * Internal function to read in an integer array.
+ * Returns zero if there was an error.
+ */
+- int ReadIntArray(int* result, int numInts);
++ int ReadIntArray(int* result, vtkIdType numInts);
+
+ /**
+ * Internal function to read in a single long.
+--
+2.47.0
+