9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 /**
26 * @test
27 * @bug 6663621
28 * @summary JVM crashes while trying to execute api/java_security/Signature/SignatureTests.html#initSign tests.
29 */
30
31 public class IVTest {
32 static int paddedSize;
33
34 static void padV15(byte[] padded) {
35 int psSize = padded.length;
36 int k = 0;
37 while (psSize-- > 0) {
38 padded[k++] = (byte)0xff;
39 }
40 }
41
42 static void padV15_2(int paddedSize) {
43 byte[] padded = new byte[paddedSize];
44 int psSize = padded.length;
45 int k = 0;
46 while (psSize-- > 0) {
47 padded[k++] = (byte)0xff;
48 }
49 }
50
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 /**
26 * @test
27 * @bug 6663621
28 * @summary JVM crashes while trying to execute api/java_security/Signature/SignatureTests.html#initSign tests.
29 *
30 * @run main compiler.c2.IVTest
31 */
32
33 package compiler.c2;
34
35 public class IVTest {
36 static int paddedSize;
37
38 static void padV15(byte[] padded) {
39 int psSize = padded.length;
40 int k = 0;
41 while (psSize-- > 0) {
42 padded[k++] = (byte)0xff;
43 }
44 }
45
46 static void padV15_2(int paddedSize) {
47 byte[] padded = new byte[paddedSize];
48 int psSize = padded.length;
49 int k = 0;
50 while (psSize-- > 0) {
51 padded[k++] = (byte)0xff;
52 }
53 }
54
|