[med-svn] [opensurgsim] 01/01: Fixes FEM ply reading on s390x and ppc64 (Closes: #798715)

Paul Novotny paulnovo-guest at moszumanska.debian.org
Sat Sep 19 17:07:54 UTC 2015


This is an automated email from the git hooks/post-receive script.

paulnovo-guest pushed a commit to branch master
in repository opensurgsim.

commit 781db8e5203635f90cbe043f6642ef5b02ad793b
Author: Paul Novotny <paul at paulnovo.us>
Date:   Sat Sep 19 13:06:24 2015 -0400

    Fixes FEM ply reading on s390x and ppc64 (Closes: #798715)
---
 debian/patches/fix-fem-ply-reading.patch | 26 ++++++++++++++++++++++++++
 debian/patches/series                    |  1 +
 2 files changed, 27 insertions(+)

diff --git a/debian/patches/fix-fem-ply-reading.patch b/debian/patches/fix-fem-ply-reading.patch
new file mode 100644
index 0000000..94d988a
--- /dev/null
+++ b/debian/patches/fix-fem-ply-reading.patch
@@ -0,0 +1,26 @@
+Description: Removes reading memory as size_t when it is unsinged int
+ In the FEM ply reader, boundary condition indexes were being read from memory
+ as size_t when they were in fact unsigned int. This caused the values to be
+ incorrect on 64-bit big endian architectures (s390x and ppc64).
+Author: Paul Novotny <paul at paulnovo.us>
+Bug-Debian: https://bugs.debian.org/798715
+Last-Update: 2015-09-19
+
+--- a/SurgSim/Physics/FemPlyReaderDelegate.h
++++ b/SurgSim/Physics/FemPlyReaderDelegate.h
+@@ -109,7 +109,7 @@
+ 	bool m_hasBoundaryConditions;
+ 
+ 	/// Internal data to receive the "boundary_condition" element
+-	size_t m_boundaryConditionData;
++	unsigned int m_boundaryConditionData;
+ 
+ 	/// Internal iterator to save the "vertex" element
+ 	double* m_vertexIterator;
+@@ -146,4 +146,4 @@
+ } // namespace Physics
+ } // namespace SurgSim
+ 
+-#endif // SURGSIM_PHYSICS_FEMPLYREADERDELEGATE_H
+\ No newline at end of file
++#endif // SURGSIM_PHYSICS_FEMPLYREADERDELEGATE_H
diff --git a/debian/patches/series b/debian/patches/series
index 6269cb2..2171fc5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,3 +9,4 @@ fix-timer.patch
 backport-c7925c91f.patch
 backport-7b1d8836f.patch
 fix-epsilon-for-tests.patch
+fix-fem-ply-reading.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/opensurgsim.git



More information about the debian-med-commit mailing list