Skip to content

Commit 607b8f6

Browse files
committed
Remove CachingApp hierarchy as quick fix for fuzzing
1 parent 1f0e581 commit 607b8f6

File tree

8 files changed

+71
-76
lines changed

8 files changed

+71
-76
lines changed

build.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ int main(int argc, char **argv) {
99
char *CXX = strcpy(calloc(1024, 1), or_else(getenv("CXX"), "g++"));
1010
char *EXEC_SUFFIX = strcpy(calloc(1024, 1), maybe(getenv("EXEC_SUFFIX")));
1111

12-
char *EXAMPLE_FILES[] = {"EchoBody", "CachingApp", "HelloWorldThreaded", "Http3Server", "Broadcast", "HelloWorld", "Crc32", "ServerName",
12+
char *EXAMPLE_FILES[] = {"EchoBody", "HelloWorldThreaded", "Http3Server", "Broadcast", "HelloWorld", "Crc32", "ServerName",
1313
"EchoServer", "BroadcastingEchoServer", "UpgradeSync", "UpgradeAsync", "ParameterRoutes"};
1414

1515
strcat(CXXFLAGS, " -march=native -O3 -Wpedantic -Wall -Wextra -Wsign-conversion -Wconversion -std=c++20 -Isrc -IuSockets/src");

src/App.h

Lines changed: 64 additions & 69 deletions
Large diffs are not rendered by default.

src/AsyncSocket.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct AsyncSocket {
4747
/* This guy is promiscuous */
4848
template <bool> friend struct HttpContext;
4949
template <bool, bool, typename> friend struct WebSocketContext;
50-
template <bool, typename> friend struct TemplatedAppBase;
50+
template <bool> friend struct TemplatedApp;
5151
template <bool, typename> friend struct WebSocketContextData;
5252
template <typename, typename> friend struct TopicTree;
5353
template <bool> friend struct HttpResponse;

src/HttpContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ template<bool> struct HttpResponse;
3535

3636
template <bool SSL>
3737
struct HttpContext {
38-
template<bool, typename> friend struct TemplatedAppBase;
38+
template<bool> friend struct TemplatedApp;
3939
template<bool> friend struct HttpResponse;
4040
private:
4141
HttpContext() = delete;

src/HttpContextData.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ template <bool SSL>
3131
struct alignas(16) HttpContextData {
3232
template <bool> friend struct HttpContext;
3333
template <bool> friend struct HttpResponse;
34-
template <bool, typename> friend struct TemplatedAppBase;
34+
template <bool> friend struct TemplatedApp;
3535
private:
3636
std::vector<MoveOnlyFunction<void(HttpResponse<SSL> *, int)>> filterHandlers;
3737

src/HttpResponse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static const int HTTP_TIMEOUT_S = 10;
4646
template <bool SSL>
4747
struct HttpResponse : public AsyncSocket<SSL> {
4848
/* Solely used for getHttpResponseData() */
49-
template <bool, typename> friend struct TemplatedAppBase;
49+
template <bool> friend struct TemplatedApp;
5050
typedef AsyncSocket<SSL> Super;
5151
private:
5252
HttpResponseData<SSL> *getHttpResponseData() {

src/WebSocket.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace uWS {
2929

3030
template <bool SSL, bool isServer, typename USERDATA>
3131
struct WebSocket : AsyncSocket<SSL> {
32-
template <bool, typename> friend struct TemplatedAppBase;
32+
template <bool> friend struct TemplatedApp;
3333
template <bool> friend struct HttpResponse;
3434
private:
3535
typedef AsyncSocket<SSL> Super;

src/WebSocketContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace uWS {
2727

2828
template <bool SSL, bool isServer, typename USERDATA>
2929
struct WebSocketContext {
30-
template <bool, typename> friend struct TemplatedAppBase;
30+
template <bool> friend struct TemplatedApp;
3131
template <bool, typename> friend struct WebSocketProtocol;
3232
private:
3333
WebSocketContext() = delete;

0 commit comments

Comments
 (0)