mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
Merge
This commit is contained in:
commit
333c0c2453
9 changed files with 108 additions and 36 deletions
|
@ -4958,6 +4958,7 @@ void ClassFileParser::verify_legal_utf8(const unsigned char* buffer,
|
|||
bool ClassFileParser::verify_unqualified_name(const char* name,
|
||||
unsigned int length,
|
||||
int type) {
|
||||
if (length == 0) return false; // Must have at least one char.
|
||||
for (const char* p = name; p != name + length; p++) {
|
||||
switch(*p) {
|
||||
case '.':
|
||||
|
@ -5107,7 +5108,7 @@ const char* ClassFileParser::skip_over_field_signature(const char* signature,
|
|||
int newlen = c - (char*) signature;
|
||||
bool legal = verify_unqualified_name(signature, newlen, LegalClass);
|
||||
if (!legal) {
|
||||
classfile_parse_error("Class name contains illegal character "
|
||||
classfile_parse_error("Class name is empty or contains illegal character "
|
||||
"in descriptor in class file %s",
|
||||
CHECK_0);
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue