Gentoo Archives: gentoo-commits

From: "Kacper Kowalik (xarthisius)" <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/hdf5/files: hdf5-1.8.8-implicits.patch hdf5-1.8.8-array_bounds.patch
Date: Mon, 21 Nov 2011 17:33:26
Message-Id: 20111121173309.3800C2004B@flycatcher.gentoo.org
1 xarthisius 11/11/21 17:33:09
2
3 Added: hdf5-1.8.8-implicits.patch
4 hdf5-1.8.8-array_bounds.patch
5 Log:
6 Fix implicits and array out of bounds
7
8 (Portage version: 2.2.0_alpha75/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 sci-libs/hdf5/files/hdf5-1.8.8-implicits.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/files/hdf5-1.8.8-implicits.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/files/hdf5-1.8.8-implicits.patch?rev=1.1&content-type=text/plain
15
16 Index: hdf5-1.8.8-implicits.patch
17 ===================================================================
18 --- b/configure.in
19 +++ a/configure.in
20 @@ -1499,6 +1499,9 @@
21 dnl though we do not do this as it breaks the big test on older versions
22 dnl of linux (CentOS 4.6) using newer versions of gcc (4.6.2).
23 AM_CPPFLAGS="-D_BSD_SOURCE $AM_CPPFLAGS"
24 +
25 + dnl _GNU_SOURCE is needed for vasprintf
26 + AM_CPPFLAGS="-D_GNU_SOURCE $AM_CPPFLAGS"
27 ;;
28 esac
29
30 --- a/test/cache_common.h
31 +++ b/test/cache_common.h
32 @@ -702,5 +702,9 @@
33 hbool_t compare_init,
34 int test_num);
35
36 +hbool_t resize_configs_are_equal(const H5C_auto_size_ctl_t *a,
37 + const H5C_auto_size_ctl_t *b,
38 + hbool_t compare_init);
39 +
40 #endif /* _CACHE_COMMON_H */
41
42 --- a/tools/misc/talign.c
43 +++ b/tools/misc/talign.c
44 @@ -23,6 +23,7 @@
45
46 #include "hdf5.h"
47 #include "H5private.h"
48 +#include "h5tools.h"
49
50 const char *fname = "talign.h5";
51 const char *setname = "align";
52 --- a/tools/h5repack/testh5repack_detect_szip.c
53 +++ b/tools/h5repack/testh5repack_detect_szip.c
54 @@ -17,6 +17,7 @@
55 #include "h5repack.h"
56 #include "h5tools.h"
57 #include "h5test.h"
58 +#include "h5tools_utils.h"
59
60
61 /* Name of tool */
62 --- a/tools/h5jam/h5jam.c
63 +++ b/tools/h5jam/h5jam.c
64 @@ -15,6 +15,7 @@
65
66 #include "hdf5.h"
67 #include "H5private.h"
68 +#include "h5tools.h"
69 #include "h5tools_utils.h"
70
71 /* Name of tool */
72 --- a/tools/h5jam/h5unjam.c
73 +++ b/tools/h5jam/h5unjam.c
74 @@ -15,6 +15,7 @@
75
76 #include "hdf5.h"
77 #include "H5private.h"
78 +#include "h5tools.h"
79 #include "h5tools_utils.h"
80
81 /* Name of tool */
82 --- a/tools/h5copy/h5copygentest.c
83 +++ b/tools/h5copy/h5copygentest.c
84 @@ -20,6 +20,7 @@
85 #include "hdf5.h"
86 #include "H5private.h"
87 #include "h5tools.h"
88 +#include "h5tools_utils.h"
89
90 /* Name of tool */
91 #define PROGRAMNAME "h5copygentest"
92 --- a/hl/src/H5LTanalyze.c
93 +++ b/hl/src/H5LTanalyze.c
94 @@ -49,7 +49,8 @@
95 #define YY_FLEX_MINOR_VERSION 5
96
97 #include <stdio.h>
98 +#include "H5pubconf.h"
99 #ifdef H5_HAVE_UNISTD_H
100 #include <unistd.h>
101 #endif
102
103
104
105
106 1.1 sci-libs/hdf5/files/hdf5-1.8.8-array_bounds.patch
107
108 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/files/hdf5-1.8.8-array_bounds.patch?rev=1.1&view=markup
109 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf5/files/hdf5-1.8.8-array_bounds.patch?rev=1.1&content-type=text/plain
110
111 Index: hdf5-1.8.8-array_bounds.patch
112 ===================================================================
113 --- a/perform/pio_engine.c
114 +++ b/perform/pio_engine.c
115 @@ -454,7 +454,7 @@
116 subdir = (user ? user : login);
117
118 if (subdir) {
119 - for (i = 0; i < size && prefix[i]; i++)
120 + for (i = 0; i < size-1 && prefix[i]; i++)
121 fullname[i] = prefix[i];
122
123 fullname[i++] = '/';
124 --- a/perform/sio_engine.c
125 +++ b/perform/sio_engine.c
126 @@ -353,7 +353,7 @@
127 subdir = (user ? user : login);
128
129 if (subdir) {
130 - for (i = 0; i < size && prefix[i]; i++)
131 + for (i = 0; i < size-1 && prefix[i]; i++)
132 fullname[i] = prefix[i];
133
134 fullname[i++] = '/';