Fix up fuzzing

This commit is contained in:
Alex Hultman
2019-06-09 09:45:30 +02:00
parent 5e787b19b3
commit 12ec7a6234
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -6,13 +6,13 @@
#include <string>
/* We test the websocket handshake generator */
#include "../src/libwshandshake.hpp"
#include "../src/WebSocketHandshake.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
char output[28];
if (size >= 24) {
WebSocketHandshake::generate((char *) data, output);
uWS::WebSocketHandshake::generate((char *) data, output);
}
return 0;