Closed Bug 1404911 Opened 7 years ago Closed 7 years ago

delete called on 'nss_test::AeadCipher' that is abstract but has non-virtual destructor

Categories

(NSS :: Test, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: franziskus, Assigned: franziskus)

Details

Attachments

(1 file)

/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/unique_ptr.h:76:2: error: delete called on 'nss_test::AeadCipher' that is abstract but has non-virtual destructor [-Werror,-Wdelete-non-virtual-dtor]
        delete __ptr;
        ^
/usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/unique_ptr.h:236:4: note: in instantiation of member function 'std::default_delete<nss_test::AeadCipher>::operator()' requested here
          get_deleter()(__ptr);
          ^
../../gtests/ssl_gtest/tls_protect.h:61:3: note: in instantiation of member function 'std::unique_ptr<nss_test::AeadCipher, std::default_delete<nss_test::AeadCipher> >::~unique_ptr' requested here
  TlsCipherSpec() : aead_() {}
  ^
Comment on attachment 8914302 [details]
Bug 1404911 - Make AEAD destructor virtual to fix fuzzing build on TC

Martin Thomson [:mt:] has approved the revision.

https://phabricator.services.mozilla.com/D90#1941
Attachment #8914302 - Flags: review+
https://hg.mozilla.org/projects/nss/rev/ffe09c48221c90d66411834e7da1f852fd2af24a
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: