Mercurial > hg > graal-jvmci-8
comparison src/share/vm/classfile/classFileParser.hpp @ 1586:086d73ccd6c0
6930553: classfile format checker allows invalid method descriptor in CONSTANT_NameAndType_info in some cases
Summary: Check NameAndType_info signatures aggressively, even when unreferenced
Reviewed-by: coleenp, acorn, never
author | kamg |
---|---|
date | Thu, 27 May 2010 17:06:39 -0400 |
parents | 26b774d693aa |
children | 3a9de63b2209 |
comparison
equal
deleted
inserted
replaced
1561:3548f3198dca | 1586:086d73ccd6c0 |
---|---|
193 } | 193 } |
194 inline void guarantee_property(bool b, const char* msg, int index, const char *name, TRAPS) { | 194 inline void guarantee_property(bool b, const char* msg, int index, const char *name, TRAPS) { |
195 if (!b) { classfile_parse_error(msg, index, name, CHECK); } | 195 if (!b) { classfile_parse_error(msg, index, name, CHECK); } |
196 } | 196 } |
197 | 197 |
198 void throwIllegalSignature( | |
199 const char* type, symbolHandle name, symbolHandle sig, TRAPS); | |
200 | |
198 bool is_supported_version(u2 major, u2 minor); | 201 bool is_supported_version(u2 major, u2 minor); |
199 bool has_illegal_visibility(jint flags); | 202 bool has_illegal_visibility(jint flags); |
200 | 203 |
201 void verify_constantvalue(int constantvalue_index, int signature_index, constantPoolHandle cp, TRAPS); | 204 void verify_constantvalue(int constantvalue_index, int signature_index, constantPoolHandle cp, TRAPS); |
202 void verify_legal_utf8(const unsigned char* buffer, int length, TRAPS); | 205 void verify_legal_utf8(const unsigned char* buffer, int length, TRAPS); |