aboutsummaryrefslogtreecommitdiffstats
path: root/src/fuzzer
diff options
context:
space:
mode:
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;