From ba8e2cd4cb4df81d2dc58a0f86ac6554333a52b8 Mon Sep 17 00:00:00 2001 From: BMIN Date: Sat, 31 May 2025 13:30:27 +0700 Subject: [PATCH 1/4] change file make --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 67e6771a..9fba91bf 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ ifeq ($m, 64) ARCH = -m64 endif -CFLAGS = $(ARCH) -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"${COMMIT}\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 +CFLAGS = $(ARCH) -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"${COMMIT}\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fcommon LDFLAGS = $(ARCH) -ggdb -rdynamic -lm -lrt -lcrypto -lz -lpthread -lcrypto LIB = ${OBJ}/lib From be1329da46322d5f391b7d91c9add5ca5d16d774 Mon Sep 17 00:00:00 2001 From: BMIN Date: Sat, 31 May 2025 14:21:27 +0700 Subject: [PATCH 2/4] change buf --- net/net-tcp-rpc-client.c | 3 ++- net/net-tcp-rpc-server.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/net/net-tcp-rpc-client.c b/net/net-tcp-rpc-client.c index bae0d7dc..d7487261 100644 --- a/net/net-tcp-rpc-client.c +++ b/net/net-tcp-rpc-client.c @@ -615,7 +615,8 @@ int tcp_rpcc_init_crypto (connection_job_t C) { struct tcp_rpc_nonce_packet s; struct tcp_rpc_nonce_ext_packet x; struct tcp_rpc_nonce_dh_packet dh; - } buf; + } buf[32]; + int len = sizeof (struct tcp_rpc_nonce_packet); memset (&buf, 0, sizeof (buf)); diff --git a/net/net-tcp-rpc-server.c b/net/net-tcp-rpc-server.c index ba1f14f5..d685ad6b 100644 --- a/net/net-tcp-rpc-server.c +++ b/net/net-tcp-rpc-server.c @@ -579,7 +579,7 @@ int tcp_rpcs_init_crypto (connection_job_t C, struct tcp_rpc_nonce_packet *P) { struct tcp_rpc_nonce_packet s; struct tcp_rpc_nonce_ext_packet x; struct tcp_rpc_nonce_dh_packet dh; - } buf; + } buf[32]; struct tcp_rpc_nonce_dh_packet *old_dh = 0, *new_dh = 0; unsigned char temp_dh[256]; From 8669b8b36a7bfa5aeebb1a916b62c6542177c725 Mon Sep 17 00:00:00 2001 From: BMIN Date: Sat, 31 May 2025 14:23:17 +0700 Subject: [PATCH 3/4] change buf --- net/net-tcp-rpc-client.c | 2 +- net/net-tcp-rpc-server.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/net-tcp-rpc-client.c b/net/net-tcp-rpc-client.c index d7487261..a2f4741b 100644 --- a/net/net-tcp-rpc-client.c +++ b/net/net-tcp-rpc-client.c @@ -615,7 +615,7 @@ int tcp_rpcc_init_crypto (connection_job_t C) { struct tcp_rpc_nonce_packet s; struct tcp_rpc_nonce_ext_packet x; struct tcp_rpc_nonce_dh_packet dh; - } buf[32]; + } buf; int len = sizeof (struct tcp_rpc_nonce_packet); diff --git a/net/net-tcp-rpc-server.c b/net/net-tcp-rpc-server.c index d685ad6b..ba1f14f5 100644 --- a/net/net-tcp-rpc-server.c +++ b/net/net-tcp-rpc-server.c @@ -579,7 +579,7 @@ int tcp_rpcs_init_crypto (connection_job_t C, struct tcp_rpc_nonce_packet *P) { struct tcp_rpc_nonce_packet s; struct tcp_rpc_nonce_ext_packet x; struct tcp_rpc_nonce_dh_packet dh; - } buf[32]; + } buf; struct tcp_rpc_nonce_dh_packet *old_dh = 0, *new_dh = 0; unsigned char temp_dh[256]; From f5e86fb5b5b226770e6ee4e3221e74fb27ccca55 Mon Sep 17 00:00:00 2001 From: BMIN Date: Sat, 31 May 2025 14:38:19 +0700 Subject: [PATCH 4/4] make --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9fba91bf..83e8f834 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ ifeq ($m, 64) ARCH = -m64 endif -CFLAGS = $(ARCH) -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"${COMMIT}\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fcommon +CFLAGS = $(ARCH) -O3 -std=gnu11 -Wall -mpclmul -march=core2 -mfpmath=sse -mssse3 -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"${COMMIT}\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -Wno-array-bounds -fcommon LDFLAGS = $(ARCH) -ggdb -rdynamic -lm -lrt -lcrypto -lz -lpthread -lcrypto LIB = ${OBJ}/lib