Go to the documentation of this file.
3 #ifdef ZMQ_USE_FUZZING_ENGINE
4 #include <fuzzer/FuzzedDataProvider.h>
21 int64_t max_msg_size = 64 * 1024 * 1024;
37 recv (server_accept,
buf, 64, MSG_DONTWAIT);
40 size -= sent > 0 ? sent : 0,
data += sent > 0 ? sent : 0)
51 close (server_accept);
60 #ifndef ZMQ_USE_FUZZING_ENGINE
64 size_t *
len, num_cases = 0;
66 "tests/libzmq-fuzz-corpora/test_connect_null_fuzzer_seed_corpus",
71 while (num_cases-- > 0) {
74 free (
data[num_cases]);
81 int main (
int argc,
char **argv)
void msleep(int milliseconds_)
void setup_test_context()
void teardown_test_context()
void send(fd_t fd_, const char(&data_)[N])
void * test_context_socket_close_zero_linger(void *socket_)
ZMQ_EXPORT int zmq_connect(void *s_, const char *addr_)
void test_connect_null_fuzzer()
int fuzzer_corpus_encode(const char *dirname, uint8_t ***data, size_t **len, size_t *num_cases)
ZMQ_EXPORT int zmq_setsockopt(void *s_, int option_, const void *optval_, size_t optvallen_)
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
#define TEST_ASSERT_SUCCESS_RAW_ERRNO(expr)
char my_endpoint[MAX_SOCKET_STRING]
#define MAX_SOCKET_STRING
ZMQ_EXPORT int zmq_msg_recv(zmq_msg_t *msg_, void *s_, int flags_)
void * test_context_socket(int type_)
GLenum GLuint GLenum GLsizei const GLchar * buf
ZMQ_EXPORT int zmq_msg_init(zmq_msg_t *msg_)
void setup_test_environment(int timeout_seconds_)
int main(int argc, char **argv)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
ZMQ_EXPORT int zmq_msg_close(zmq_msg_t *msg_)
#define TEST_ASSERT_SUCCESS_ERRNO(expr)
fd_t bind_socket_resolve_port(const char *address_, const char *port_, char *my_endpoint_, const int af_, const int protocol_)
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:59