Skip to content

Commit e119658

Browse files
committed
8303475: potential null pointer dereference in filemap.cpp
Reviewed-by: dholmes
1 parent cf799ba commit e119658

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hotspot/share/cds/filemap.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ void SharedClassPathEntry::set_name(const char* name, TRAPS) {
361361
}
362362

363363
void SharedClassPathEntry::copy_from(SharedClassPathEntry* ent, ClassLoaderData* loader_data, TRAPS) {
364+
assert(ent != NULL, "sanity");
364365
_type = ent->_type;
365366
_is_module_path = ent->_is_module_path;
366367
_timestamp = ent->_timestamp;

0 commit comments

Comments
 (0)