GCC warning pasted by siiky on Fri Oct 28 11:45:20 2022
gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -c -Os -march=native -DC_BUILDING_LIBCHICKEN posixunix.c -o posixunix-static.o -I. -I./ In function ‘stub398’, inlined from ‘f_1379’ at tcp.c:1466:8: tcp.c:190:1: warning: ‘memset’ writing 12 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] 190 | memset(addr, 0, sizeof(struct sockaddr_in)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Relevant generated code added by siiky on Fri Oct 28 11:46:00 2022
#define return(x) C_cblock C_r = (((C_word)(x))); goto C_ret; C_cblockend C_regparm static C_word C_fcall stub398(C_word C_buf,C_word C_a0,C_word C_a1){ C_word C_r=C_SCHEME_UNDEFINED,*C_a=(C_word*)C_buf; void * saddr=(void * )C_data_pointer_or_null(C_a0); unsigned short port=(unsigned short )(unsigned short)C_unfix(C_a1); struct sockaddr_in *addr = (struct sockaddr_in *)saddr; memset(addr, 0, sizeof(struct sockaddr_in)); addr->sin_family = AF_INET; addr->sin_port = htons(port); addr->sin_addr.s_addr = htonl(INADDR_ANY); C_ret: #undef return return C_r;}