Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8303475

potential null pointer dereference in filemap.cpp

XMLWordPrintable

    • b21
    • other

      An internal static analysis tool detected a potential null pointer dereference in SharedClassPathEntry::copy_from in filemap.cpp:

      void SharedClassPathEntry::copy_from(SharedClassPathEntry* ent, ClassLoaderData* loader_data, TRAPS) {
        _type = ent->_type;
        _is_module_path = ent->_is_module_path;
        _timestamp = ent->_timestamp;
        _filesize = ent->_filesize;
        _from_class_path_attr = ent->_from_class_path_attr;
      ...

      The ent could be null.

            ccheung Calvin Cheung
            shadowbug Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: