summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/hdf5/files/hdf5-1.8.8-array_bounds.patch')
-rw-r--r--sci-libs/hdf5/files/hdf5-1.8.8-array_bounds.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/sci-libs/hdf5/files/hdf5-1.8.8-array_bounds.patch b/sci-libs/hdf5/files/hdf5-1.8.8-array_bounds.patch
new file mode 100644
index 000000000000..042d012d1621
--- /dev/null
+++ b/sci-libs/hdf5/files/hdf5-1.8.8-array_bounds.patch
@@ -0,0 +1,22 @@
+--- a/perform/pio_engine.c
++++ b/perform/pio_engine.c
+@@ -454,7 +454,7 @@
+ subdir = (user ? user : login);
+
+ if (subdir) {
+- for (i = 0; i < size && prefix[i]; i++)
++ for (i = 0; i < size-1 && prefix[i]; i++)
+ fullname[i] = prefix[i];
+
+ fullname[i++] = '/';
+--- a/perform/sio_engine.c
++++ b/perform/sio_engine.c
+@@ -353,7 +353,7 @@
+ subdir = (user ? user : login);
+
+ if (subdir) {
+- for (i = 0; i < size && prefix[i]; i++)
++ for (i = 0; i < size-1 && prefix[i]; i++)
+ fullname[i] = prefix[i];
+
+ fullname[i++] = '/';