Use "mocked zlib" (not really) when fuzzing

This commit is contained in:
Alex Hultman
2021-02-28 12:41:06 +01:00
parent 650233500e
commit facd80b30c
2 changed files with 5 additions and 10 deletions
+2 -3
View File
@@ -54,12 +54,11 @@ namespace uWS {
namespace uWS {
/* Do not compile this module if we don't want it */
#ifdef UWS_NO_ZLIB
#if defined(UWS_NO_ZLIB) || defined(UWS_MOCK_ZLIB)
struct ZlibContext {};
struct InflationStream {
std::optional<std::string_view> inflate(ZlibContext *zlibContext, std::string_view compressed, size_t maxPayloadLength) {
/* Anything here goes, it is never going to be called */
return std::nullopt;
return compressed;
}
};
struct DeflationStream {