>>> yersinia: Building community/yersinia 0.8.2-r4 (using abuild 3.12.0-r0) started Fri, 27 Oct 2023 16:07:18 +0000 >>> yersinia: Checking sanity of /home/buildozer/aports/community/yersinia/APKBUILD... >>> yersinia: Analyzing dependencies... >>> yersinia: Installing for build: build-base libnet-dev libpcap-dev ncurses-dev (1/10) Installing libnet (1.3-r0) (2/10) Installing libnet-dev (1.3-r0) (3/10) Installing libpcap (1.10.4-r1) (4/10) Installing libpcap-dev (1.10.4-r1) (5/10) Installing libformw (6.4_p20231007-r0) (6/10) Installing libmenuw (6.4_p20231007-r0) (7/10) Installing libpanelw (6.4_p20231007-r0) (8/10) Installing libncurses++ (6.4_p20231007-r0) (9/10) Installing ncurses-dev (6.4_p20231007-r0) (10/10) Installing .makedepends-yersinia (20231027.160734) Executing busybox-1.36.1-r13.trigger OK: 418 MiB in 111 packages >>> yersinia: Cleaning up srcdir >>> yersinia: Cleaning up pkgdir >>> yersinia: Cleaning up tmpdir >>> yersinia: Fetching https://distfiles.alpinelinux.org/distfiles/v3.19/yersinia-0.8.2.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 146 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 >>> yersinia: Fetching yersinia-0.8.2.tar.gz::https://github.com/tomac/yersinia/archive/v0.8.2.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 100 81920 0 81920 0 0 38593 0 --:--:-- 0:00:02 --:--:-- 93944 100 378k 0 378k 0 0 143k 0 --:--:-- 0:00:02 --:--:-- 271k >>> yersinia: Fetching https://distfiles.alpinelinux.org/distfiles/v3.19/yersinia-0.8.2.tar.gz >>> yersinia: Checking sha512sums... yersinia-0.8.2.tar.gz: OK 0001-fix-compile-with-GCC-10.patch: OK format-security.patch: OK >>> yersinia: Unpacking /var/cache/distfiles/v3.19/yersinia-0.8.2.tar.gz... >>> yersinia: 0001-fix-compile-with-GCC-10.patch patching file src/interfaces.c patching file src/interfaces.h patching file src/ncurses-callbacks.h patching file src/ncurses-interface.c patching file src/ncurses-interface.h patching file src/protocols.c patching file src/protocols.h >>> yersinia: format-security.patch patching file src/ncurses-callbacks.c patching file src/ncurses-interface.c Hunk #1 succeeded at 1169 (offset 2 lines). Hunk #2 succeeded at 1226 (offset 2 lines). Hunk #3 succeeded at 1280 (offset 2 lines). Hunk #4 succeeded at 1795 (offset 2 lines). >>> yersinia: Updating ./config.guess >>> yersinia: Updating ./config.sub checking build system type... powerpc64le-unknown-linux-musl checking host system type... powerpc64le-unknown-linux-musl checking target system type... powerpc64le-unknown-linux-musl checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for makedepend... no checking if unaligned accesses fail... no checking for main in -lsocket... no checking for main in -lresolv... yes checking for main in -lnsl... no checking for main in -lrt... yes checking for a complete set of pcap headers... found /usr/include checking for pcap_lib_version in -lpcap... yes checking for pcap_dump_flush in -lpcap... yes checking for BPF device sending support... checking for a complete set of libnet headers... found /usr/include checking for libnet_build_stp_conf in -lnet... yes checking if libnet is at least version 1.1.2... yes checking for sys/sockio.h... no checking for sys/ioctl.h... yes checking for net/if.h... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking bstring.h usability... no checking bstring.h presence... no checking for bstring.h... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking netinet/in_systm.h usability... yes checking netinet/in_systm.h presence... yes checking for netinet/in_systm.h... yes checking for inttypes.h... (cached) yes checking netinet/in_system.h usability... no checking netinet/in_system.h presence... no checking for netinet/in_system.h... no checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking whether time.h and sys/time.h may both be included... yes checking whether byte ordering is bigendian... no checking if struct sockaddr has sa_len field... no checking for memcpy... yes checking for memset... yes checking for pthread_setconcurrency... yes checking for strerror... yes checking for strtok_r... yes checking for rand_r... yes checking for calloc_r... no checking for malloc_r... no checking for free_r... no checking for ctime_r... yes checking for nanosleep... yes checking for strerror_r... yes checking if strerror_r is on glibc version >= 2.0... no checking semaphore.h usability... yes checking semaphore.h presence... yes checking for semaphore.h... yes checking sched.h usability... yes checking sched.h presence... yes checking for sched.h... yes checking sys/sched.h usability... no checking sys/sched.h presence... no checking for sys/sched.h... no checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for pthread_create in -lpthread... yes checking for pthreads support... ok configure: checking "location of ncurses.h file"... Found ncurses on /usr/include/ncurses.h checking for ncurses version... VERSION: checking panel.h usability... yes checking panel.h presence... yes checking for panel.h... yes checking for use_default_colors in -lncurses... yes checking for resize_term in -lncurses... yes checking for wresize in -lncurses... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/config.h config.status: executing depfiles commands Yersinia, our beloved one, has been configured with the following options. Remote admin : true Use ncurses : true Use gtk : no Making all in src make[1]: Entering directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2/src' make all-am make[2]: Entering directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2/src' gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o xstp.o xstp.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o parser.o parser.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o dtp.o dtp.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o cdp.o cdp.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o dhcp.o dhcp.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o hsrp.o hsrp.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o dot1q.o dot1q.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o vtp.o vtp.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o arp.o arp.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o isl.o isl.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o dot1x.o dot1x.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o mpls.o mpls.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o thread-util.o thread-util.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o terminal.o terminal.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o interfaces.o interfaces.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o attack.o attack.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o yersinia.o yersinia.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o md5.o md5.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o md5-sum.o md5-sum.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o protocols.o protocols.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o dlist.o dlist.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o ncurses-gui.o ncurses-gui.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o ncurses-callbacks.o ncurses-callbacks.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o ncurses-interface.o ncurses-interface.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o admin.o admin.c gcc `/usr/bin/libnet-config --defines` -DHAVE_CONFIG_H -I. -O3 -Wall -g -D_DEFAULT_SOURCE -c -o commands.o commands.c cdp.c: In function 'cdp_send_hellos': cdp.c:441:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 441 | write_log(0,"\n cdp_helper: %d started...\n",(int)pthread_self()); | ^ cdp.c:467:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 467 | write_log(0," cdp_helper: %d finished...\n",(int)pthread_self()); | ^ thread-util.c: In function 'thread_destroy': thread-util.c:132:58: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 132 | write_log(0,"\n thread_destroy %X destroying %X...\n",(int)pthread_self(), | ^ thread-util.c:133:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 133 | (int)id); | ^ thread-util.c:144:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 144 | (int)pthread_self(), (int)id); | ^ thread-util.c:144:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 144 | (int)pthread_self(), (int)id); | ^ thread-util.c: In function 'thread_error': thread-util.c:344:49: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 344 | write_log(0, "%s: (%d) %s -> %s\n", PACKAGE, (int)pthread_self(), msg, | ^ thread-util.c: In function 'thread_libnet_error': thread-util.c:359:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 359 | write_log(0, "%s: (%d) %s -> %s\n", PACKAGE, (int)pthread_self(), msg, | ^ dtp.c: In function 'dtp_send_negotiate': dtp.c:349:43: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 349 | write_log(0,"\n dtp_helper: %X init...\n",(int)pthread_self()); | ^ dtp.c:370:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 370 | write_log(0," dtp_helper: %X finished...\n",(int)pthread_self()); | ^ attack.c: In function 'attack_launch': attack.c:145:77: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 145 | write_log(0, " attack_launch: %X Attack thread %X is born!!\n", (int)pthread_self(), | ^ attack.c: In function 'attack_kill_th': attack.c:170:34: warning: the comparison will always evaluate as 'true' for the address of 'attacks' will never be NULL [-Waddress] 170 | if (protocols[i].visible && node->protocol[i].attacks) | ^~ In file included from interfaces.h:31, from attack.h:30, from attack.c:78: terminal-defs.h:255:26: note: 'attacks' declared here 255 | struct attacks attacks[MAX_THREAD_ATTACK]; /* Attacking threads */ | ^~~~~~~ xstp.c: In function 'xstp_send_hellos': xstp.c:443:48: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 443 | write_log(0, "\n helper: %d started...\n", (int)pthread_self()); | ^ attack.c: In function 'attack_th_exit': attack.c:226:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 226 | (int)pthread_self(), (int)attacks->helper_th.id); | ^ attack.c:226:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 226 | (int)pthread_self(), (int)attacks->helper_th.id); | ^ mpls.c: In function 'mpls_send': xstp.c:480:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 480 | write_log(0," helper: %d finished...\n",(int)pthread_self()); | ^ attack.c:252:52: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 252 | write_log(0, " attack_th_exit: %X finished\n", (int) pthread_self()); | ^ mpls.c:293:9: warning: the comparison will always evaluate as 'true' for the address of 'ip_payload' will never be NULL [-Waddress] 293 | if (mpls_data->ip_payload && mpls_data->ip_payload[0]) | ^~~~~~~~~ In file included from mpls.c:80: mpls.h:78:16: note: 'ip_payload' declared here 78 | u_int8_t ip_payload[MAX_IP_PAYLOAD+1]; | ^~~~~~~~~~ hsrp.c: In function 'hsrp_send_hellos': hsrp.c:305:47: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 305 | write_log(0,"\n hsrp_helper: %d started...\n",(int)pthread_self()); | ^ hsrp.c:326:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 326 | write_log(0," hsrp_helper: %d finished...\n",(int)pthread_self()); | ^ interfaces.c: In function 'interfaces_th_pcap_listen': interfaces.c:697:67: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 697 | write_log(0,"\n interfaces_th_pcap_listen thread_id = %d\n",(int)pthread_self()); | ^ xstp.c: In function 'xstp_send_hellos_mitm': isl.c: In function 'isl_get_printable_packet': isl.c:169:46: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 169 | snprintf(field_values[ISL_TYPE], 2, "%01X", (*(u_int8_t *)(data->packet+5) & 0xF0)); | ^ isl.c:169:5: note: 'snprintf' output between 2 and 3 bytes into a destination of size 2 169 | snprintf(field_values[ISL_TYPE], 2, "%01X", (*(u_int8_t *)(data->packet+5) & 0xF0)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xstp.c:758:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 758 | write_log(0,"\n helper: %d started...\n",(int)pthread_self()); | ^ xstp.c:797:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 797 | write_log(0," helper: %d finished...\n",(int)pthread_self()); | ^ admin.c: In function 'admin_th_listen': admin.c:128:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 128 | write_log(0,"\n admin_th_network_listen es %d\n",(int)pthread_self()); | ^ parser.c: In function 'parser_vrfy_ip2filter': parser.c:1262:15: warning: comparison between pointer and zero character constant [-Wpointer-compare] 1262 | if ((aux=='\0') || (strlen(aux)>2)) | ^~ parser.c:1262:12: note: did you mean to dereference the pointer? 1262 | if ((aux=='\0') || (strlen(aux)>2)) | ^ admin.c:240:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 240 | (void *)sock2) < 0) | ^ dot1q.c: In function 'dot1q_load_values': admin.c: In function 'admin_th_network_peer': admin.c:338:47: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 338 | fail = term_add_node(&term_node, TERM_VTY, (int)sock, pthread_self()); | ^ dot1q.c:922:24: warning: overflow in conversion from 'int' to 'u_int8_t' {aka 'unsigned char'} changes value from '(int)ntohs(*cursor) & 4096' to '0' [-Woverflow] 922 | dot1q->cfi1 = ntohs(*cursor) & 0x1000; | ^~~~~ admin.c:344:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 344 | admin_th_network_peer_exit(term_node, (int32_t)sock); | ^ admin.c:354:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 354 | admin_th_network_peer_exit(term_node, (int32_t)sock); | ^ dot1q.c:935:32: warning: overflow in conversion from 'int' to 'u_int8_t' {aka 'unsigned char'} changes value from '(int)ntohs(*cursor) & 4096' to '0' [-Woverflow] 935 | dot1q->cfi2 = ntohs(*cursor) & 0x1000; | ^~~~~ admin.c:385:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 385 | admin_th_network_peer_exit(term_node, (int32_t)sock); | ^ admin.c:392:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 392 | admin_th_network_peer_exit(term_node, (int32_t)sock); | ^ admin.c:447:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 447 | (int)term_node->thread.id); | ^ interfaces.c: In function 'interfaces_destroy': interfaces.c:1176:68: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1176 | write_log(0," ints_destroy killing pcap_listener(%d)...\n", (int)pcap_th->id); | ^ admin.c: In function 'admin_th_network_peer_exit': admin.c:955:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 955 | write_log(0," admin_peer_th %d finished...\n",(int)pthread_self()); | ^ ncurses-interface.c: In function 'ncurses_i_splash_screen': ncurses-interface.c:255:57: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'u_int32_t' {aka 'unsigned int'} [-Wformat=] 255 | mvwprintw(splash_screen, 6, 23, "%s uptime is %02lu seconds", PACKAGE, uptime); | ~~~~^ ~~~~~~ | | | | long unsigned int u_int32_t {aka unsigned int} | %02u ncurses-interface.c:259:60: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'u_int32_t' {aka 'unsigned int'} [-Wformat=] 259 | mvwprintw(splash_screen, 6, 23, "%s uptime is %02lu minutes, %02lu seconds", | ~~~~^ | | | long unsigned int | %02u 260 | PACKAGE, uptime / 60, uptime % 60); | ~~~~~~~~~~~ | | | u_int32_t {aka unsigned int} ncurses-interface.c:259:75: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'u_int32_t' {aka 'unsigned int'} [-Wformat=] 259 | mvwprintw(splash_screen, 6, 23, "%s uptime is %02lu minutes, %02lu seconds", | ~~~~^ | | | long unsigned int | %02u 260 | PACKAGE, uptime / 60, uptime % 60); | ~~~~~~~~~~~ | | | u_int32_t {aka unsigned int} ncurses-interface.c:265:45: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'u_int32_t' {aka 'unsigned int'} [-Wformat=] 265 | mvwprintw(splash_screen, 6, 23, "%s uptime is %02lu hours, %02lu minutes, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 266 | %02lu seconds", PACKAGE, uptime / 3600, (uptime % 3600) / 60, uptime % 60); | ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ | | | u_int32_t {aka unsigned int} ncurses-interface.c:265:45: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'u_int32_t' {aka 'unsigned int'} [-Wformat=] 265 | mvwprintw(splash_screen, 6, 23, "%s uptime is %02lu hours, %02lu minutes, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 266 | %02lu seconds", PACKAGE, uptime / 3600, (uptime % 3600) / 60, uptime % 60); | ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ | | | u_int32_t {aka unsigned int} ncurses-interface.c:265:45: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'u_int32_t' {aka 'unsigned int'} [-Wformat=] 265 | mvwprintw(splash_screen, 6, 23, "%s uptime is %02lu hours, %02lu minutes, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 266 | %02lu seconds", PACKAGE, uptime / 3600, (uptime % 3600) / 60, uptime % 60); | ~~~~~~~~~~~~~~ ~~~~~~~~~~~ | | | u_int32_t {aka unsigned int} ncurses-gui.c: In function 'ncurses_gui': ncurses-gui.c:114:44: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 114 | write_log(0,"\n ncurses_gui_th = %d\n",(int)pthread_self()); | ^ ncurses-interface.c:269:45: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'u_int32_t' {aka 'unsigned int'} [-Wformat=] 269 | mvwprintw(splash_screen, 6, 23, "%s uptime is %02lu days, %02lu hours, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 270 | %02lu minutes, %02lu seconds", PACKAGE, uptime / (3600*24), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ | | | u_int32_t {aka unsigned int} ncurses-interface.c:269:45: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'u_int32_t' {aka 'unsigned int'} [-Wformat=] 269 | mvwprintw(splash_screen, 6, 23, "%s uptime is %02lu days, %02lu hours, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 270 | %02lu minutes, %02lu seconds", PACKAGE, uptime / (3600*24), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 271 | (uptime % (3600*24)) / 3600, (uptime % 3600) / 60, uptime % 60); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | u_int32_t {aka unsigned int} ncurses-interface.c:269:45: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'u_int32_t' {aka 'unsigned int'} [-Wformat=] 269 | mvwprintw(splash_screen, 6, 23, "%s uptime is %02lu days, %02lu hours, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 270 | %02lu minutes, %02lu seconds", PACKAGE, uptime / (3600*24), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 271 | (uptime % (3600*24)) / 3600, (uptime % 3600) / 60, uptime % 60); | ~~~~~~~~~~~~~~~~~~~~ | | | u_int32_t {aka unsigned int} ncurses-interface.c:269:45: warning: format '%lu' expects argument of type 'long unsigned int', but argument 9 has type 'u_int32_t' {aka 'unsigned int'} [-Wformat=] 269 | mvwprintw(splash_screen, 6, 23, "%s uptime is %02lu days, %02lu hours, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 270 | %02lu minutes, %02lu seconds", PACKAGE, uptime / (3600*24), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 271 | (uptime % (3600*24)) / 3600, (uptime % 3600) / 60, uptime % 60); | ~~~~~~~~~~~ | | | u_int32_t {aka unsigned int} isl.c: In function 'isl_get_printable_store': isl.c:253:50: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 253 | snprintf(field_values[ISL_IP_PROTO], 3, "%02d",isl_tmp->ip_proto); | ^ isl.c:253:5: note: 'snprintf' output between 3 and 4 bytes into a destination of size 3 253 | snprintf(field_values[ISL_IP_PROTO], 3, "%02d",isl_tmp->ip_proto); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ yersinia.c: In function 'th_tty_peer': yersinia.c:312:48: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 312 | write_log(0, "\n th_tty_peer thread = %d...\n",(int)pthread_self()); | ^ ncurses-interface.c: In function 'ncurses_i_show_info': yersinia.c: In function 'th_tty_peer_exit': yersinia.c:445:50: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 445 | write_log(0,"\n th_tty_peer %d finished...\n",(int)pthread_self()); | ^ ncurses-interface.c:702:38: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'u_int32_t' {aka 'unsigned int'} [-Wformat=] 702 | mvwprintw(info_window, k++, 19,"%ld", | ~~^ | | | long int | %d 703 | protocols[mode].stats[pointer].total); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | u_int32_t {aka unsigned int} yersinia.c: In function 'th_uptime': yersinia.c:543:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 543 | write_log(0,"\n th_uptime thread = %X\n",(int)pthread_self()); | ^ yersinia.c: In function 'g00dbye': ncurses-callbacks.c: In function 'ncurses_c_edit_bwindow': yersinia.c:762:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 762 | write_log(0," g00dbye function called from %X\n",(int)pthread_self()); | ^ ncurses-callbacks.c:863:25: warning: variable 'row' set but not used [-Wunused-but-set-variable] 863 | u_int32_t y, x, col, row, offset, initial, start; | ^~~ ncurses-callbacks.c: In function 'ncurses_c_set_status_line': ncurses-callbacks.c:1028:19: warning: variable 'col' set but not used [-Wunused-but-set-variable] 1028 | u_int8_t row, col, size; | ^~~ yersinia.c: In function 'final': yersinia.c:961:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 961 | write_log(1,"\nTERM signal received from %d!\n", (int)pthread_self()); | ^ ncurses-interface.c: In function 'ncurses_i_popup_window': ncurses-interface.c:1334:58: warning: variable 'col' set but not used [-Wunused-but-set-variable] 1334 | int32_t i, j, pointer, end, result, key_pressed, row, col; | ^~~ hsrp.c: In function 'hsrp_init_attribs': hsrp.c:601:5: warning: 'memcpy' forming offset [6, 7] is out of the bounds [0, 6] [-Warray-bounds=] 601 | memcpy((void *)hsrp_data->authdata, (void *) HSRP_DFL_AUTHDATA, HSRP_AUTHDATA_LENGTH); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c: In function 'dhcp_th_send_offer': dhcp.c:325:1: warning: infinite recursion detected [-Winfinite-recursion] 325 | dhcp_th_send_offer(void *arg) | ^~~~~~~~~~~~~~~~~~ dhcp.c:341:8: note: recursive call 341 | dhcp_th_send_offer(attacks); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cdp.c: In function 'cdp_get_printable_store': cdp.c:994:14: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 994 | strncpy(buf_ptr, protocols[PROTO_CDP].extra_parameters[i].ldesc, strlen((char *)protocols[PROTO_CDP].extra_parameters[i].ldesc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cdp.c:994:14: note: length computed here 994 | strncpy(buf_ptr, protocols[PROTO_CDP].extra_parameters[i].ldesc, strlen((char *)protocols[PROTO_CDP].extra_parameters[i].ldesc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vtp.c: In function 'vtp_update_field': vtp.c:1611:12: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 1611 | strncpy((char *)vtp_data->timestamp, value, (len > VTP_TIMESTAMP_SIZE) ? VTP_TIMESTAMP_SIZE : len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vtp.c:1610:18: note: length computed here 1610 | len = strlen(value); | ^~~~~~~~~~~~~ vtp.c:1589:12: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 1589 | strncpy(vtp_data->domain, value, (len > VTP_DOMAIN_SIZE) ? VTP_DOMAIN_SIZE : len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vtp.c:1588:18: note: length computed here 1588 | len = strlen(value); | ^~~~~~~~~~~~~ mpls.c: In function 'mpls_get_printable_store': mpls.c:744:46: warning: '%01d' directive output may be truncated writing between 1 and 3 bytes into a region of size 2 [-Wformat-truncation=] 744 | snprintf(field_values[MPLS_BOTTOM1], 2, "%01d",mpls_tmp->bottom1); | ^~~~ mpls.c:744:45: note: directive argument in the range [0, 255] 744 | snprintf(field_values[MPLS_BOTTOM1], 2, "%01d",mpls_tmp->bottom1); | ^~~~~~ mpls.c:744:5: note: 'snprintf' output between 2 and 4 bytes into a destination of size 2 744 | snprintf(field_values[MPLS_BOTTOM1], 2, "%01d",mpls_tmp->bottom1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cdp.c: In function 'cdp_get_printable_packet': mpls.c:748:46: warning: '%01d' directive output may be truncated writing between 1 and 3 bytes into a region of size 2 [-Wformat-truncation=] 748 | snprintf(field_values[MPLS_BOTTOM2], 2, "%01d",mpls_tmp->bottom2); | ^~~~ cdp.c:839:16: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 839 | strncpy(buf_ptr, cdp_type_desc[k].desc, strlen((char *)cdp_type_desc[k].desc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mpls.c:748:45: note: directive argument in the range [0, 255] 748 | snprintf(field_values[MPLS_BOTTOM2], 2, "%01d",mpls_tmp->bottom2); | ^~~~~~ cdp.c:839:16: note: length computed here 839 | strncpy(buf_ptr, cdp_type_desc[k].desc, strlen((char *)cdp_type_desc[k].desc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mpls.c:748:5: note: 'snprintf' output between 2 and 4 bytes into a destination of size 2 748 | snprintf(field_values[MPLS_BOTTOM2], 2, "%01d",mpls_tmp->bottom2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cdp.c:839:16: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 839 | strncpy(buf_ptr, cdp_type_desc[k].desc, strlen((char *)cdp_type_desc[k].desc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cdp.c:839:16: note: length computed here 839 | strncpy(buf_ptr, cdp_type_desc[k].desc, strlen((char *)cdp_type_desc[k].desc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cdp.c:839:16: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 839 | strncpy(buf_ptr, cdp_type_desc[k].desc, strlen((char *)cdp_type_desc[k].desc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cdp.c:839:16: note: length computed here 839 | strncpy(buf_ptr, cdp_type_desc[k].desc, strlen((char *)cdp_type_desc[k].desc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dot1q.c: In function 'dot1q_get_printable_packet': dot1q.c:1009:44: warning: '%02X' directive output may be truncated writing between 2 and 4 bytes into a region of size 3 [-Wformat-truncation=] 1009 | snprintf(field_values[DOT1Q_CFI1], 3, "%02X", (ntohs(*cursor) & 0x1000)); | ^~~~ dot1q.c:1009:43: note: directive argument in the range [0, 4096] 1009 | snprintf(field_values[DOT1Q_CFI1], 3, "%02X", (ntohs(*cursor) & 0x1000)); | ^~~~~~ dot1q.c:1009:5: note: 'snprintf' output between 3 and 5 bytes into a destination of size 3 1009 | snprintf(field_values[DOT1Q_CFI1], 3, "%02X", (ntohs(*cursor) & 0x1000)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dot1q.c:1033:53: warning: '%02X' directive output may be truncated writing between 2 and 4 bytes into a region of size 3 [-Wformat-truncation=] 1033 | snprintf(field_values[DOT1Q_CFI2], 3, "%02X",(ntohs(*cursor) & 0x1000)); | ^~~~ dot1q.c:1033:52: note: directive argument in the range [0, 4096] 1033 | snprintf(field_values[DOT1Q_CFI2], 3, "%02X",(ntohs(*cursor) & 0x1000)); | ^~~~~~ dot1q.c:1033:13: note: 'snprintf' output between 3 and 5 bytes into a destination of size 3 1033 | snprintf(field_values[DOT1Q_CFI2], 3, "%02X",(ntohs(*cursor) & 0x1000)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dot1q.c:1247:52: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 1247 | snprintf(field_values[DOT1Q_IP_PROTO], 3, "%02d",ipv4_hdr->ip_p); | ^ dot1q.c:1247:5: note: 'snprintf' output between 3 and 4 bytes into a destination of size 3 1247 | snprintf(field_values[DOT1Q_IP_PROTO], 3, "%02d",ipv4_hdr->ip_p); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ parser.c: In function 'parser_initial': parser.c:159:12: warning: 'strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 159 | strncpy(tty->config_file, argv[i], sizeof(tty->config_file)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c: In function 'command_list_help': commands.c:287:50: warning: '%-10s' directive output may be truncated writing between 10 and 7318 bytes into a region of size 126 [-Wformat-truncation=] 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~ commands.c:287:22: note: 'snprintf' output 17 or more bytes (assuming 14707) into a destination of size 128 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 288 | protocols[k].description); | ~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:287:50: warning: '%-10s' directive output may be truncated writing between 10 and 6646 bytes into a region of size 126 [-Wformat-truncation=] 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~ commands.c:287:22: note: 'snprintf' output 17 or more bytes (assuming 13363) into a destination of size 128 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 288 | protocols[k].description); | ~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:287:50: warning: '%-10s' directive output may be truncated writing between 10 and 5974 bytes into a region of size 126 [-Wformat-truncation=] 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~ commands.c:287:22: note: 'snprintf' output 17 or more bytes (assuming 12019) into a destination of size 128 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 288 | protocols[k].description); | ~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:287:50: warning: '%-10s' directive output may be truncated writing between 10 and 5302 bytes into a region of size 126 [-Wformat-truncation=] 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~ commands.c:287:22: note: 'snprintf' output 17 or more bytes (assuming 10675) into a destination of size 128 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 288 | protocols[k].description); | ~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:287:50: warning: '%-10s' directive output may be truncated writing between 10 and 4630 bytes into a region of size 126 [-Wformat-truncation=] 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~ commands.c:287:22: note: 'snprintf' output 17 or more bytes (assuming 9331) into a destination of size 128 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 288 | protocols[k].description); | ~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:287:50: warning: '%-10s' directive output may be truncated writing between 10 and 3958 bytes into a region of size 126 [-Wformat-truncation=] 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~ commands.c:287:22: note: 'snprintf' output 17 or more bytes (assuming 7987) into a destination of size 128 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 288 | protocols[k].description); | ~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:287:50: warning: '%-10s' directive output may be truncated writing between 10 and 3286 bytes into a region of size 126 [-Wformat-truncation=] 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~ commands.c:287:22: note: 'snprintf' output 17 or more bytes (assuming 6643) into a destination of size 128 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 288 | protocols[k].description); | ~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:287:50: warning: '%-10s' directive output may be truncated writing between 10 and 2614 bytes into a region of size 126 [-Wformat-truncation=] 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~ commands.c:287:22: note: 'snprintf' output 17 or more bytes (assuming 5299) into a destination of size 128 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 288 | protocols[k].description); | ~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:287:50: warning: '%-10s' directive output may be truncated writing between 10 and 1942 bytes into a region of size 126 [-Wformat-truncation=] 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~ commands.c:287:22: note: 'snprintf' output 17 or more bytes (assuming 3955) into a destination of size 128 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 288 | protocols[k].description); | ~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:287:50: warning: '%-10s' directive output may be truncated writing between 10 and 1270 bytes into a region of size 126 [-Wformat-truncation=] 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~ commands.c:287:22: note: 'snprintf' output 17 or more bytes (assuming 2611) into a destination of size 128 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 288 | protocols[k].description); | ~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:287:50: warning: '%-10s' directive output may be truncated writing between 10 and 598 bytes into a region of size 126 [-Wformat-truncation=] 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~ commands.c:287:22: note: 'snprintf' output 17 or more bytes (assuming 1267) into a destination of size 128 287 | snprintf(msg,sizeof(msg)," %-10s %s %s\r\n", protocols[k].name_comm,aux_comm[i].help, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 288 | protocols[k].description); | ~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c: In function 'dhcp_get_printable_packet': dhcp.c:1421:16: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 1421 | strncpy(buf_ptr, protocols[PROTO_DHCP].extra_parameters[k].ldesc, desc_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dot1q.c: In function 'dot1q_get_printable_store': dhcp.c:1420:27: note: length computed here 1420 | desc_len = strlen(protocols[PROTO_DHCP].extra_parameters[k].ldesc); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dot1q.c:1288:49: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 1288 | snprintf(field_values[DOT1Q_VLAN1], 5, "%04d", dot1q_tmp->vlan1); | ^ dot1q.c:1288:5: note: 'snprintf' output between 5 and 6 bytes into a destination of size 5 1288 | snprintf(field_values[DOT1Q_VLAN1], 5, "%04d", dot1q_tmp->vlan1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dot1q.c:1296:49: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 1296 | snprintf(field_values[DOT1Q_VLAN2], 5, "%04d", dot1q_tmp->vlan2); | ^ dot1q.c:1296:5: note: 'snprintf' output between 5 and 6 bytes into a destination of size 5 1296 | snprintf(field_values[DOT1Q_VLAN2], 5, "%04d", dot1q_tmp->vlan2); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dot1q.c:1311:52: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 1311 | snprintf(field_values[DOT1Q_IP_PROTO], 3, "%02d",dot1q_tmp->ip_proto); | ^ dot1q.c:1311:5: note: 'snprintf' output between 3 and 4 bytes into a destination of size 3 1311 | snprintf(field_values[DOT1Q_IP_PROTO], 3, "%02d",dot1q_tmp->ip_proto); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ admin.c: In function 'admin_th_network_peer': admin.c:396:4: warning: 'strncpy' specified bound 15 equals destination size [-Wstringop-truncation] 396 | strncpy(term_node->from_ip,inet_ntoa(name.sin_addr), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 397 | sizeof(term_node->from_ip)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c: In function 'dhcp_get_printable_store': dhcp.c:1779:16: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 1779 | strncpy(buf_ptr, dhcp_type_desc[k].desc, strlen((char *)dhcp_type_desc[k].desc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:1779:16: note: length computed here 1779 | strncpy(buf_ptr, dhcp_type_desc[k].desc, strlen((char *)dhcp_type_desc[k].desc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:1779:16: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 1779 | strncpy(buf_ptr, dhcp_type_desc[k].desc, strlen((char *)dhcp_type_desc[k].desc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:1779:16: note: length computed here 1779 | strncpy(buf_ptr, dhcp_type_desc[k].desc, strlen((char *)dhcp_type_desc[k].desc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:1779:16: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 1779 | strncpy(buf_ptr, dhcp_type_desc[k].desc, strlen((char *)dhcp_type_desc[k].desc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dhcp.c:1779:16: note: length computed here 1779 | strncpy(buf_ptr, dhcp_type_desc[k].desc, strlen((char *)dhcp_type_desc[k].desc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interfaces.c: In function 'interfaces_update_stats': interfaces.c:972:9: warning: 'strncpy' output may be truncated copying 16 bytes from a string of length 16 [-Wstringop-truncation] 972 | strncpy(thedata[j].iface, packet_data->iface, IFNAMSIZ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interfaces.c: In function 'interfaces_th_pcap_listen': interfaces.c:766:19: warning: 'strncpy' output may be truncated copying 16 bytes from a string of length 16 [-Wstringop-truncation] 766 | strncpy(packet_data.iface, iface_data->ifname, IFNAMSIZ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ interfaces.c:805:22: warning: 'strncpy' output may be truncated copying 16 bytes from a string of length 16 [-Wstringop-truncation] 805 | strncpy(queue[proto].data[(queue[proto].index%MAX_QUEUE)].iface, packet_data.iface, IFNAMSIZ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ parser.c: In function 'parser_read_config_file': parser.c:786:16: warning: 'strncpy' specified bound 8 equals destination size [-Wstringop-truncation] 786 | strncpy(tty->e_password, (ptr), MAX_PASSWORD); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ parser.c:763:16: warning: 'strncpy' specified bound 8 equals destination size [-Wstringop-truncation] 763 | strncpy(tty->password, (ptr), MAX_PASSWORD); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ parser.c:740:16: warning: 'strncpy' specified bound 48 equals destination size [-Wstringop-truncation] 740 | strncpy(tty->username, ptr, MAX_USERNAME); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ncurses-callbacks.c: In function 'ncurses_c_engine': ncurses-callbacks.c:669:22: warning: 'strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 669 | strncpy(tty_tmp->config_file, filename, FILENAME_MAX); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ncurses-interface.c: In function 'ncurses_i_add_selected_tlv_type': ncurses-interface.c:1606:7: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-truncation] 1606 | strncpy(attack_param->desc, protocols[mode].extra_parameters[pointer].ldesc, strlen(protocols[mode].extra_parameters[pointer].ldesc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ncurses-interface.c:1606:7: note: length computed here 1606 | strncpy(attack_param->desc, protocols[mode].extra_parameters[pointer].ldesc, strlen(protocols[mode].extra_parameters[pointer].ldesc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c: In function 'command_show_proto_params': commands.c:1462:42: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 125 [-Wformat-truncation=] 1462 | snprintf(msg,sizeof(msg)," %s", new_msg); | ^~ ~~~~~~~ commands.c:1462:13: note: 'snprintf' output between 4 and 131 bytes into a destination of size 128 1462 | snprintf(msg,sizeof(msg)," %s", new_msg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:1371:42: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 125 [-Wformat-truncation=] 1371 | snprintf(msg,sizeof(msg)," %s",new_msg); | ^~ ~~~~~~~ commands.c:1371:13: note: 'snprintf' output between 4 and 131 bytes into a destination of size 128 1371 | snprintf(msg,sizeof(msg)," %s",new_msg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:1438:42: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 125 [-Wformat-truncation=] 1438 | snprintf(msg,sizeof(msg)," %s", new_msg); | ^~ ~~~~~~~ commands.c:1438:13: note: 'snprintf' output between 4 and 131 bytes into a destination of size 128 1438 | snprintf(msg,sizeof(msg)," %s", new_msg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:1450:42: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 125 [-Wformat-truncation=] 1450 | snprintf(msg,sizeof(msg)," %s", new_msg); | ^~ ~~~~~~~ commands.c:1450:13: note: 'snprintf' output between 4 and 131 bytes into a destination of size 128 1450 | snprintf(msg,sizeof(msg)," %s", new_msg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:1473:42: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 125 [-Wformat-truncation=] 1473 | snprintf(msg,sizeof(msg)," %s", new_msg); | ^~ ~~~~~~~ commands.c:1473:13: note: 'snprintf' output between 4 and 131 bytes into a destination of size 128 1473 | snprintf(msg,sizeof(msg)," %s", new_msg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:1426:42: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 125 [-Wformat-truncation=] 1426 | snprintf(msg,sizeof(msg)," %s", new_msg); | ^~ ~~~~~~~ commands.c:1426:13: note: 'snprintf' output between 4 and 131 bytes into a destination of size 128 1426 | snprintf(msg,sizeof(msg)," %s", new_msg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ commands.c:1413:42: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 125 [-Wformat-truncation=] 1413 | snprintf(msg,sizeof(msg)," %s", new_msg); | ^~ ~~~~~~~ commands.c:1413:13: note: 'snprintf' output between 4 and 131 bytes into a destination of size 128 1413 | snprintf(msg,sizeof(msg)," %s", new_msg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O3 -Wall -g -D_DEFAULT_SOURCE -Wl,--as-needed,-O1,--sort-common -Wl,-z,pack-relative-relocs -o yersinia xstp.o parser.o dtp.o cdp.o dhcp.o hsrp.o dot1q.o vtp.o arp.o isl.o dot1x.o mpls.o thread-util.o terminal.o interfaces.o attack.o yersinia.o md5.o md5-sum.o protocols.o dlist.o ncurses-gui.o ncurses-callbacks.o ncurses-interface.o admin.o commands.o -lpthread -lrt -lresolv -lpcap -lnet -lpanel -lncurses make[2]: Leaving directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2/src' make[1]: Leaving directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2/src' make[1]: Entering directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2' make[1]: Nothing to be done for 'all-am'. make[1]: Leaving directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2' Making check in src make[1]: Entering directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2/src' make[1]: Leaving directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2/src' make[1]: Entering directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2' make[1]: Nothing to be done for 'check-am'. make[1]: Leaving directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2' >>> yersinia: Entering fakeroot... Making install in src make[1]: Entering directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2/src' make[2]: Entering directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2/src' make[2]: Nothing to be done for 'install-data-am'. .././install-sh -c -d '/home/buildozer/aports/community/yersinia/pkg/yersinia/usr/bin' /usr/bin/install -c yersinia '/home/buildozer/aports/community/yersinia/pkg/yersinia/usr/bin' make[2]: Leaving directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2/src' make[1]: Leaving directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2/src' make[1]: Entering directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2' make[2]: Entering directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2' make[2]: Nothing to be done for 'install-exec-am'. ./install-sh -c -d '/home/buildozer/aports/community/yersinia/pkg/yersinia/usr/share/man/man8' /usr/bin/install -c -m 644 yersinia.8 '/home/buildozer/aports/community/yersinia/pkg/yersinia/usr/share/man/man8' make[2]: Leaving directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2' make[1]: Leaving directory '/home/buildozer/aports/community/yersinia/src/yersinia-0.8.2' >>> yersinia-doc*: Running split function doc... >>> yersinia-doc*: Preparing subpackage yersinia-doc... >>> yersinia-doc*: Running postcheck for yersinia-doc >>> yersinia*: Running postcheck for yersinia >>> yersinia*: Preparing package yersinia... >>> yersinia*: Stripping binaries >>> yersinia-doc*: Scanning shared objects >>> yersinia*: Scanning shared objects >>> yersinia-doc*: Tracing dependencies... >>> yersinia-doc*: Package size: 24.0 KB >>> yersinia-doc*: Compressing data... >>> yersinia-doc*: Create checksum... >>> yersinia-doc*: Create yersinia-doc-0.8.2-r4.apk >>> yersinia*: Tracing dependencies... so:libc.musl-ppc64le.so.1 so:libncursesw.so.6 so:libnet.so.9 so:libpanelw.so.6 so:libpcap.so.1 >>> yersinia*: Package size: 420.0 KB >>> yersinia*: Compressing data... >>> yersinia*: Create checksum... >>> yersinia*: Create yersinia-0.8.2-r4.apk >>> yersinia: Build complete at Fri, 27 Oct 2023 16:07:44 +0000 elapsed time 0h 0m 26s >>> yersinia: Cleaning up srcdir >>> yersinia: Cleaning up pkgdir >>> yersinia: Uninstalling dependencies... (1/10) Purging .makedepends-yersinia (20231027.160734) (2/10) Purging libnet-dev (1.3-r0) (3/10) Purging libnet (1.3-r0) (4/10) Purging libpcap-dev (1.10.4-r1) (5/10) Purging libpcap (1.10.4-r1) (6/10) Purging ncurses-dev (6.4_p20231007-r0) (7/10) Purging libncurses++ (6.4_p20231007-r0) (8/10) Purging libpanelw (6.4_p20231007-r0) (9/10) Purging libformw (6.4_p20231007-r0) (10/10) Purging libmenuw (6.4_p20231007-r0) Executing busybox-1.36.1-r13.trigger OK: 416 MiB in 101 packages >>> yersinia: Updating the community/ppc64le repository index... >>> yersinia: Signing the index...