mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-24 00:54:01 +08:00
oss-fuzz build fixes
This commit is contained in:
@@ -7,7 +7,7 @@ FUZZERS:= \
|
||||
LOCAL_CPPFLAGS+=
|
||||
LOCAL_CXXFLAGS+=-g -Wall -Werror -pthread
|
||||
LOCAL_LDFLAGS+=
|
||||
LOCAL_LIBADD+=$(LIB_FUZZING_ENGINE) ${R}/apps/mosquitto_passwd/mosquitto_passwd.a -lssl -lcrypto
|
||||
LOCAL_LIBADD+=$(LIB_FUZZING_ENGINE) ${R}/apps/mosquitto_passwd/mosquitto_passwd.a -lssl -lcrypto -largon2
|
||||
|
||||
all: $(FUZZERS)
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ LOCAL_CPPFLAGS+=-I${R}/include/ -I${R}/src -I${R}/lib -I${R} -I${R}/common -I${R
|
||||
-DWITH_SYS_TREE -DWITH_TLS -DWITH_TLS_PSK -DWITH_UNIX_SOCKETS -DWITH_WEBSOCKETS=WS_IS_BUILTIN
|
||||
LOCAL_CXXFLAGS+=-g -Wall -Werror -pthread
|
||||
LOCAL_LDFLAGS+=
|
||||
LOCAL_LIBADD+=$(LIB_FUZZING_ENGINE) ${R}/src/mosquitto_broker.a -lssl -lcrypto -lcjson
|
||||
LOCAL_LIBADD+=$(LIB_FUZZING_ENGINE) ${R}/src/mosquitto_broker.a -lssl -lcrypto -lcjson -largon2 -lm
|
||||
|
||||
all: $(FUZZERS)
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ FUZZERS:= \
|
||||
LOCAL_CPPFLAGS+=-I${R}/include/
|
||||
LOCAL_CXXFLAGS+=-g -Wall -Werror -pthread
|
||||
LOCAL_LDFLAGS+=
|
||||
LOCAL_LIBADD+=$(LIB_FUZZING_ENGINE) ${LIBMOSQ_STATIC} -lssl -lcrypto
|
||||
LOCAL_LIBADD+=$(LIB_FUZZING_ENGINE) ${R}/lib/libmosquitto.a -lssl -lcrypto
|
||||
|
||||
all: $(FUZZERS)
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ LOCAL_CPPFLAGS+= \
|
||||
-DWITH_SYS_TREE -DWITH_TLS -DWITH_TLS_PSK -DWITH_UNIX_SOCKETS -DWITH_WEBSOCKETS=WS_IS_BUILTIN
|
||||
LOCAL_CXXFLAGS+=-g -Wall -Werror -pthread
|
||||
LOCAL_LDFLAGS+=
|
||||
LOCAL_LIBADD+=$(LIB_FUZZING_ENGINE) ${R}/plugins/dynamic-security/mosquitto_dynamic_security.a ${R}/src/mosquitto_broker.a ${R}/deps/mosquitto-license/mosquitto_license.a -lssl -lcrypto -lcjson
|
||||
LOCAL_LIBADD+=$(LIB_FUZZING_ENGINE) ${R}/plugins/dynamic-security/mosquitto_dynamic_security.a ${R}/src/mosquitto_broker.a -lssl -lcrypto -lcjson -lm -largon2
|
||||
|
||||
all: $(FUZZERS)
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ Contributors:
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <mosquitto_plugin.h>
|
||||
#include <mosquitto.h>
|
||||
#include <mosquitto_broker_internal.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -21,4 +21,4 @@
|
||||
# currently part of fuzz testing. Once it is part of fuzz testing, sqlite will
|
||||
# need to be built statically.
|
||||
apt-get update && apt-get install -y libargon2-dev libtool-bin make libsqlite3-dev
|
||||
git clone https://github.com/DaveGamble/cJSON ${SRC}/cJSON
|
||||
git clone https://github.com/ralight/cJSON ${SRC}/cJSON
|
||||
|
||||
@@ -7,7 +7,7 @@ PLUGIN_NAME=mosquitto_dynamic_security
|
||||
|
||||
LOCAL_CFLAGS+=-fPIC
|
||||
LOCAL_CPPFLAGS+=-I${R}/lib/ -I${R}/src/ -I${R}/plugins/common
|
||||
LOCAL_LIBADD+=-lcjson
|
||||
LOCAL_LIBADD+=-lcjson -lm
|
||||
LOCAL_LDFLAGS+=-fPIC -shared
|
||||
|
||||
WITH_PW_CACHE:=yes
|
||||
|
||||
@@ -18,7 +18,7 @@ Contributors:
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "mosquitto/broker_plugin.h"
|
||||
#include "mosquitto.h"
|
||||
|
||||
#include "dynamic_security.h"
|
||||
|
||||
|
||||
@@ -21,8 +21,6 @@ Contributors:
|
||||
#include <cjson/cJSON.h>
|
||||
#include <uthash.h>
|
||||
#include "mosquitto.h"
|
||||
#include "mosquitto/broker.h"
|
||||
#include "mosquitto/broker_control.h"
|
||||
#include "password_mosq.h"
|
||||
#include "base64_mosq.h"
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ Contributors:
|
||||
# include <strings.h>
|
||||
#endif
|
||||
|
||||
#include "mosquitto/broker_plugin.h"
|
||||
#include "mosquitto.h"
|
||||
|
||||
#include "dynamic_security.h"
|
||||
#include "json_help.h"
|
||||
|
||||
@@ -7,7 +7,7 @@ Copyright (c) 2023 Cedalo Gmbh
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "mosquitto/broker.h"
|
||||
#include "mosquitto.h"
|
||||
#include "plugin_global.h"
|
||||
|
||||
int plugin__message_in_callback(int event, void *event_data, void *user_data)
|
||||
|
||||
Reference in New Issue
Block a user