author | ctornqvi |
Fri, 19 Aug 2016 10:06:30 -0400 | |
changeset 40631 | ed82623d7831 |
parent 39218 | 43ac06a5ee4f |
permissions | -rw-r--r-- |
39218
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
1 |
/* |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
2 |
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
4 |
* |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
8 |
* |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
13 |
* accompanied this code). |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
14 |
* |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
18 |
* |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
21 |
* questions. |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
22 |
* |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
23 |
*/ |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
24 |
|
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
25 |
// jcod file for UseBadInterface1.java |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
26 |
// class UseBadInterface1 implements p1.BadInterface1 { |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
27 |
// int i; |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
28 |
// UseBadInterface1() {} |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
29 |
// public static void main(java.lang.String[] unused) { } |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
30 |
// } |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
31 |
|
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
32 |
class UseBadInterface1 { |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
33 |
0xCAFEBABE; |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
34 |
0; // minor version |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
35 |
53; // version |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
36 |
[] { // Constant Pool |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
37 |
; // first element is empty |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
38 |
Method #3 #10; // #1 |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
39 |
Utf8 "UseBadInterface1.java"; // #2 |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
40 |
class #4; // #3 |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
41 |
Utf8 "java/lang/Object"; // #4 |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
42 |
class #8; // #5 |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
43 |
Utf8 "([Ljava/lang/String;)V"; // #6 |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
44 |
class #11; // #7 |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
45 |
Utf8 "UseBadInterface1"; // #8 |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
46 |
Utf8 "main"; // #9 |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
47 |
NameAndType #17 #13; // #10 |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
48 |
Utf8 "p1//BadInterface1"; // #11 |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
49 |
Utf8 "SourceFile"; // #12 |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
50 |
Utf8 "()V"; // #13 |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
51 |
Utf8 "I"; // #14 |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
52 |
Utf8 "Code"; // #15 |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
53 |
Utf8 "i"; // #16 |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
54 |
Utf8 "<init>"; // #17 |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
55 |
} // Constant Pool |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
56 |
|
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
57 |
0x0020; // access |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
58 |
#5;// this_cpx |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
59 |
#3;// super_cpx |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
60 |
|
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
61 |
[] { // Interfaces |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
62 |
#7; |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
63 |
} // Interfaces |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
64 |
|
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
65 |
[] { // fields |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
66 |
{ // Member |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
67 |
0x0000; // access |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
68 |
#16; // name_cpx |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
69 |
#14; // sig_cpx |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
70 |
[] { // Attributes |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
71 |
} // Attributes |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
72 |
} // Member |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
73 |
} // fields |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
74 |
|
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
75 |
[] { // methods |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
76 |
{ // Member |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
77 |
0x0000; // access |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
78 |
#17; // name_cpx |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
79 |
#13; // sig_cpx |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
80 |
[] { // Attributes |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
81 |
Attr(#15) { // Code |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
82 |
1; // max_stack |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
83 |
1; // max_locals |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
84 |
Bytes[]{ |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
85 |
0x2AB70001B1; |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
86 |
}; |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
87 |
[] { // Traps |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
88 |
} // end Traps |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
89 |
[] { // Attributes |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
90 |
} // Attributes |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
91 |
} // end Code |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
92 |
} // Attributes |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
93 |
} // Member |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
94 |
; |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
95 |
{ // Member |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
96 |
0x0009; // access |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
97 |
#9; // name_cpx |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
98 |
#6; // sig_cpx |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
99 |
[] { // Attributes |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
100 |
Attr(#15) { // Code |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
101 |
0; // max_stack |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
102 |
1; // max_locals |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
103 |
Bytes[]{ |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
104 |
0xB1; |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
105 |
}; |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
106 |
[] { // Traps |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
107 |
} // end Traps |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
108 |
[] { // Attributes |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
109 |
} // Attributes |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
110 |
} // end Code |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
111 |
} // Attributes |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
112 |
} // Member |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
113 |
} // methods |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
114 |
|
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
115 |
[] { // Attributes |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
116 |
Attr(#12) { // SourceFile |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
117 |
#2; |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
118 |
} // end SourceFile |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
119 |
} // Attributes |
43ac06a5ee4f
8158297: Lack of proper checking of non-well formed elements in CONSTANT_Utf8_info's structure
coleenp
parents:
diff
changeset
|
120 |
} // end class UseBadInterface1 |