From a8ebbafdf34fb33817cbb1c5bbafa1668befd65c Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Fri, 6 Nov 2020 08:32:32 -0500 Subject: Fix some warnings picked up by new compiler flags --- src/fuzzer/fuzzers.h | 4 ++-- src/fuzzer/tls_client.cpp | 2 +- src/fuzzer/tls_server.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/fuzzer') diff --git a/src/fuzzer/fuzzers.h b/src/fuzzer/fuzzers.h index ee78f7a6d..1df6e94c9 100644 --- a/src/fuzzer/fuzzers.h +++ b/src/fuzzer/fuzzers.h @@ -87,7 +87,7 @@ int fuzz_files(char* files[]) if(in.good()) { std::vector buf(max_fuzzer_input_size); - in.read((char*)buf.data(), buf.size()); + in.read(reinterpret_cast(buf.data()), buf.size()); const size_t got = in.gcount(); buf.resize(got); buf.shrink_to_fit(); @@ -119,7 +119,7 @@ int main(int argc, char* argv[]) #endif { std::vector buf(max_fuzzer_input_size); - std::cin.read((char*)buf.data(), buf.size()); + std::cin.read(reinterpret_cast(buf.data()), buf.size()); const size_t got = std::cin.gcount(); buf.resize(got); diff --git a/src/fuzzer/tls_client.cpp b/src/fuzzer/tls_client.cpp index a5c8137bf..c8e5839f4 100644 --- a/src/fuzzer/tls_client.cpp +++ b/src/fuzzer/tls_client.cpp @@ -22,7 +22,7 @@ class Fuzzer_TLS_Policy : public Botan::TLS::Policy { public: std::vector ciphersuite_list(Botan::TLS::Protocol_Version version, - bool have_srp) const + bool have_srp) const override { std::vector ciphersuites; diff --git a/src/fuzzer/tls_server.cpp b/src/fuzzer/tls_server.cpp index d45ff5f5c..9df6151a7 100644 --- a/src/fuzzer/tls_server.cpp +++ b/src/fuzzer/tls_server.cpp @@ -113,7 +113,7 @@ class Fuzzer_TLS_Policy : public Botan::TLS::Policy { public: std::vector ciphersuite_list(Botan::TLS::Protocol_Version version, - bool have_srp) const + bool have_srp) const override { std::vector ciphersuites; -- cgit v1.2.3