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.

              Assignee:
              Calvin Cheung (Inactive)
              Reporter:
              Shadow Bug
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: