Go to the documentation of this file.
3 #ifdef ZMQ_USE_FUZZING_ENGINE
4 #include <fuzzer/FuzzedDataProvider.h>
16 const char *fixed_client_public =
17 "{{k*81)yMWEF{/BxdMd[5RL^qRFxBgoL<8m.D^KD";
18 const char *fixed_client_secret =
19 "N?Gmik8R[2ACw{b7*[-$S6[4}aO#?DB?#=<OQPc7";
20 const char *fixed_server_public =
21 "3.9-xXwy{g*w72TP*3iB9IJJRxlBH<ufTAvPd2>C";
22 const char *fixed_server_secret =
23 "T}t5GLq%&Qm1)y3ywu-}pY3KEA//{^Ut!M1ut+B4";
62 size -= sent > 0 ? sent : 0,
data += sent > 0 ? sent : 0)
77 fixed_server_public, fixed_client_public, fixed_client_secret};
93 #ifndef ZMQ_USE_FUZZING_ENGINE
97 size_t *
len, num_cases = 0;
99 "tests/libzmq-fuzz-corpora/test_bind_curve_fuzzer_seed_corpus", &
data,
104 while (num_cases-- > 0) {
107 free (
data[num_cases]);
114 int main (
int argc,
char **argv)
static void bounce(void *socket_)
void msleep(int milliseconds_)
void setup_context_and_server_side(void **zap_control_, void **zap_thread_, void **server_, void **server_mon_, char *my_endpoint_, zmq_thread_fn zap_handler_, socket_config_fn socket_config_, void *socket_config_data_, const char *routing_id_)
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
void setup_test_context()
void teardown_test_context()
void send(fd_t fd_, const char(&data_)[N])
static NULL curve_client_data_t curve_client_data
void * test_context_socket_close_zero_linger(void *socket_)
int fuzzer_corpus_encode(const char *dirname, uint8_t ***data, size_t **len, size_t *num_cases)
void socket_config_curve_server(void *server_, void *server_secret_)
void test_bind_curve_fuzzer()
char valid_client_public[41]
fd_t connect_socket(const char *endpoint_, const int af_, const int protocol_)
void shutdown_context_and_server_side(void *zap_thread_, void *server_, void *server_mon_, void *zap_control_, bool zap_handler_stopped_)
char my_endpoint[MAX_SOCKET_STRING]
#define MAX_SOCKET_STRING
ZMQ_EXPORT int zmq_msg_recv(zmq_msg_t *msg_, void *s_, int flags_)
GLenum GLuint GLenum GLsizei const GLchar * buf
ZMQ_EXPORT int zmq_msg_init(zmq_msg_t *msg_)
void * create_and_connect_client(char *my_endpoint_, socket_config_fn socket_config_, void *socket_config_data_, void **client_mon_)
void setup_test_environment(int timeout_seconds_)
void socket_config_curve_client(void *client_, void *data_)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
int main(int argc, char **argv)
ZMQ_EXPORT int zmq_msg_close(zmq_msg_t *msg_)
#define TEST_ASSERT_SUCCESS_ERRNO(expr)
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:59