Bug 1403488 - Add virtual destructor to DummyPrSocket in fuzz/tls_socket.h r=franziskus
authorTim Taubert <ttaubert@mozilla.com>
Wed, 27 Sep 2017 11:46:56 +0200
changeset 13613 2564805e0d532454eef99fa52403fccc35163fd9
parent 13612 fbabb246745de23dd2efef996a70a2b10c969fb8
child 13616 bc6d9e5391daa9807599dffee447ec4368210bf7
push id2394
push userttaubert@mozilla.com
push dateWed, 27 Sep 2017 09:48:16 +0000
reviewersfranziskus
bugs1403488
Bug 1403488 - Add virtual destructor to DummyPrSocket in fuzz/tls_socket.h r=franziskus Summary: See also: https://github.com/google/oss-fuzz/issues/858 Bug #: 1403488 Differential Revision: https://phabricator.services.mozilla.com/D83
fuzz/tls_socket.h
--- a/fuzz/tls_socket.h
+++ b/fuzz/tls_socket.h
@@ -5,16 +5,17 @@
 #ifndef tls_socket_h__
 #define tls_socket_h__
 
 #include "dummy_io.h"
 
 class DummyPrSocket : public DummyIOLayerMethods {
  public:
   DummyPrSocket(const uint8_t *buf, size_t len) : buf_(buf), len_(len) {}
+  virtual ~DummyPrSocket() {}
 
   int32_t Read(PRFileDesc *f, void *data, int32_t len) override;
   int32_t Write(PRFileDesc *f, const void *buf, int32_t length) override;
   int32_t Recv(PRFileDesc *f, void *buf, int32_t buflen, int32_t flags,
                PRIntervalTime to) override;
 
  private:
   const uint8_t *buf_;