mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-16 21:14:55 +03:00
oss-fuzz: Remove the need for declaring internal functions
This commit is contained in:
1 parent
152f6a8a58
commit
40aa07a177
5 files changed
+5
-14
No files matched your search
@@ -14,7 +14,7 @@ libcoap?=libcoap-@LIBCOAP_NAME_SUFFIX@
|
||||
WARNING_CFLAGS?=@WARNING_CFLAGS@
|
||||
DTLS_CFLAGS?=@DTLS_CFLAGS@
|
||||
DTLS_LIBS?=@DTLS_LIBS@
|
||||
CPPFLAGS=-I$(top_builddir)/include -I$(top_srcdir)/include
|
||||
CPPFLAGS=-I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)
|
||||
CFLAGS=$(WARNING_CFLAGS) $(DTLS_CFLAGS) -std=c99
|
||||
CFLAGS+=-Wno-missing-prototypes -Wno-missing-declarations
|
||||
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
#include <coap3/coap.h>
|
||||
|
||||
/* Declare prototype for internal function coap_pdu_encode_header() */
|
||||
size_t coap_pdu_encode_header(coap_pdu_t *, coap_proto_t);
|
||||
#include "coap3/coap_internal.h"
|
||||
|
||||
int
|
||||
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
#include <coap3/coap.h>
|
||||
|
||||
/* Declare prototype for internal function coap_pdu_encode_header() */
|
||||
size_t coap_pdu_encode_header(coap_pdu_t *, coap_proto_t);
|
||||
#include "coap3/coap_internal.h"
|
||||
|
||||
int
|
||||
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
#include <coap3/coap.h>
|
||||
|
||||
/* Declare prototype for internal function coap_pdu_encode_header() */
|
||||
size_t coap_pdu_encode_header(coap_pdu_t *, coap_proto_t);
|
||||
#include "coap3/coap_internal.h"
|
||||
|
||||
int
|
||||
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <coap3/coap.h>
|
||||
#include "coap3/coap_internal.h"
|
||||
|
||||
int
|
||||
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
|
||||
Reference in new issue
Block a user