mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8167333: Invalid source path info might be used when creating ClassFileStream after CFLH transforms a shared classes in some cases
Use NULL as 'source' when there is no valid source path info. Reviewed-by: iklam, dholmes, dsamersoff
This commit is contained in:
parent
da45a98b46
commit
4d9fc9541d
3 changed files with 7 additions and 2 deletions
|
@ -283,11 +283,15 @@ public:
|
|||
bool validate_classpath_entry_table();
|
||||
|
||||
static SharedClassPathEntry* shared_classpath(int index) {
|
||||
if (index < 0) {
|
||||
return NULL;
|
||||
}
|
||||
char* p = (char*)_classpath_entry_table;
|
||||
p += _classpath_entry_size * index;
|
||||
return (SharedClassPathEntry*)p;
|
||||
}
|
||||
static const char* shared_classpath_name(int index) {
|
||||
assert(index >= 0, "Sanity");
|
||||
return shared_classpath(index)->_name;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue