Uploaded image for project: 'Hot Rod Native client'
  1. Hot Rod Native client
  2. HRCPP-1

Default copy-constructor for RemoteCacheBase leaves dangling reference

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.0.0.Alpha1
    • None
    • None
    • None

      If the RemoteCacheBase is copied, the default copy-constructor leaves the RemoteCacheImpl pointing to the original RemoteCacheBase instance (which may be already destructed). This leads to accessing some garbage and segfault.

      Writing the copy-constructor might be tricky as RemoteCacheImpl has no virtual clone() method, but I may miss the purpose of the separation and this may not be required if there's just single Impl.

            ttarrant@redhat.com Tristan Tarrant
            rvansa1@redhat.com Radim Vansa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: