aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuzzer
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2020-11-06 08:32:32 -0500
committerJack Lloyd <[email protected]>2020-11-06 09:19:52 -0500
commita8ebbafdf34fb33817cbb1c5bbafa1668befd65c (patch)
tree384c09fb1d82123e6ee1549afb8193c25efe5cc9 /src/fuzzer
parent6f7cb7fd973d3bc04a34f9cf77ac35414bf69ea6 (diff)
Fix some warnings picked up by new compiler flags
Diffstat (limited to 'src/fuzzer')
-rw-r--r--src/fuzzer/fuzzers.h4
-rw-r--r--src/fuzzer/tls_client.cpp2
-rw-r--r--src/fuzzer/tls_server.cpp2
3 files changed, 4 insertions, 4 deletions
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<uint8_t> buf(max_fuzzer_input_size);
- in.read((char*)buf.data(), buf.size());
+ in.read(reinterpret_cast<char*>(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<uint8_t> buf(max_fuzzer_input_size);
- std::cin.read((char*)buf.data(), buf.size());
+ std::cin.read(reinterpret_cast<char*>(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<uint16_t> ciphersuite_list(Botan::TLS::Protocol_Version version,
- bool have_srp) const
+ bool have_srp) const override
{
std::vector<uint16_t> 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<uint16_t> ciphersuite_list(Botan::TLS::Protocol_Version version,
- bool have_srp) const
+ bool have_srp) const override
{
std::vector<uint16_t> ciphersuites;