Fixed possible undefined behaviour when UDP RX buffer fills

This commit is contained in:
Joseph Henry
2016-08-31 15:54:56 -07:00
parent 33d3e72261
commit bf9bc511b0
5 changed files with 20 additions and 17 deletions

View File

@@ -18,6 +18,7 @@ INCLUDES=
DEFS=
LIBS=
ARCH_FLAGS=-arch x86_64
CFLAGS=
include objects.mk
@@ -136,7 +137,7 @@ osx_shared_lib: remove_only_intermediates $(OBJS)
osx_intercept:
# Use gcc not clang to build standalone intercept library since gcc is typically used for libc and we want to ensure maximal ABI compatibility
cd src ; gcc $(DEFS) -O2 -Wall -std=c99 -fPIC -fno-common -dynamiclib -flat_namespace -DVERBOSE -D_GNU_SOURCE -DNETCON_INTERCEPT -I. -I../zerotierone/node -nostdlib -shared -o ../$(INTERCEPT) SDK_Sockets.c SDK_Intercept.c SDK_Debug.c SDK_RPC.c -ldl
cd src ; gcc $(CFLAGS) $(DEFS) -O2 -Wall -std=c99 -fPIC -fno-common -dynamiclib -flat_namespace -DVERBOSE -D_GNU_SOURCE -DNETCON_INTERCEPT -I. -I../zerotierone/node -nostdlib -shared -o ../$(INTERCEPT) SDK_Sockets.c SDK_Intercept.c SDK_Debug.c SDK_RPC.c -ldl
#mv src/$(INTERCEPT_NAME) $(INTERCEPT)
# Build only the SDK service
@@ -151,7 +152,7 @@ osx_service_and_intercept: remove_only_intermediates osx_intercept osx_sdk_servi
# -------- ANDROID ---------
# Build all Android targets
# Build all Android targets
# Chip architectures can be specified in integrations/android/android_jni_lib/java/jni/Application.mk
android: android_jni_lib